Beispiel #1
0
        public Online()
        {
            InitializeComponent();
            // use DI
            _dbContext = ServiceBuilderForDI.LoadServiceProvider().GetService <OriginKBContext>();

            LoadData();
        }
Beispiel #2
0
 public App()
 {
     // add DI and automapper
     ServiceBuilderForDI.LoadServiceProvider();
     MapperClass.AddMapper();
 }