From 76260523d19f6410e0899919930b23bd37b62108 Mon Sep 17 00:00:00 2001 From: Majid Date: Tue, 10 Sep 2019 09:31:48 +0430 Subject: [PATCH] improvements --- DDDCommon.csproj | 2 +- Infrastructure/Types/NHibernate/PostgreSqlNHibernateHelper.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DDDCommon.csproj b/DDDCommon.csproj index 57818f8..1600054 100644 --- a/DDDCommon.csproj +++ b/DDDCommon.csproj @@ -6,7 +6,7 @@ Meteor true latest - 1.0.6 + 1.0.8 diff --git a/Infrastructure/Types/NHibernate/PostgreSqlNHibernateHelper.cs b/Infrastructure/Types/NHibernate/PostgreSqlNHibernateHelper.cs index 56d63f4..6b3cf08 100644 --- a/Infrastructure/Types/NHibernate/PostgreSqlNHibernateHelper.cs +++ b/Infrastructure/Types/NHibernate/PostgreSqlNHibernateHelper.cs @@ -2,6 +2,7 @@ using DDDCommon.Infrastructure.Types.NHibernate.Conventions; using FluentNHibernate.Cfg; using FluentNHibernate.Cfg.Db; +using FluentNHibernate.Conventions.Helpers; using NHibernate; using NHibernate.Dialect; using NHibernate.Spatial.Mapping; @@ -35,6 +36,7 @@ public static ISessionFactory Create(DbConfigurations dbConfigurations) .Mappings(x => { dbConfigurations1.EntityTypeAssemblies.ForEach(y => x.FluentMappings.AddFromAssembly(y)); + x.FluentMappings.Conventions.Setup(y => y.Add(AutoImport.Never())); if (dbConfigurations.UseNodaTime) x.FluentMappings.Conventions.Add(); if (dbConfigurations.UseNetTopologySuite)