如何使用实体框架迁移生成rowversion字段?以下是我试图实现的一个示例。
CreateTable(
companiesTable,
companies => new
{
Id = companies.Int(nullable: false, identity: true),
RowVersion = companies.????,
Name = companies.String(nullable: false, maxLength: 256),
Slug = companies.String(nullable: false, maxLength: 256)
})
.PrimaryKey(x => x.Id)
.Index(x => x.Slug, unique: true);发布于 2014-06-17 14:57:37
Version = c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"),https://stackoverflow.com/questions/24256960
复制相似问题