Exemplo n.º 1
0
 public ResultTable AddTable(string tableName, ResultTable table = null)
 {
     if (string.IsNullOrEmpty(tableName))
     {
         throw new GeomethodEtlException("Table name is null or empty.");
     }
     if (tables.Exists(t => t.Name == tableName))
     {
         throw new GeomethodEtlException("Table name not unique in result set: " + tableName);
     }
     if (table != null)
     {
         if (tables.Contains(table))
         {
             throw new GeomethodEtlException("Table already attached: " + table.Name);
         }
         table.Name = tableName;
     }
     else
     {
         table = new ResultTable(tableName);
     }
     tables.Add(table);
     return(table);
 }
Exemplo n.º 2
0
        public ResultTable CreateTable()
        {
            var table = new ResultTable(null);

            return(table);
        }
Exemplo n.º 3
0
 public ResultTable AddTable(Enum tableName, ResultTable table = null)
 {
     return(AddTable(tableName.ToString()));
 }
Exemplo n.º 4
0
 public ColumnSet(ResultTable table)
 {
     this.table = table;
 }