Horje
update multiple records with entity framework Code Example
update multiple records with entity framework
using (var dbcontext = new MyModel()){
   var matchedRecords = dbcontext.DummyTable.Where(e => e.code.Equals(entry.code) && e.isValid.Equals(true)).ToList();
   matchedRecords.ForEach(e => e.isValid = false);
   dbcontext.SaveChanges();
}




Csharp

Related
c# replace multiple characters Code Example c# replace multiple characters Code Example
unity string lowercase Code Example unity string lowercase Code Example
get what week of the month c# Code Example get what week of the month c# Code Example
c# Jobject to string Code Example c# Jobject to string Code Example
c# read all lines from filestream Code Example c# read all lines from filestream Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9