How you will set the datarelation between two columns?
Answer Posted / swapna
ADO.NET provides DataRelation object to set relation
between two columns.It helps to enforce the following
constraints,a unique constraint, which guarantees that a
column in the table contains no duplicates and a foreign-
key constraint,which can be used to maintain referential
integrity.
A unique constraint is implemented either by simply setting
the Unique property of a data column to true, or by adding
an instance of the UniqueConstraint class to the
DataRelation object's ParentKeyConstraint.
As part of the foreign-key constraint, you can specify
referential integrity rules that are applied at three
points,when a parent record is updated,when a parent record
is deleted and when a change is accepted or rejected.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What does ole stand for in excel?
What are the advantages and drawbacks of using ado.net?
What is serialization and de-serialization in .net? How can we serialize the dataset object?
What is data view and variable view?
What is a datareader object?
What is ado.net object model?
What is ado.net components?
What is Data view?
Explian About DataAdapters
What is data reader in ado.net?
Define data access layer?
What is disconnected data?
What is difference between ado.net and asp net?
What is executequery?
What is openquery?