Skip to content

Hashset add returns true instead of false #2476

Closed
@Nazgaul

Description

@Nazgaul

Hi.
Kind hard to describe the scenario but ill do my best.
this is nhibernate v5.2.7 screenshot
Annotation 2020-08-12 172636
this is nhibernate v5.3.2 screenshot
Annotation 2020-08-12 172852

now _followers is a hashset of followers
if i do a foreach before i do the add it return false as expected.
On 5.3.2 i don't see any select to bring the collection...

the mapping in user is

  HasMany(x => x.Followers).Access.CamelCaseField(Prefix.Underscore)
                .Cascade.AllDeleteOrphan()
                .KeyColumn("UserId").Inverse().AsSet();

and

       HasMany(x => x.Following).KeyColumn("FollowerId")
                .Cascade.AllDeleteOrphan().AsSet();

again this is hard scenario due to complex domain module.
I can give you any more info that you'd like.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions