public void ToggleToXml(bool needOverrideToggle = false) { if (needOverrideToggle) { CurrentToggle = "xml"; } if (!AppKernel.HasModule(typeof(ArticleXmlModule).FullName)) { AppKernel.Load(new ArticleXmlModule()); AppKernel.Unload(typeof(ArticleDbModule).FullName); } if (!AppKernel.HasModule(typeof(ArticleGroupXmlModule).FullName)) { AppKernel.Load(new ArticleGroupXmlModule()); AppKernel.Unload(typeof(ArticleGroupModule).FullName); } if (AppKernel.HasModule(typeof(ArticleGroupXmlModule).FullName) && AppKernel.HasModule(typeof(ArticleDbModule).FullName)) { //AppKernel.Load(new ArticleXmlModule()); AppKernel.Unload(typeof(ArticleDbModule).FullName); } if (!AppKernel.HasModule(typeof(PlanXmlModule).FullName)) { AppKernel.Load(new PlanXmlModule()); AppKernel.Unload(typeof(PlanDbModule).FullName); } _service = null; }
public DisciplineDb() { rep = AppKernel.Get <IDisciplineRepository>(); }
public TransactionsController() : base() { transactionService = AppKernel.Get <ITransactionService>(); }
public StudentDb() { rep = AppKernel.Get <IStudentRepository>(); }
public EducationDb() { rep = AppKernel.Get <IEducationRepository>(); }
public LabWorkDb() { rep = AppKernel.Get <ILabWorkRepository>(); }
public GroupDb() { rep = AppKernel.Get <IGroupRepository>(); }