晕,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.

posted @ 2012-05-24 19:24  therockthe  阅读(165)  评论(0)    收藏  举报