Exemplo n.º 1
0
        public PostgreSqlDbContext(string connectionString = "")
        {
            var dbFactory = new PostgreSqlFactory();

            DbHelper.ConnectionString = connectionString;
            DbHelper.DbFactory        = dbFactory;
            DbBuilder           = new PostgreSqlBuilder();
            DbBuilder.DbFactory = dbFactory;
        }
Exemplo n.º 2
0
        public PostgreSqlDbContext(string connectionString = "")
        {
            var dbFactory = new PostgreSqlFactory();

            DbHelper.ConnectionString = connectionString;
            DbHelper.DbFactory        = dbFactory;
            DbBuilder               = new PostgreSqlBuilder();
            DbBuilder.DbFactory     = dbFactory;
            DbBuilder.CurrentDbType = SmartDbTypes.PostgreSql;
            CurrentDbType           = SmartDbTypes.PostgreSql;
        }