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

Kubernetes

Prerequisites We assume anyone who wants to understand Kubernetes should have an understating of how the Docker works, how the Docker images...