예제 #1
0
    // <Snippet1>
    public void AddDataTableMapping()
    {
        // ...
        // create tableMappings
        // ...
        DataTableMapping mapping =
            new DataTableMapping("Categories", "DataCategories");

        tableMappings.Add((Object)mapping);
        Console.WriteLine("Table {0} added to {1} table mapping collection.",
                          mapping.ToString(), tableMappings.ToString());
    }
예제 #2
0
파일: source.cs 프로젝트: ruo2012/samples-1
    // <Snippet1>
    public void AddDataTableMapping()
    {
        // ...
        // create mappings
        // ...
        DataTableMapping mapping =
            new DataTableMapping("Categories", "DataCategories");

        mappings.Add((Object)mapping);
        Console.WriteLine("Table " + mapping.ToString() + " added to " +
                          "table mapping collection " + mappings.ToString());
    }
예제 #3
0
 public void ToStringTest()
 {
     Assert.Equal("System.Data.Common.DataTableMappingCollection", _tableMapCollection.ToString());
 }
 public void ToStringTest()
 {
     Assert.AreEqual("System.Data.Common.DataTableMappingCollection", tableMapCollection.ToString(), "test1");
 }