[Mono-bugs] [Bug 650390] New: Removing a constraint from a DataTable does not nullify it from DataRelation

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 31 11:28:40 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=650390

https://bugzilla.novell.com/show_bug.cgi?id=650390#c0


           Summary: Removing a constraint from a DataTable does not
                    nullify it from DataRelation
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: cvolzke at live.com.au
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1036 Safari/532.5

- When removing a ForeignKeyConstraint from a DataTable, any related
DataRelation's ChildKeyConstraint property should be nullified.
- When removing a UniqueConstraint from a DataTable, any related DataRelation's
ParentKeyConstraint property should be nullified.


Reproducible: Always

Steps to Reproduce:
1. Create a DataSet, a parent DataTable, a child DataTable and a DataRelation
relating the 2 tables.
2. a UniqueConstraint will be created on the  and a ForeignKeyConstraint.
3. Remove the UniqueConstraint from the parent table. This should cause
DataRelation.ParentKeyConstraint to become null.
4. Remove the ForeignKeyConstraint from the child table. This should cause
DataRelation.ChildKeyConstraint to become null.

Actual Results:  
DataRelation still has a reference to the ChildKeyConstraint and
ParentKeyConstraint, even though those constraints don't exist on the
DataTable.

Expected Results:  
- When removing a ForeignKeyConstraint from a DataTable, any related
DataRelation's ChildKeyConstraint property should be nullified.
- When removing a UniqueConstraint from a DataTable, any related DataRelation's
ParentKeyConstraint property should be nullified.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list