Skip to content

Commit

Permalink
Adapting SchemaCommandGenerator to obsolete NHibernate code
Browse files Browse the repository at this point in the history
  • Loading branch information
BenedekFarkas committed Nov 28, 2024
1 parent b254fc5 commit 4c1afb1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
using System.Linq;
using System.Reflection;
using NHibernate.Cfg;
using NHibernate.Dialect;
using NHibernate.Mapping;
using NHibernate.Tool.hbm2ddl;
using Orchard.ContentManagement.Records;
using Orchard.Data.Migration.Schema;
using Orchard.Data.Providers;
using NHibernate.Dialect;
using Orchard.Environment.Configuration;
using Orchard.Environment.Descriptor.Models;
using Orchard.Environment.Extensions;
Expand Down Expand Up @@ -65,8 +65,7 @@ public IEnumerable<SchemaCommand> GetCreateFeatureCommands(string feature, bool
.CreateProvider(parameters)
.BuildConfiguration(parameters);

Dialect.GetDialect(configuration.Properties);
var mapping = configuration.BuildMapping();
var mapping = configuration.BuildMapping(Dialect.GetDialect(configuration.Properties));

// get the table mappings using reflection
var tablesField = typeof(Configuration).GetField("tables", BindingFlags.Instance | BindingFlags.NonPublic);
Expand Down

0 comments on commit 4c1afb1

Please sign in to comment.