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; } }
public KManagedObject(KSchema schema) : this(schema, new object[schema.FieldsCount]) { MarkedForInsert = true; }
public KManagedObject(KSchema schema, object[] values) : base(schema, values) { updatedCount = 0; updatedValues = new UpdateTracker[values.Length]; }