How to add Entity Frame work in MVC 3 Application
Step 1 : First you have to know how to create MVC3 application so view my post about
http://mvc3withanuj.blogspot.in/2013/01/create-simple-application-in-mvc-3.html
Step 2 : Right click on Model folder in solution bar
Step 3 : Select ADD option and then select ADD NEW one windows is open
Step 4 : Click in Data option in Left menu
Step 5 : Select ADO.NET Entity Data Model give the name of the model Like StudentModel and click on Add button.
Step 6 : One new windows open click on Generate from database option and click on next
Step 7 : Add New Database connection and Select the database you want to add in your project..
Step 8 : Enter your entity name you like or keep it same..
Step 9 : Click on NEXT button and Choose your Database objects..
Step 10 : Select your Tables and Store Procedures you want to add in your application..
Step 11 : And keep all check box selected ..
Step 12 : Click on FINISH Button to create the entity model..
Step 13 :This way you can add entity model in your Application
Thank You
Step 2 : Right click on Model folder in solution bar
Step 3 : Select ADD option and then select ADD NEW one windows is open
Step 4 : Click in Data option in Left menu
Step 5 : Select ADO.NET Entity Data Model give the name of the model Like StudentModel and click on Add button.
Step 6 : One new windows open click on Generate from database option and click on next
Step 7 : Add New Database connection and Select the database you want to add in your project..
- Click on New Connection .
- Select Microsoft SQL server click on continue .
- Select server name or enter . (dot) .
- Fill authentication details you have to access to database .
- Select database you want to use in this application.
- Once test the connection if they return Test Connection is Succeeded.
- Click on OK button
Step 8 : Enter your entity name you like or keep it same..
Step 9 : Click on NEXT button and Choose your Database objects..
Step 10 : Select your Tables and Store Procedures you want to add in your application..
Step 11 : And keep all check box selected ..
Step 12 : Click on FINISH Button to create the entity model..
Step 13 :This way you can add entity model in your Application
Thank You
No comments:
Post a Comment
Thank you for your interest .