So let's say I have POCO that I want EF Code First to be stored in the data store:
public class Campaign
{
public string Name { get; set; }
public double GoalAmount { get; set; }
private double AmountRaised { get; set; }
public bool GoalMet
{
get
{
return AmountRaised >= GoalAmount;
}
}
}
Now, for some reason, I do not want the property to AmountRaisedbe accessible outside the object, but I want it to be stored in the data store. Is this possible with the first EF code?
source
share