Beispiel #1
0
        public OrmLiteProvidersTestBase(DialectContext context)
        {
            Dialect         = context.Dialect;
            DialectFeatures = new DialectFeatures(Dialect);
            DbFactory       = context.NamedConnection.CreateCopy();
            DialectProvider = DbFactory.DialectProvider;

            if (OrmLiteConfig.DialectProvider == null)
            {
                OrmLiteConfig.DialectProvider = DialectProvider;
            }
        }
Beispiel #2
0
        public OrmLiteProvidersTestBase(Dialect dialect)
        {
            Dialect         = dialect;
            DialectFeatures = new DialectFeatures(Dialect);
            DbFactory       = OrmLiteConnectionFactory.NamedConnections[Dialect.ToString()].CreateCopy();
            DialectProvider = DbFactory.DialectProvider;

            if (OrmLiteConfig.DialectProvider == null)
            {
                OrmLiteConfig.DialectProvider = DialectProvider;
            }
        }