Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
LINQ to SQL
WhatsApp
Ankit Nandekar
13y
8.1
k
0
0
25
Blog
This is one of the most useful and the easiest method to do database operation with sqlserver
Its all features located in System.Data.Linq
It also include basic object relation (O/R) mapper directly in Visual studio.
The O/R mapper enables you to quickly map sql-based datasource to CLR object.
Just Follow these simple steps:
Step 1:
Add a LINQ to SQL Class like this
Step 2:
Drag the Database table which one you are going to use.
Step 3:
Save the page(Ctrl + s) where serialization mode=”Unidirectional” like this image
Step 4:
Then In Design page, take one Gridview and Linqdatasource control and configure the Linqdatasource control like this
Step 5:
You will get output like this
LINQ to SQL
Up Next
Group By In Linq To Sql
Ebook Download
View all
Printing in C# Made Easy
Read by 22.3k people
Download Now!
Learn
View all
Membership not found