System.Data.Tests.DataSetInferXmlSchemaTest.ConflictSimpleComplexColumns C# (CSharp) Method

ConflictSimpleComplexColumns() private method

private ConflictSimpleComplexColumns ( ) : void
return void
        public void ConflictSimpleComplexColumns()
        {
            DataSet ds = GetDataSet(_xml18, null);
            AssertDataSet("ds", ds, "set", 2, 1);

            DataTable dt = ds.Tables[0];
            AssertDataTable("dt", dt, "table", 1, 0, 0, 1, 1, 1);
            AssertDataColumn("table_Id", dt.Columns[0], "table_Id", false, true, 0, 1, "table_Id", MappingType.Hidden, typeof(int), DBNull.Value, string.Empty, -1, string.Empty, 0, string.Empty, false, true);

            dt = ds.Tables[1];
            AssertDataTable("dt", dt, "col", 2, 0, 1, 0, 1, 0);
            AssertDataColumn("another_col", dt.Columns[0], "another_col", true, false, 0, 1, "another_col", MappingType.Element, typeof(string), DBNull.Value, string.Empty, -1, string.Empty, 0, string.Empty, false, false);
            AssertDataColumn("table_refId", dt.Columns[1], "table_Id", true, false, 0, 1, "table_Id", MappingType.Hidden, typeof(int), DBNull.Value, string.Empty, -1, string.Empty, 1, string.Empty, false, false);

            DataRelation dr = ds.Relations[0];
            AssertDataRelation("rel", dr, "table_col", true, new string[] { "table_Id" }, new string[] { "table_Id" }, true, true);
            AssertUniqueConstraint("uniq", dr.ParentKeyConstraint, "Constraint1", true, new string[] { "table_Id" });
            AssertForeignKeyConstraint("fkey", dr.ChildKeyConstraint, "table_col", AcceptRejectRule.None, Rule.Cascade, Rule.Cascade, new string[] { "table_Id" }, new string[] { "table_Id" });
        }