0
respostas

'Could not instantiate connection provider: NHibernate.ConnectionDriverConnectionProvider'

Estou com erro Could not instantiate referente a primeira aula. Alguém pode me ajudar, pfv?

using NHibernate.Collection;
using NHibernate.Cfg;
using NHibernate.Tool.hbm2ddl;
using System.Reflection;

namespace Loja.Infra
{
    public class NHibernateHelper
    {
        public static Configuration RecuperaConfiguracao()
        {
            Configuration cfg = new Configuration();
            cfg.Configure();
            cfg.AddAssembly(Assembly.GetExecutingAssembly());

            return cfg;
        }

            public static void GeraSchema()
            {
                Configuration cfg = RecuperaConfiguracao();
            new SchemaExport(cfg).Create(true, true);
            }


    }
}