Is it possible to get the last row count value without making query to database using linq ?
I have a scenario where I make a linq query to find some records and count too but when I query second time using linq then I want the count last effected rows without making query to database
Thanks
If I understand you correct – you want the numbers og rows effected by a non-query statement?
Update, Insert, Delete (Read queries do not effect rows)
calling the
context.SaveChanges()returns the numbers of rows affected.contextis an instance of your EntityModel