예제 #1
0
 internal DbColumnMapping(PropertyInfo property, DbFieldAttribute attr)
 {
     this.FieldAttribute      = attr;
     this.Property            = property;
     this.ColumnType          = property.PropertyType;
     this.ColumnName          = attr.FieldName ?? property.Name;
     this.PrimaryKeyAttribute = property.GetCustomAttribute <DbFieldPrimaryKeyAttribute>();
 }
예제 #2
0
 internal DbColumnMapping(FieldInfo field, DbFieldAttribute attr)
 {
     this.FieldAttribute      = attr;
     this.Field               = field;
     this.ColumnType          = field.FieldType;
     this.ColumnName          = attr.FieldName ?? field.Name;
     this.PrimaryKeyAttribute = field.GetCustomAttribute <DbFieldPrimaryKeyAttribute>();
 }