fluent-nhibernate icon indicating copy to clipboard operation
fluent-nhibernate copied to clipboard

Please create ability to map hidden collections

Open megafetis opened this issue 6 years ago • 1 comments

Please create ability to map hidden collections as in native mapping by code (Set("ProtectedList")) Or possibility to add mappingByCode mappings to FluentConfiguration

OneToMany and ManyToMany

megafetis avatar Feb 17 '19 07:02 megafetis

I need it to cascade remove bidirectional assoiated relationships

megafetis avatar Feb 17 '19 07:02 megafetis

@megafetis , it is possible and always was:

HasMany(Reveal.Member<Entity, IEnumerable<Child>>("ProtectedList")).AsSet()

Or like this:

HasMany<Child>(Reveal.Member<Entity>("ProtectedList")).AsSet()

hazzik avatar Oct 06 '22 03:10 hazzik