public BindingInfo(MemberInfo member, bool primaryKey, bool usePrimaryKey, bool hasRelation, bool readOnly, DataElement attrib) { Member = member; PrimaryKey = primaryKey; UsePrimaryKey = usePrimaryKey; HasRelation = hasRelation; DataElementAttribute = attrib; ReadOnly = readOnly; }
public BindingInfo(DataObject assignObject, MemberInfo member, bool primaryKey, bool hasRelation, bool readOnly, DataElement attrib) { Member = member; // Used for the compiled expression method for assigning to properties and fields. MySqlBinder = (MySqlExpressionDataBinder)typeof(MySqlExpressionDataBinder).GetMethod("GetFor").MakeGenericMethod(assignObject.GetType()).Invoke(null, new object[] { member }); PrimaryKey = primaryKey; HasRelation = hasRelation; DataElementAttribute = attrib; ReadOnly = readOnly; }