Could not create the driver from NHibernate.Driver.SqlClientDriver #2661
-
| I'm moving from .Net Framework to Core 3.1 I'm not understanding what the issue is here. there is this message The Error: The Code:    private ISessionFactory CreateSessionFactory(string assemblyNameWithClassMapper)
        {
            var assembly = Assembly.Load(assemblyNameWithClassMapper);
            if (assembly == null) throw new System.Exception(assemblyNameWithClassMapper + " referance is null");
            var configuartion = Fluently.Configure()
                .Database(MsSqlConfiguration.MsSql2012.ConnectionString(_connectionString))
                .Mappings(m => m.FluentMappings.AddFromAssembly(assembly));            
            return configuartion.BuildSessionFactory();
        } | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
| 
 | 
Beta Was this translation helpful? Give feedback.
Microsoft.Data.SqlClientrequiresNHibernate.Driver.MicrosoftDataSqlClientDriver