我可以让 EF 生成带有私有属性设置器的实体类吗?
例如。我想要类似的东西
public class MyTable
{
public Guid Id {get; private set;}
//... And so on and so forth, basically the class should hide the setters
}
我可以让 EF 生成带有私有属性设置器的实体类吗?
例如。我想要类似的东西
public class MyTable
{
public Guid Id {get; private set;}
//... And so on and so forth, basically the class should hide the setters
}