Beispiel #1
0
        public TableColumn(TableTemplateBase template, DataTable table)
            : base(template.Domain, table)
        {
            this.template = template;
            var query = from DataRow item in table.Rows
                        where (item.RowState == DataRowState.Deleted || item.RowState == DataRowState.Detached) == false
                        select item.Field <string>("ColumnName");

            var newName = NameUtility.GenerateNewName("Column", query);

            this.SetField(null, "ColumnName", newName);
        }
Beispiel #2
0
 public TableColumn(TableTemplateBase template, DataRow row)
     : base(template.Domain, row)
 {
     this.template = template;
 }