Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

One or more validation errors were detected during model generation:

$
0
0

hI, i got this error after I change my model class name from "Product" to "Bill".

One or more validation errors were detected during model generation:

WingtipToys.Models.Bill: : EntityType 'Bill' has no key defined. Define the key for this EntityType.
Bills: EntityType: EntitySet 'Bills' is based on type 'Bill' that has no keys defined.

Anyone knows how to fix this?


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>