I'm trying to load an object I wrote the the DB using EntityFramework.
public class MyClass
{
[key]
public long ID {get; set;}
private string m_someField {
public string SomeField {
get
{
return m_someField;
}
set
{
//DO SOMETHING THAT NEEDS THE VALUE OF SomeField2...
}
}
public string SomeField2 { get; set;}
}
How can I Tell EF to first fill in SomeField2 and only then the fill other fields?