示例#1
0
        public Update Add(DataAction dataAction, Row row, Enum field)
        {
            FieldArray fieldArray = FieldArray.Clear;

            fieldArray[field] = true;

            return(Add(new Update(dataAction, row, fieldArray)));
        }
示例#2
0
 public Update(DataAction dataAction, Row row, FieldArray fieldArray)
 {
     // Initialize the object
     this.DataAction = dataAction;
     this.Row        = row;
     this.Key        = null;
     this.RowVersion = (long)row[row.Table.RowVersionColumn, row.RowState == DataRowState.Deleted ? DataRowVersion.Original :
                                 DataRowVersion.Current];
     this.Fields = fieldArray;
 }
示例#3
0
        public static FieldArray operator |(FieldArray fieldArray0, FieldArray fieldArray1)
        {
            FieldArray fieldArray = new FieldArray();

            fieldArray.field0 = fieldArray0.field0 | fieldArray1.field0;
            fieldArray.field1 = fieldArray0.field1 | fieldArray1.field1;
            fieldArray.field2 = fieldArray0.field2 | fieldArray1.field2;
            fieldArray.field3 = fieldArray0.field3 | fieldArray1.field3;
            fieldArray.field4 = fieldArray0.field4 | fieldArray1.field4;
            fieldArray.field5 = fieldArray0.field5 | fieldArray1.field5;
            fieldArray.field6 = fieldArray0.field6 | fieldArray1.field6;
            fieldArray.field7 = fieldArray0.field7 | fieldArray1.field7;

            return(fieldArray);
        }
示例#4
0
 public Update Add(DataAction dataAction, Row row, FieldArray fields)
 {
     return(Add(new Update(dataAction, row, fields)));
 }