阅读背景:

如何将ROWGUIDCOL属性指定为Guid类型列在代码中或与ColumnBuilder?

来源:互联网 

Consider this migration code:

考虑一下这个迁移代码:

       CreateTable(
            "dbo.Document",
            c => new
                {
                    Id = c.Int(nullable: false, identity: true),
                    Doc = c.String(),
                    RowGuid = c.Guid(nullable: false),
                    Person_Id = c.Int(),
                })
            .PrimaryKey(t => t.Id)
            .ForeignKey("dbo.Person", t => t.Person_Id)
            .Index(t => t.Person_Id);
 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: