What am trying to achieve is to create a class as shown below.
public class Purse
{
public decimal AvaliableBalance { get; protected set; }
public decimal PendingBalance { get; protected set; }
public decimal TotalBalance { get; protected set; }
}
But am wondering if entity framework will be able to populate this class. If so, how?
Basically what am trying to accomplish is to restrict writing directly to these properties on the code side but i want Entity framework to be able to write to this properties.I want to expose the setter of these properties through a method whose sole purpose is to write values to it (ie: after some processing of course).