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

Data reader read and forward only, how is it possible to get 2 tables of data at a time?

960


What is ole used for?

981


What are the various methods provided by the DataSet object to generate XML?

1049


differance between ADO vs ADO.Net?

1131


What are the objects of ado.net?

1118


What are the classes in System.Data.Common Namespace?

1205


What is ole word?

1010


What is basic use of data view?

1040


What are the differences between OLEDB and SQLClient Providers?

1237


Give an example that shows how to execute a stored procedure in ado.net?

1107


What is the return type of executescalar?

1069


Is datareader faster than datatable?

1014


Which object of ado contains datarow datacolumn collection?

1010


What is DataRowCollection?

1146


What are the different ado.net namespaces are available in .net?

1060