Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Map the BusinessAmenity to its own BusinessAmenity class, e.g (pseudocode):</p> <pre><code>[ActiveRecord] class Business { [PrimaryKey] int Id {get;set;} [HasMany] ISet&lt;BusinessAmenity&gt; Amenities {get;set;} } [ActiveRecord] class Amenity { [PrimaryKey] int Id {get;set;} [HasMany] ISet&lt;BusinessAmenity&gt; Businesses {get;set;} } [ActiveRecord] class BusinessAmenity { [BelongsTo] Amenity Amenity {get;set;} [BelongsTo] Business Business {get;set;} [Property] int Value {get;set;} } </code></pre> <p>This has been discussed many times on stackoverflow:</p> <ul> <li><a href="https://stackoverflow.com/questions/889513/nhibernate-many-to-many-mapping-additional-column-in-the-mapping-table">nhibernate many-to-many mapping - additional column in the mapping table?</a></li> <li><a href="https://stackoverflow.com/questions/166426/additional-fields-in-nhibernate-many-to-many-relation-tables">additional fields in NHibernate many-to-many relation tables</a></li> <li><a href="https://stackoverflow.com/questions/472052/many-to-many-mapping-with-extra-columns-in-join-table">Many-to-many mapping with extra columns in join table</a></li> <li><a href="https://stackoverflow.com/questions/2713329/nhibernate-many-to-many-relationship-with-field-in-the-relationship-table">NHibernate: Many-to-many relationship with field in the relationship table</a></li> <li><a href="https://stackoverflow.com/questions/350311/using-additional-data-on-intermediate-table-with-nhibernate">Using Additional Data on Intermediate Table with NHibernate</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload