Exemplo n.º 1
0
        /// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="config">Конфигурация.</param>
        /// <param name="externals">Внешнее.</param>
        public DataEntitySqlServerContext(
            DataEntitySqlServerConfig config,
            DataEntitySqlServerExternals externals
            )
        {
            Config = config;

            DbFactory = new DataEntitySqlServerDbFactory(
                Config.Settings.ConnectionString,
                externals.DataBaseSettings,
                externals.Environment
                );
        }
Exemplo n.º 2
0
 /// <summary>
 /// Инициализировать конфигурацию.
 /// </summary>
 /// <param name="environment">Окружение.</param>
 public void InitConfig(CoreBaseEnvironment environment)
 {
     Config = new DataEntitySqlServerConfig(environment);
 }