Click here to Skip to main content
15,891,662 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
link to view Erros

As per picture mentioned error during access Entity Framework tables in data source. I've built the Microsoft.AspNet.Providers -version 1.2 (build under EntityFramework 5.0) from nuget console and try insert tables "Application,Role,User,Profile,Memebership" along with their inter relationship linking in keys. I've done with rebuild but still same error.

Could someone else who already know how to fix the problem and guide me to fixit in ASAP.

What I have tried:

I've tried to recompile after insert those "Application,Role,User,Profile,Memebership" tables into edmx (after delete and build a new one).
Posted
Updated 7-Mar-16 20:16pm
v5

 
Share this answer
 
Well... hard to guess till the definition of database model is unknown.

In general, there can be - at least - few possible reasons of this error:

  1. Enum is not supported in EF 5.0 for .NET 4.0. This feature is available for EF 5 in .NET 4.5
  2. Model Checker fails to check the current Database state with my EF model
  3. A [Key] attribute for one of class is not defined
  4. etc.


I'd suggest to read the Entity Framework (EF) Documentation[^] to resolve this error, especially the parts:


Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900