public Table(string tableName, int maxRows = 0) { Name = tableName; LogicalName = DefaultLogicalName(); BaseTableName = CleanString(tableName); Columns = new TableColumns(); Data = new TableCache(maxRows); }
public Table(string tableName, TableColumns columns, TableCache data) { Name = tableName; LogicalName = DefaultLogicalName(); BaseTableName = CleanString(tableName); Columns = columns; Data = data; }
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)); }
public void AddColumn(string columnName, ETypeCode dataType = ETypeCode.String) { if (Columns == null) { Columns = new TableColumns(); } Columns.Add(new TableColumn(columnName, dataType, Name)); }
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); }
public Table() { Data = new TableCache(0); Columns = new TableColumns(); }