Пример #1
0
 static void AddDateTimeField(SoodaTransaction tran)
 {
     DynamicFieldManager.Add(new FieldInfo {
         ParentClass = tran.Schema.FindClassByName("PKInt32"),
         Name        = DateTimeField,
         Type        = typeof(DateTime?)
     }, tran);
 }
Пример #2
0
 static void AddReferenceField(SoodaTransaction tran)
 {
     DynamicFieldManager.Add(new FieldInfo {
         ParentClass = tran.Schema.FindClassByName("PKInt32"),
         Name        = ReferenceField,
         Type        = typeof(Contact),
         IsNullable  = false
     }, tran);
 }
Пример #3
0
 static void AddIntField(SoodaTransaction tran)
 {
     DynamicFieldManager.Add(new FieldInfo {
         ParentClass = tran.Schema.FindClassByName("PKInt32"),
         Name        = IntField,
         TypeName    = "Integer",
         IsNullable  = false
     }, tran);
 }
Пример #4
0
 static void AddStringField(SoodaTransaction tran)
 {
     DynamicFieldManager.Add(new FieldInfo {
         ParentClass = tran.Schema.FindClassByName("PKInt32"),
         Name        = StringField,
         TypeName    = "String",
         Size        = 128,
         IsNullable  = false
     }, tran);
 }
Пример #5
0
 public void DuplicateFieldWithStatic()
 {
     using (SoodaTransaction tran = new SoodaTransaction())
     {
         DynamicFieldManager.Add(new FieldInfo {
             ParentClass = tran.Schema.FindClassByName("PKInt32"),
             Name        = "Data",
             TypeName    = "Integer",
             IsNullable  = false
         }, tran);
     }
 }