Loading

摘要: 使用code first 做数据迁移新增非空字段,提示如下错误:AlterColumn("dbo.StoreProduct", "StoreProductAttribute", c => c.String(nullable: false, maxLength: 20, defaultValue: "固定资产"));不能将值 NULL 插入列 'ProductAttribute',表 'dbo.StoreProduct';列不允许有空值。UPDATE 失败。语句已终止。由于数据表StoreProdu 阅读全文
posted @ 2013-02-02 15:00 chear 阅读(2275) 评论(0) 推荐(0)