c# - How to save only a specific item using Entity Framework? -


i'm using ef4 in web application.

currently, when want save specific item, change properties, , call savechanges().

but changes in application committed.

how can commit changes of specific item?

create new context , attach specific item new context. call savechanges() of new context.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -