EF Mapping and metadata information could not be found for EntityType Error

后端 未结 13 1647
萌比男神i
萌比男神i 2020-12-05 09:42

I have encountered an exception when I use Entity Framework 4.0 RC. My Entity Framework model is encapsulated in a private assembly who\'s name is Procurement.EFDataProvider

13条回答
  •  天命终不由人
    2020-12-05 10:11

    My problem was I had edited the T4 template to exclude the replication field named "msrepl_tran_version". This caused the database to not match the generated classes which can causes this error message. Just make sure your database and classes match.

提交回复
热议问题