Beispiel #1
0
        public PostgreSqlDbContext(string connectionString = "")
        {
            var dbFactory = new PostgreSqlFactory();

            DbHelper.ConnectionString = connectionString;
            DbHelper.DbFactory        = dbFactory;
            DbBuilder           = new PostgreSqlBuilder();
            DbBuilder.DbFactory = dbFactory;
        }
Beispiel #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;
        }