You need to configure the mapping for the Id collection in the model.
In the case of a 1 to 1 relationship, everything is very clear. I do so
References(myEntity => myEntity.Prop).Column("my_entity_id").ReadOnly(); Map(myEntity => myEntity.PropId).Column("my_entity_id"); This means that in my essence MyEntity has a link to the Prop entity, and the PropId field is the identifier of this entity and it is through him that I change the related Prop entity to another one.
And how to make the same behavior for collections?
HasMany(myEntity => myEntity.OtherProperties).KeyColumn("my_entity_id"); Indicates that the OtherProperty entity has a connection to MyEntity, but in order to specify which OtherProperty entities are associated with the current MyEntity (in the context of MyEntity) I would like to have the OtherPropertiesIdList property in it and work with it. But how to set up mapping?