示例#1
0
 public CremaDataRow(CremaDataRowBuilder builder)
 {
     if (builder == null)
     {
         throw new ArgumentNullException();
     }
     this.row = builder.DataRow;
 }
示例#2
0
        internal CremaDataTable(InternalDataTable table)
        {
            this.table      = table;
            this.builder    = new CremaDataRowBuilder(this);
            this.columns    = new CremaDataColumnCollection(this.table);
            this.attributes = new CremaAttributeCollection(this.table);
            this.rows       = new CremaDataRowCollection(this.table);
            this.childs     = new CremaChildTableCollection(this.table);

            this.AttachEventHandlers();
        }
示例#3
0
        public CremaDataTable(string name, string categoryPath)
        {
            this.builder    = new CremaDataRowBuilder(this);
            this.table      = new InternalDataTable(this, name, categoryPath);
            this.columns    = new CremaDataColumnCollection(this.table);
            this.attributes = new CremaAttributeCollection(this.table);
            this.rows       = new CremaDataRowCollection(this.table);
            this.childs     = new CremaChildTableCollection(this.table);

            this.AttachEventHandlers();
        }
示例#4
0
 protected virtual CremaDataRow NewRowFromBuilder(CremaDataRowBuilder builder)
 {
     return(new CremaDataRow(builder));
 }
示例#5
0
 internal CremaDataRow InvokeNewRowFromBuilder(CremaDataRowBuilder builder)
 {
     return(this.NewRowFromBuilder(builder));
 }
示例#6
0
 public InternalDataRow(CremaDataRowBuilder builder, InternalDataTable table)
     : base(table, builder.InternalBuilder)
 {
     this.table  = table;
     base.Target = builder.NewRow(this);
 }