Here is my Hibernate settings:
FluentConfiguration configuration = Fluently.Configure()
.Database(PostgreSQLConfiguration.Standard.ConnectionString(c => c
.Host("localhost")
.Port(5432)
.Database("PEDAux")
.Username("ped_admin")
.Password("xxxxx"))
.ShowSql)
.Mappings(m => m.FluentMappings
.AddFromAssembly(Assembly.GetExecutingAssembly())
.Conventions.Add<TableNameConvention>()
.Conventions.Add<ColumnNameConvention>()
)
.ExposeConfiguration(x =>
{
// TODO: Not yet sure what to put in here
});
return configuration.BuildSessionFactory();
I am getting the following Error:
Inner Exception 1: HibernateException: Could not create the driver from NHibernate.Driver.NpgsqlDriver, NHibernate, Version=5.2.0.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4.
Inner Exception 2: TargetInvocationException: Exception has been thrown by the target of an invocation.
Inner Exception 3: ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
Same set of config seems to work when I am using SQLServer. Of course for SQL Server I am using the SQLServer config object. Project is running on .NET Version=v4.7.2".