[Mono-devel-list] Patch for ForeignKeyConstraint .cs

tsureshkumar tsureshkumar at novell.com
Thu Jul 21 03:14:23 EDT 2005

Boris Kirzner wrote:
> Hello all,
> Attached is a proposed patch for ForeignKeyConstraint :
> - IsConstraintViolated() should check also for Table.EnforceConstraints
> (for the case dataset enforce constraints = false, but datatable enforce 
> constraints = true)
> If no one objects, I'll commit.
> Boris
> -			if (!Table.DataSet.EnforceConstraints)
> +			if (!Table.DataSet.EnforceConstraints && !Table.EnforceConstraints)
>  				return false;

this check contrasts with the meaning of Table.EnforceConstraints. If 
DataSet's EnforceConstraints is set, all tables under it, should inherit 
that property.

I prefer the attached patch. Please check in the test cases.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fk.patch
Type: text/x-patch
Size: 1616 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050721/c1da26ac/attachment.bin 

More information about the Mono-devel-list mailing list