Esempio n. 1
0
 public SQLDataFieldInfo(SQLDataFieldAttribute fa, PropertyInfo property, SQLDataClassInfo parentClass)
 {
     Field     = null;
     Property  = property;
     FieldType = Property.PropertyType;
     Init(fa, parentClass);
 }
Esempio n. 2
0
 public SQLDataFieldInfo(SQLDataFieldAttribute fa, FieldInfo field, SQLDataClassInfo parentClass)
 {
     Field     = field;
     Property  = null;
     FieldType = Field.FieldType;
     Init(fa, parentClass);
 }
Esempio n. 3
0
 internal void Init(SQLDataFieldAttribute fa, SQLDataClassInfo parentClass)
 {
     ParentInfo = parentClass;
     if (string.IsNullOrEmpty(fa.SQLFieldName))
     {
         SQLFieldName = string.Empty;
         if (Field != null)
         {
             SQLFieldName = Field.Name.ToUpper(CultureInfo.CurrentCulture);
         }
         if (Property != null)
         {
             SQLFieldName = Property.Name.ToUpper(CultureInfo.CurrentCulture);
         }
     }
     else
     {
         SQLFieldName = fa.SQLFieldName.ToUpper(CultureInfo.CurrentCulture);
     }
     fieldIndex = -1;
 }