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

Define the data provider classes that is supported by ado.net?

916


Which is faster datareader or dataadapter?

936


What is commandbuilder in ado.net?

956


What is the difference between Optimistic and Pessimistic locking?

927


Explain which name space is used to get assembly details?

909


How can I retrieve two tables of data at a time by using data reader?

935


How do I delete a row from a DataTable?

1079


Explain the various objects in dataset.

937


What are the steps you will take to improve performance?

841


What is ado code?

908


What is the difference between Response.Expires and Reponse.ExpiresAbsolute?

980


What is the use of SqlCommandBuilder?

1150


List all the steps in order, to access a database through ado.net?

1033


Which method is used to sort the data in ADO.Net?

1921


What is ado.net objects?

910