Entity Framework writes in Context but not Database

c# entity-framework-6 sql-server-2017-express

Accepted Answer

The entity object properties that the change tracker has received at this time are not DTO relevant. You must implement the modifications using theDbEntityEntry.CurrentValues rather than property.

item.CurrentValues["ChangedDate"] = DateTime.Now;
1
7/23/2018 1:24:14 PM

Popular Answer

ZZZ_tmp


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow