0

How can save data with linq ?

How to save data in sql with linq in c # (Windows)? What is its query code?

22nd Sep 2021, 11:44 AM
Simin Zare
Simin Zare - avatar
2 Respuestas
23rd Sep 2021, 3:31 AM
Anurag Saikia
+ 1
First of all, I must appreciate Ânurag $aikia[Exams Till 5oct😓👋👋]. Let's introduce you to another way to solve this problem. Now you can use an entity framework. The DbSet class is derived from IQuerayable. So, we can use LINQ for querying against DbSet, which will be converted to an SQL query. EF API executes this SQL query to the underlying database, gets the flat result set, converts it into appropriate entity objects and returns it as a query result. For more info, please read this article: https://www.entityframeworktutorial.net/querying-entity-graph-in-entity-framework.aspx
30th Sep 2021, 8:59 AM
hossein B
hossein B - avatar