コード例 #1
0
ファイル: BaseRecord.cs プロジェクト: bravesoftdz/bdtheque
 public SQLDataFieldInfo(SQLDataFieldAttribute fa, PropertyInfo property, SQLDataClassInfo parentClass)
 {
     Field     = null;
     Property  = property;
     FieldType = Property.PropertyType;
     Init(fa, parentClass);
 }
コード例 #2
0
ファイル: BaseRecord.cs プロジェクト: bravesoftdz/bdtheque
 public SQLDataFieldInfo(SQLDataFieldAttribute fa, FieldInfo field, SQLDataClassInfo parentClass)
 {
     Field     = field;
     Property  = null;
     FieldType = Field.FieldType;
     Init(fa, parentClass);
 }
コード例 #3
0
ファイル: BaseRecord.cs プロジェクト: bravesoftdz/bdtheque
 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;
 }