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>(); }
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>(); }