Ejemplo n.º 1
0
        //public MyAppDbContext(DbContextOptions<MyAppDbContext> options,
        //    Core.Configuration.IConfiguration configuration, IUserInformation userInformation)
        //    : base(options)
        //{
        //    _configuration = configuration;
        //    _userInformation = userInformation;
        //    //this.ChangeTracker.AutoDetectChangesEnabled = false;
        //}

        //can't inject userinformation from the integration test
        public MyAppDbContext(DbContextOptions <MyAppDbContext> options,
                              Core.Configuration.IConfiguration configuration)
            : base(options)
        {
            _configuration = configuration;
            //this.ChangeTracker.AutoDetectChangesEnabled = false;
        }
Ejemplo n.º 2
0
 public void Init(IKernel kernel, Core.Configuration.IConfiguration facilityConfig)
 {
     kernel.ComponentRegistered += OnComponentRegistered;
 }