public IDataRepository <T> GetRepository <T>(string provider, string connectionString) where T : class, new()
        {
            var sessionFactoryHolder = _sessionFactoryHolderFactory.CreateSessionFactoryHolder(provider, connectionString);

            return(CreateRepository <T>(sessionFactoryHolder));
        }
Пример #2
0
        public SchemaBuilder CreateSchemaBuilder(string provider, string connectionString, string featurePrefix = null, Func <string, string> formatPrefix = null)
        {
            var sessionFactoryHolder = _sessionFactoryHolderFactory.CreateSessionFactoryHolder(provider, connectionString);

            return(CreateSchemaBuilder(sessionFactoryHolder, featurePrefix, formatPrefix));
        }