LINQ to SQL - Is there a way to limit the scope of SubmitChanges ()?

Is there a way to limit the scope of SubmitChanges () to a subset of a common data area?

Example:

Bob intends to update the web order, but Alice introduced the property, unbeknownst to Bob, who updates the price of the product (only in memory, not in DB) after writing. Bob considers this a parody that should be avoided at all costs. Bob wants him to limit the scope of the update to the WebOrders subdomain.

Based on my understanding, I should assume that unwanted changes were not made to other parts of the domain by other code in the application.

It would seem that it would be nice to restrain the SubmitChanges () function to only touch those objects from a subset of the domain.

+3
source share
1

, . DataContext - ( , ), . , - , (= Dispose) .

+4

All Articles