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
Explain how can we load multiple tables in to dataset?
If we are not returning any records from the database, which method is to be used?
Explain ado.net features?
Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?
What is Serialization in .NET? what are the types of Serialization?
What is the role of clr?
how can implement dropdownlist in particular of dataset when try to update?
What are the Features and disadvantages of dataset
What is ole access?
What is connection pooling and what is the maximum pool size in ado.net connection string?
What does executequery return?
How can I retrieve two tables of data at a time by using data reader? Data reader read and forward only, how is it possible to get 2 tables of data at a time?
Explain how to find the given query is optimised one or not?
Why do we need ado.net?
What is oledb connection?