Exemplo n.º 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());
    }
Exemplo n.º 2
0
    // <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());
    }
Exemplo n.º 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");
 }