4
Answers

RemoveAll() in LINQ

Photo of Asp.Net Hein

Asp.Net Hein

9y
866
1
I use RemoveAll() in ASP.Net and the data is removed.
 
But there is no changes in my database.
 
How to solve that problem? If you have solution, please share to me.
 
Thanks a lot for viewing my question. 

Answers (4)

0
Photo of Upendra Pratap Shahi
191 10.4k 2.1m 9y
Hello,
 
Use below code-
 
 
0
Photo of Asp.Net Hein
NA 266 173.6k 9y
Yes... I use this but it does not save to database.
0
Photo of Shuvojit Halder
NA 763 45.4k 9y
Did you use dbobject.savechanges(); after using removeall().
0
Photo of Raja T
327 5.4k 113k 9y