Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am using ASP.NET MVC 5 and MySQL and EF databasefirst approach. I work in VS 2015 enterpise and i use VS 2013 proffesional to check if there are some problems.

In my edmx file "is" a class called Users. I want to use as a model class during adding CRUD actions to my project. My steps:
1. Compile project (no errors).
2. Controllers->Add->Controller-> MVC 5 controller with views, using EF.
3. Here shows a window with fields model class and data context class. The problem is that VS 2015(and 2013) do not see my model and context class(combobox is empty). So even I wrote names of my model class and data context class in right fields i cannot click OK and finish.

I clened and rebuild a solution view times and i check my database connections everythink looks good.

I rode article: "CRUD operation with Entity Framework 6 Database First using MVC 5", but the problem is still the same.

My question is how to add CRUD actions to my Users class?
Posted
Comments
Krunal Rohit 15-Nov-15 0:39am    
Don't do that. Don't create them by yourself. If you're using Database first approach, the entities should be created by themselves.

-KR
Member 11295093 15-Nov-15 5:34am    
I don`t understand you. What shouldn't I Do?

1 solution

are you using a local database?
 
Share this answer
 
Comments
Krunal Rohit 15-Nov-15 0:38am    
This is not a solution, Remove it and post it as a comment to the question.

-KR
Member 11295093 15-Nov-15 5:57am    
No, I my using MySQL database from Windows Azure.

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