晕,Code first 生成数据库有问题
不要在数据库里创建数据库,让代码自动去创建数据库就行了
Model compatibility cannot be checked because the database does not contain model metadata. Ensure that IncludeMetadataConvention has been added to the DbModelBuilder conventions.
不要在数据库里创建数据库,让代码自动去创建数据库就行了
Model compatibility cannot be checked because the database does not contain model metadata. Ensure that IncludeMetadataConvention has been added to the DbModelBuilder conventions.