Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Which object of ado contains datarow datacolumn collection?

964


Why is it important to close an ado.net application?

1016


Some important instruction regarding ADO.NET connection string ?

978


What is the difference between Data adaptor and Data set?

1034


What is the difference between the clone() and copy() methods of the dataset class?

1085


What are the ado.net connection pooling parameters?

981


Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?

1148


What is the use of adodc?

988


What is the meaning of executenonquery?

1060


Describe the command object and its method.

998


What is difference between ado and other data object?

911


What is ado.net connection?

956


What are the advantages using ado.net?

1036


what is the difference betwen typed dataset and untyped dataset?in general which dataset can we use in programming?

1015


How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?

1028