static void AddDateTimeField(SoodaTransaction tran) { DynamicFieldManager.Add(new FieldInfo { ParentClass = tran.Schema.FindClassByName("PKInt32"), Name = DateTimeField, Type = typeof(DateTime?) }, tran); }
static void AddReferenceField(SoodaTransaction tran) { DynamicFieldManager.Add(new FieldInfo { ParentClass = tran.Schema.FindClassByName("PKInt32"), Name = ReferenceField, Type = typeof(Contact), IsNullable = false }, tran); }
static void AddIntField(SoodaTransaction tran) { DynamicFieldManager.Add(new FieldInfo { ParentClass = tran.Schema.FindClassByName("PKInt32"), Name = IntField, TypeName = "Integer", IsNullable = false }, tran); }
static void AddStringField(SoodaTransaction tran) { DynamicFieldManager.Add(new FieldInfo { ParentClass = tran.Schema.FindClassByName("PKInt32"), Name = StringField, TypeName = "String", Size = 128, IsNullable = false }, tran); }
public void DuplicateFieldWithStatic() { using (SoodaTransaction tran = new SoodaTransaction()) { DynamicFieldManager.Add(new FieldInfo { ParentClass = tran.Schema.FindClassByName("PKInt32"), Name = "Data", TypeName = "Integer", IsNullable = false }, tran); } }