[Mono-devel-list] System.Data - Patch for ForeignKeyConstraint ctor

Deepak P N deepakparasam at rediffmail.com
Sat Apr 3 02:33:51 EST 2004


An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040403/26f65586/attachment.html 
-------------- next part --------------

Hi,
	I have implemented the patch for :
	
	ForeignKeyConstraint (string, string, string[], string[], AcceptRejectRule, Rule, Rule);
		
	[ Here's the approach >
		ParentTable - Since only name is given (not the DataTable object), we cannot associate any DataTable or DataSet right now.  So, only possible way is to do it when AddRange() is called.  The ParentTable is searched in the DataSet to which the calling DataTable belongs.
		And make the calling DataTable as ChildTable.

		1). ForeignKeyConstraint.cs - 
			ForeignKeyConstraint(string, string, string[], string[], acceptRejectRule, Rule, Rule);
			PostAddRange() - Validates the named columns in both parent and child tables.  And sets the child and parent column values to appropriate values.
	
		2). ConstraintCollection.cs  
			AddRange()
	<   ]

	Can anyone please tell me if it is fine!

	P.S: 	1). Modified sources, 
		2). Test case for features that I have implemented
Best regards,
Deepak.
	
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ForeignKeyConstraint_patch.tar.gz
Type: application/x-gzip
Size: 22384 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040403/26f65586/attachment.gz 


More information about the Mono-devel-list mailing list