04 October 2009

Please note that - You will need to install Visual Studio 2008 to have Entity Framework. Visual Studio 2008 comes with Entity Framework.
Open a new or existing project and then select “Add New Item”. From the Add New Item dialog box select “ADO.NET Entity Data Model” option. Name the entity model file and click Add.
image
VS will ask and suggest to store this new file in App_Code folder. Say yes.

image
This will start the Entity Data Model wizard. Select the Generate from database option and click next.
image
image
image
image
image
image
Note the name of the Model Namespace - Laksha.DnnInternet.EntityModel. You should always name your namespaces, solutions, projects starting with few letters form your company name or acronym. For example Microsoft always use Microsoft or System in all their namespaces.
Click Finish. This will generate two files LakshaEntityModel.edmx & LakshaEntityModel.Designer.cs.
image
Double click the LakshaEntityModel.edmx file to open it in the EDM Designer.
image
In the next step I will go over the generated code, entity model and different windows in the Visual Studio.




Tagged: ,

6 comments:

  1. Hi admin, i went through article. As we all know, .net is most popular programming language and it offer huge career prospects for talented professionals. It’s totally awesome, keep on updating your blog with such awesome information. .Net Training in Chennai

    ReplyDelete
  2. Great article. I like your blog. Thanks for sharing.

    seo training center in chennai

    ReplyDelete
  3. training institute in Chennai- any web site-sin explore-mail id-pass-web site link-
    best oracle training institute

    ReplyDelete
  4. No.1 Digital Marketing Training in Chennai
    Join SKARtec Digital Marketing Course
    Click here to go to SKARtec Digital Marketing Academy.

    ReplyDelete

Note: Only a member of this blog may post a comment.