I am using the Entity Framework with a database first approach.
I have used partial classes to successfully add custom methods, but have found that if I add a custom field it is not persisted when my entity is next pulled from the DataContext
(entity is not submitted to database in the meantime). I need to use this field for processing but I do not need it, or want it, stored in my database.
public partial class MyEntity
{
public decimal MyCustomField;
}
Why is this? How can I get around it?
Thanks