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 process. => 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. Both 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. => objContext.SubmitChanges(ConflictMode.ContinueOnConflict); => objContext.SubmitChanges(ConflictMode.FailOnFirstConflict); |
Sunday, January 9, 2011
What kind of error reporting options are provided by LINQ when concurrency conflict occurs?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment