Skip to content

Error when query with delayed insert entity in where expression #2414

Closed as not planned
@galamai

Description

@galamai

Hi,
Throw System.InvalidCastException: Unable to cast object of type 'NHibernate.Action.DelayedPostInsertIdentifier' to type 'System.IConvertible'

    var entity = new Entity();
    session.Persist(entity);
    var entities= session.Query<Entity>().Where(x => x == entity).ToList();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions