I use the code first where I can:
db.Users.Attach(user); db.Entry(user).Property(propertyName).IsModified = true;
How to do this using the DataModel method?
I don't have an Entry method in my datacontext.
Entry
Using:
context.Users.Attach(user); ObjectStateEntry entry = context.ObjectStateManager.GetObjectStateEntry(user); entry.SetModifiedProperty(propertyName);
Source: https://habr.com/ru/post/1388871/More articles:How to "bind" a character to a vi command? - viAS3 - Error 1119: access to a possible property undefined propertyListList through a link with a class of static type. - actionscript-3What is the correct use of approxEqual ()? - floating-pointEntity Framework 4.0 does not work with computed properties - .netmalloc and free edition - cCustom Functions in Vim - vimHow can I specify a hotkey for my browser action? - javascriptActivity in TabHost - androidIn django-admin, how can I set filter_horizontal as the default? - pythonRails between many associations - ruby-on-railsAll Articles