我可以使EF生成具有私有屬性設置器的實體類嗎?EF生成的實體隱藏信息
例如,我想是這樣
public class MyTable
{
public Guid Id {get; private set;}
//... And so on and so forth, basically the class should hide the setters
}
我可以使EF生成具有私有屬性設置器的實體類嗎?EF生成的實體隱藏信息
例如,我想是這樣
public class MyTable
{
public Guid Id {get; private set;}
//... And so on and so forth, basically the class should hide the setters
}
在代碼生成過程中查看.edmx中選定屬性的屬性窗口。 – 2013-01-24 07:22:59