Open
Description
var alreadyStored = await session.Query<HistoricoMyEntity>().Where(h => h.User == user).ToListAsync();
The user
, in this case, is an entity previously persisted via session.Persist
in the same session
.
The exception is :
Unable to cast object of type 'NHibernate.Action.DelayedPostInsertIdentifier' to type 'System.IConvertible'
Expected:
NH should recognize the entity and the DelayedPostInsertIdentifier
, retrieve the ID and use it in the generated SQL.
Metadata
Metadata
Assignees
Labels
No labels