nhibernate-core
nhibernate-core copied to clipboard
NHibernate Object Relational Mapper
Fixes #3725 ## Description `DbBatchBatcher` throws `InvalidOperationException` when attempting to execute an empty batch, while `GenericBatchingBatcher` and `SqlClientBatchingBatcher` handle this scenario correctly. ## Root Cause `DbBatchBatcher.DoExecuteBatch()` and `DoExecuteBatchAsync()` lack empty...
I don't know if this is the most elegant way to solve the issue, but it does solve it, at least for the case I found. I'm not sure if...
## Description `DbBatchBatcher` (available in NHibernate 5.6.0) throws `InvalidOperationException` when attempting to execute an empty batch, while other batchers (`GenericBatchingBatcher` and `SqlClientBatchingBatcher`) handle this scenario correctly. ## Error System.InvalidOperationException: ExecuteNonQuery:...
When loading a cached entity (in nonstrict mode) with a lazy formula field for the first time, NH compares the value of the field with LazyPropertyInitializer.UnfetchedProperty to determine whether or...
With version 5.6.0 there is a package resolve issue when building for .net 9 and a runtime identifier win-x64. This is due to a bug in NETStandard.Library 1.6.0. dotnet build...
I've been optimising some code by attempting to add lock hints and I get a different exception depending on where I put the WithLock call in my query. I initially...
Based on #3662
My application code contains a method that looks like this (simplified): ```cs public bool ContainsLoadedEntityEqualTo(object entity) { return session .GetSessionImplementation() .PersistenceContext .EntityEntries .Keys .Cast() .Contains(entity); } ``` `session.GetSessionImplementation().PersistenceContext.EntityEntries` is of...
See [the issue here](https://github.com/npgsql/npgsql/issues/6301), I start there because the exception is being thrown, somehow or other `Npgsql` is seeing my `IUserType` as though it was `DbType.UInt64`. However, as I explained...