public SQLDataFieldInfo(SQLDataFieldAttribute fa, PropertyInfo property, SQLDataClassInfo parentClass) { Field = null; Property = property; FieldType = Property.PropertyType; Init(fa, parentClass); }
public SQLDataFieldInfo(SQLDataFieldAttribute fa, FieldInfo field, SQLDataClassInfo parentClass) { Field = field; Property = null; FieldType = Field.FieldType; Init(fa, parentClass); }
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; }