protected void Application_Start() { GlobalConfiguration.Configure(WebApiConfig.Register); string connectionString = System.Configuration.ConfigurationSettings.AppSettings.Get("connectionString"); SQLConfig = new BusinessLogic.DataBase.SQLConfiguration(connectionString); DBService.setDataBaseConfig(SQLConfig); }
public NhibernateFactory(IDBConfiguration configuration) { var dbConfiguration = configuration; if (dbConfiguration.DBType == DatabaseType.MSSQL) _getSessionFactory = new NhibernateMSSQLConfiguration(dbConfiguration); if (_getSessionFactory == null) throw new ArchitectureException(string.Format("There is no IGetSessionFactory realization for '{0}' database type", configuration)); }
public static void setDataBaseConfig(IDBConfiguration config) { _dbConfiguration = config; }
public DbHelper(IDBConfiguration connection) { _connection = connection.GetConfig(); }
public SqlServer(IDBConfiguration dbConfig) { _dbConfig = dbConfig; }
public MSSQLDB(IDBConfiguration configuration) { strcon = configuration.ConnectionString; }
public MSSqlDB(IDBConfiguration config) { ConnectionString = config.ConnectionString; }
public NhibernateMSSQLConfiguration(IDBConfiguration configuration) { _configuration = configuration; }
public MSSQLDB(IDBConfiguration config) { strcon = config.StringConnection; }