Beispiel #1
0
        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>();
 }
Beispiel #4
0
 public StudentDb()
 {
     rep = AppKernel.Get <IStudentRepository>();
 }
Beispiel #5
0
 public EducationDb()
 {
     rep = AppKernel.Get <IEducationRepository>();
 }
Beispiel #6
0
 public LabWorkDb()
 {
     rep = AppKernel.Get <ILabWorkRepository>();
 }
Beispiel #7
0
 public GroupDb()
 {
     rep = AppKernel.Get <IGroupRepository>();
 }