0
我試圖加載一個對象,我用EntityFramework寫了數據庫。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;}
}
如何告訴EF首先填寫SomeField2,然後填寫其他字段?