示例#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
                );
        }
 /// <summary>
 /// Инициализировать контекст.
 /// </summary>
 /// <param name="externals">Внешнее.</param>
 public void InitContext(DataEntitySqlServerExternals externals)
 {
     Context = new DataEntitySqlServerContext(Config, externals);
 }