SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 415 | Next

Scott Klein

"Professional LINQ"


??‘ ContinueOnConflict??”All updates to the database should be attempted. All concurrency con-
flicts are gathered and returned at the end of the update process.
The ConflictMode option is usually used in conjunction with the RefreshMode enumeration, which is
discussed shortly.
ChangeConflictException
Any time a conflict occurs, a ChangeConflictException is thrown. This exception is thrown because an
update to the database failed because the database values were updated since the client application last
accessed them.
In its simplest form, the ChangeConflictException is used as follows:
catch (ChangeConflictException ex)
{
Messagebox.Show(e.Message)
}
This class offers much of the same information as the normal Exception class, such as an exception
message and source. But it also offers the capability to trap change conflict exceptions and, when used
with the RefreshMode and ConflictMode enumerations, lets developers handle conflicts properly.
RefreshMode
The RefreshMode enumeration lets you define how your application should handle optimistic concurrency
conflicts.


Pages:
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6