Using the Entity Framework often records requests such as
var orders = from o in context.Orders.Include("Customer")
where o.OrderDate.HasValue && o.OrderDate.Value.Year == 1997
orderby o.Freight
select o;
What my stomach really does is the "Customer"string argument . I find it hard to believe that EF does not generate table names as constants somewhere. Does anyone know a better approach than using a string? for the Includefetch option ?
source
share