Example #1
0
        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);
        }
Example #2
0
        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));
        }
Example #3
0
 public static void setDataBaseConfig(IDBConfiguration config)
 {
     _dbConfiguration = config;
 }
Example #4
0
 public DbHelper(IDBConfiguration connection)
 {
     _connection = connection.GetConfig();
 }
Example #5
0
 public SqlServer(IDBConfiguration dbConfig)
 {
     _dbConfig = dbConfig;
 }
Example #6
0
 public MSSQLDB(IDBConfiguration configuration)
 {
     strcon = configuration.ConnectionString;
 }
Example #7
0
 public MSSqlDB(IDBConfiguration config)
 {
     ConnectionString = config.ConnectionString;
 }
 public NhibernateMSSQLConfiguration(IDBConfiguration configuration)
 {
     _configuration = configuration;
 }
Example #9
0
 public MSSQLDB(IDBConfiguration config)
 {
     strcon = config.StringConnection;
 }