Entity Framework Migrations don't include DefaultValue data annotation (EF5RC)

后端 未结 2 1634
陌清茗
陌清茗 2021-01-04 05:44

I have a class that looks like this:

[Table(\"Subscribers\", Schema = \"gligoran\")]
public class Subscriber
{
    [Key]
    public string Email { get; set;          


        
2条回答
  •  走了就别回头了
    2021-01-04 06:17

    EF doesn't use DefaultValue attribute at all = it is not part of the model so migrations don't see it. You can propose support of this annotation on Data UserVoice.

提交回复
热议问题