What is the best practice for the following scenario:
I have a LINQ to SQL expression where in its projection I want to call a private method. I understand that my method cannot be translated into SQL, but I do need the logic. Changing the property after getting the query result is not possible since you cannot change a projected property (it is read only).
10x
var projectedOrders = from order in orders
select new
{
orderId = order.Id,
orderName = order.FriendlyName,
OrderDate = order.OrderDate,
CustomerName = helper.GetUserNameByUserId(order.UserId)
};