示例#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
    // <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());
    }