What kind of error reporting options are provided by LINQ when concurrency conflict occurs?
By j Miracle
here i will show you th different type of reporting option provided by the LINQ when concurrency conflict occurs.
the option are as follows.
=> ContinueOnConflict :- This option says to the LINQ engine that continue
even if there are conflicts and finally return all conflicts at the end of the
=> FailOnFirstConflict :- This option says stop as soon
as the first conflict occurs and return all the conflicts at that moment. In
other words LINQ engine does not continue ahead executing the code.
these options can be provided as an input in ‘SubmitChanges’ method using the
‘ConflictMode’ enum. Below is the code of how to specify conflict modes.
What kind of error reporting options are provided by LINQ when concurrency conflict occurs? (710 Views)