Exemple #1
0
 public KObject(KSchema schema, object[] values)
 {
     this.values = values;
     foreach (var def in schema.Where(f => f.DefaultValue != null && values[f.Index] == null))
     {
         values[def.Index] = def.DefaultValue;
     }
 }
Exemple #2
0
 public KManagedObject(KSchema schema)
     : this(schema, new object[schema.FieldsCount])
 {
     MarkedForInsert = true;
 }
Exemple #3
0
 public KManagedObject(KSchema schema, object[] values)
     : base(schema, values)
 {
     updatedCount  = 0;
     updatedValues = new UpdateTracker[values.Length];
 }