private void BindIndexManyToMany(HbmIndexManyToMany indexManyToManyMapping, ManyToOne model, string defaultColumnName, bool isNullable) { new ValuePropertyBinder(model, Mappings).BindSimpleValue(indexManyToManyMapping, defaultColumnName, isNullable); model.ReferencedEntityName = GetEntityName(indexManyToManyMapping, mappings); BindForeignKey(indexManyToManyMapping.foreignkey, model); }
public void BindSimpleValue(HbmIndexManyToMany indexManyToManyMapping, string propertyPath, bool isNullable) { new ColumnsBinder(value, Mappings).Bind(indexManyToManyMapping.Columns, isNullable, () => new HbmColumn { name = mappings.NamingStrategy.PropertyToColumnName(propertyPath), }); }