Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In the Name OF God

hi

after installing entity framework in my project
I have created two classes in folder of models i wrote this insruction in one of these class:

C#
public class MyWebdb:DbContext
    {
        public DbSet<idea>; IdeatList { get; set; }
    }


Then I added a control in the control folder- in that windows I chose the second term in Template
and I chose Model class and ..
but i hade this error

unable to retrive metadata for....
to cast object of type 'system.data.entity.core.objects.objectContext'
to type 'system.data.objectsContext'
Posted
Updated 8-Oct-14 2:30am
v2
Comments
[no name] 8-Oct-14 8:30am    
I guess you are not clear in concepts of MVC and Entityframwork

1 solution

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