Self-tracking entities extension methods
When the context is generated i see there are some extension methods : AcceptChanges, MarkAsAdded, MarkAsDeleted, MarkAsModified. When should开发者_JAVA百科 i use these methods since they are available only on the service?
They are available on the client as well - make sure you've included their namespace at the beginning of your file. If not, the intellisense will not offer a suggestion for it since these are extension methods.
Usually, you reference the same project on the client side, and you should have these methods as well. You use them when appropriate of course.
精彩评论