From 6d3ad526cc73079de779d1caa7ff0a66492e1e24 Mon Sep 17 00:00:00 2001 From: dennis-gr Date: Fri, 7 Jun 2024 16:22:18 +0200 Subject: [PATCH 1/3] Fix parameter name of Check() in ClassCustomizer --- .../Mapping/ByCode/Impl/CustomizersImpl/ClassCustomizer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NHibernate/Mapping/ByCode/Impl/CustomizersImpl/ClassCustomizer.cs b/src/NHibernate/Mapping/ByCode/Impl/CustomizersImpl/ClassCustomizer.cs index c4693e43898..02683e29638 100644 --- a/src/NHibernate/Mapping/ByCode/Impl/CustomizersImpl/ClassCustomizer.cs +++ b/src/NHibernate/Mapping/ByCode/Impl/CustomizersImpl/ClassCustomizer.cs @@ -117,9 +117,9 @@ public void Table(string tableName) CustomizersHolder.AddCustomizer(typeof(TEntity), (IClassMapper m) => m.Table(tableName)); } - public void Check(string tableName) + public void Check(string check) { - CustomizersHolder.AddCustomizer(typeof(TEntity), (IClassMapper m) => m.Check(tableName)); + CustomizersHolder.AddCustomizer(typeof(TEntity), (IClassMapper m) => m.Check(check)); } public void Catalog(string catalogName) From 9a8543966fbcb3dbc76a598f2fa58a5fd3675172 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 7 Jun 2024 14:27:47 +0000 Subject: [PATCH 2/3] Generate async files --- .../Async/CacheTest/Caches/SerializingCache.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/NHibernate.Test/Async/CacheTest/Caches/SerializingCache.cs b/src/NHibernate.Test/Async/CacheTest/Caches/SerializingCache.cs index 82db3ead946..f625e8b0222 100644 --- a/src/NHibernate.Test/Async/CacheTest/Caches/SerializingCache.cs +++ b/src/NHibernate.Test/Async/CacheTest/Caches/SerializingCache.cs @@ -43,19 +43,6 @@ public override Task PutAsync(object key, object value, CancellationToken cancel } } - public override Task RemoveAsync(object key, CancellationToken cancellationToken) - { - try - { - _hashtable.Remove(key); - return Task.CompletedTask; - } - catch (System.Exception ex) - { - return Task.FromException(ex); - } - } - public override Task ClearAsync(CancellationToken cancellationToken) { try From 7735146a8b88576f2de73d0349ee6f7963d502b7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 7 Jun 2024 14:29:40 +0000 Subject: [PATCH 3/3] Generate async files --- .../Async/CacheTest/Caches/SerializingCache.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/NHibernate.Test/Async/CacheTest/Caches/SerializingCache.cs b/src/NHibernate.Test/Async/CacheTest/Caches/SerializingCache.cs index f625e8b0222..82db3ead946 100644 --- a/src/NHibernate.Test/Async/CacheTest/Caches/SerializingCache.cs +++ b/src/NHibernate.Test/Async/CacheTest/Caches/SerializingCache.cs @@ -43,6 +43,19 @@ public override Task PutAsync(object key, object value, CancellationToken cancel } } + public override Task RemoveAsync(object key, CancellationToken cancellationToken) + { + try + { + _hashtable.Remove(key); + return Task.CompletedTask; + } + catch (System.Exception ex) + { + return Task.FromException(ex); + } + } + public override Task ClearAsync(CancellationToken cancellationToken) { try