Skip to content

Working with values from component (IDictionary<string, object>) not possible #2426

@heikar

Description

@heikar

Hi,

if i try to work with the returned value(s) in a component (IDictionary<string, object>) then an error appears.

Query:

query.SelectList(list => list
.Select(…)
.Select(x => ((int)x.Values["Prop1"])).WithAlias(() => alias.Prop1));

or
query.Where(x => ((int)x.Values["Prop1"]) > 100);

Error-Message:
ArgumentException: The Object with The Type "NHibernate.Util.DynamicComponent" cannot be convertet to the Type "System.Int32".

Many Greetings
heikar

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