| |||||||||||||
AcceptRejectRule EnumerationDetermines the action that occurs when the AcceptChanges or RejectChanges method is invoked on a DataTable with a ForeignKeyConstraint. Members
RemarksChanges to a DataTable are not final until you call the AcceptChanges method. At that time, constraint-related errors can occur because any ForeignKeyConstraint objects associated with a DataTable are activated to allow deletions and edits to occur freely. Prior to that time, ForeignKeyConstraint objects are inactive. When the ForeignKeyConstraint becomes activated, and errors occur, AcceptRejectRule is called to determine the next course of action. If changes to a DataTable are rejected, using the RejectChanges method, AcceptRejectRule is called to determine how changes to the relationship are rolled back. ExampleThe following example initializes a ForeignKeyConstraint, sets some of its various properties, including the AcceptRejectRule, and adds it to a DataTable object' s ConstraintCollection.
See AlsoConstraint ConstraintCollection ForeignKeyConstraint Rule UniqueConstraint |
| ||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme