Skip to content

Serilog causes collection initializing with zero rows after update to NH5Β #1667

@jsmarcus

Description

@jsmarcus

I have a lazy loaded collection that is not initializing properly after updating to NH5. From what I can tell I have everything configured correctly and I have not found any change notes that indicate I should be doing things differently in NH5 compared to 4. I have tried debugging and tracing what is going on but have reached the limits of what I can check unassisted.

Collection config

    <set cascade="none" inverse="true" name="AccountSites" where="IsActive = 1">
      <key>
        <column name="AccountId" />
      </key>
      <one-to-many class="Manager360.Entities.Accounts.AccountSiteEntity, Manager360, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
    </set>

Many-to-one config

    <many-to-one cascade="none" class="Manager360.Entities.Accounts.AccountEntity, Manager360, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="Account" not-found="ignore">
      <column name="AccountId" />
    </many-to-one>

I have attached the log for the initialization of the collection. Please any direction to help track down the issue would be helpful.

Collection Initialization Log.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions