Monday, September 16, 2013

Inserting New Data using ADO.NET ENTITY FRAMEWORK

ADO.NET ENTITY FRAMEWORK WITH PARENT CHILD TABLE USING CONSOLE APPLICATION.

    Generating Model from Database


File->New project


·        In the Solution Explorer right-click on the project and choose Add | New Item.

·        In the dialog choose ADO.NET Entity Data Model, click Add. This launches Entity Data Model Wizard.


·        In the wizard choose Generate from database, click next.


Click on New Connection.




Click on Next Button. 



Select the tables and click on finish.

Go to Program.cs and write the following code 




    output





No comments:

Post a Comment

Thank you for visiting my blog

Python -3

  Lists It is used to store Collection of data. Lists are created using square brackets: List Items Order cannot be changed. It can have dup...