Пример #1
0
 public Table(string tableName, int maxRows = 0)
 {
     Name          = tableName;
     LogicalName   = DefaultLogicalName();
     BaseTableName = CleanString(tableName);
     Columns       = new TableColumns();
     Data          = new TableCache(maxRows);
 }
Пример #2
0
 public Table(string tableName, TableColumns columns, TableCache data)
 {
     Name          = tableName;
     LogicalName   = DefaultLogicalName();
     BaseTableName = CleanString(tableName);
     Columns       = columns;
     Data          = data;
 }
Пример #3
0
        public void AddColumn(string columnName, ETypeCode dataType = ETypeCode.String, TableColumn.EDeltaType deltaType = TableColumn.EDeltaType.TrackingField)
        {
            if (Columns == null)
            {
                Columns = new TableColumns();
            }

            Columns.Add(new TableColumn(columnName, dataType, deltaType, Name));
        }
Пример #4
0
        public void AddColumn(string columnName, ETypeCode dataType = ETypeCode.String)
        {
            if (Columns == null)
            {
                Columns = new TableColumns();
            }

            Columns.Add(new TableColumn(columnName, dataType, Name));
        }
Пример #5
0
        public Table(string tableName, int maxRows, params TableColumn[] columns)
        {
            Name          = tableName;
            LogicalName   = DefaultLogicalName();
            BaseTableName = CleanString(tableName);
            Columns       = new TableColumns();
            foreach (var column in columns)
            {
                Columns.Add(column);
            }

            Data = new TableCache(maxRows);
        }
Пример #6
0
 public Table()
 {
     Data    = new TableCache(0);
     Columns = new TableColumns();
 }