Allow setting of all properties on Proxy Classes
When using a projection to get only certain fields from an entity via a LINQ query, allow setting read-only properties such as CreatedOn and FullName (on the Contact entity).
For example, the below query will not build because CreatedOn currently allows only get. I propose adding a setter for it as well.
var q = from p in ctx.CreateQuery<Account>()
orderby p.Name
select new Account
{
Id = p.AccountId,
AccountId = p.AccountId,
Name = p.Name,
CreatedOn = p.CreatedOn
}
4
votes
Aron Fischman
shared this idea