What are the features are provided by LINQ to fine tuning concurrency at field level?
By j Miracle
here i will show you that what are the feature are provided by linq to fine tuning concurrency at field level.
the features are as follows.
One of the best options provided by LINQ concurrency system is control of concurrency
behavior at field level. There are three options we can specify using the ‘UpdateCheck’
• Never: - Do not use this field while checking concurrency
• Always: - This option specifies that always use this field
to check concurrency conflicts.
• WhenChanged :- Only when the member value
has changed then use this field to detect concurrency conflicts.
Below is the code which show how we can use the ‘UpdateCheck’ attribute to control property / field
level concurrency options as specified above.
[Column(DbType = "nvarchar(50)",UpdateCheck=UpdateCheck.Never)]
_CustomerCode = value;
What are the features are provided by LINQ to fine tuning concurrency at field level? (627 Views)