Friday, 4 August 2017

LINQ CRUD Operation

First Step : Drag Your All database table in Linq File Following Are Step
  • Right Click On Project
  • Add New Item
  • Select Linq File
  • Drag your Data Table
  • Save and Buit A project
Then Declare Namespace for The Linq File

Click on Image to Show in Details


1)How To Write a Insert/update Code

Click on Image to Show in Details

In Above Example Vender_Event is Table
To Save you have to just to assign all object of Table and in update you have to pass table primary key before submit.

2)Delete code

Click on Image to Show in Details

In Above Code student is table and we fetch the student data by its ID.




Thank you , Hope you like this Operation details.











No comments:

Post a Comment