Is it possible to manipulate dates in an EF query while maintaining the flexibility of wildcard select?
In old school SQL you can do this
SELECT ID, Name,
DATEADD (minute, 30, [StartTime]) AS [StartTime]
FROM Titles
I know you can to the same in EF with
var items = context.Titles.Select(n => new {
ID = n.ID,
Name= n.Name,
StartTime = System.Data.Objects.EntityFunctions.AddMinutes(n.StartTime, 30)
});
The challenge for me is that I'd like to not have to specify all properties.
Is it possible to do something like
var items = context.Titles.SomethingSomething(n =>
LinqToUpdateOnly 'StartTime' property);
?