使用数据注释 要求
如:
[Required]
public int somefield {get; set;}
Will set somefield to Not Null
in database, How can I set somefield
to allow NULLs?, I tried setting it through SQL Server Management Studio but Entity Framework set it back to Not Null
.