Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

model metadata.

$
0
0

i tried using LINQ in webmatrix and the following error was generated.

The error: Model compatibility cannot be checked because the database does not contain model metadata. Model compatibility can only be checked for databases created using Code First or Code First Migrations.

the error generation code :

foreach(var c in categories)
{
         db.Categories.Add(c);
     };
how do i go about this problem ? 


Viewing all articles
Browse latest Browse all 27852

Trending Articles



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