コード例 #1
0
		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);
		}
コード例 #2
0
		public void BindSimpleValue(HbmIndexManyToMany indexManyToManyMapping, string propertyPath, bool isNullable)
		{
			new ColumnsBinder(value, Mappings).Bind(indexManyToManyMapping.Columns, isNullable,
																								() =>
																								new HbmColumn
																								{
																									name = mappings.NamingStrategy.PropertyToColumnName(propertyPath),
																								});
		}