Introduction
Data relation is required to apply foreign key relation between dataset tables.
Data relation will provide following features:
- Child records will not accepted without parent record.
- Parent record can't be modified or deleted when child records are exists.
- Parent record will be modified or deleted by applying to child records.
Syntax:
Dim r as Data.DataRelation
r=new DataRelation("RelationName",ParenColumn,ChildColumn)
ds.Relations.Add(r)
The above code will establish relation by applying parent column with unique key constraint and child column with foreign key constraint.
Comments/Suggestions are invited. Happy coding......!
Comments Post a Comment
Abhilasha Chauhan 12/8/2012 (IST) / Reply
How can i learn to make a good gamebased project in C language ?
vivek grewal 9/27/2013 (IST) / Reply
its not much more.
hassabo mohammed 3/31/2014 (IST) / Reply
hi add me please