private static void LoadFromDataBase(ICollection<BaseObject> dictionaryToReturn, UniversityContext universityContext)
 {
     foreach (var obj in universityContext.BaseObjects.Where(x => x.MajorId == 0))
     {
         dictionaryToReturn.Add(obj);
     }
     foreach (var obj in universityContext.EducationalOrganizations.Where(x => x.MajorId == 0))
     {
         dictionaryToReturn.Add(obj);
     }
     foreach (var obj in universityContext.Faculties.Where(x => x.MajorId == 0))
     {
         dictionaryToReturn.Add(obj);
     }
     foreach (var obj in universityContext.Learners.Where(x => x.MajorId == 0))
     {
         dictionaryToReturn.Add(obj);
     }
     foreach (var obj in universityContext.Organizations.Where(x => x.MajorId == 0))
     {
         dictionaryToReturn.Add(obj);
     }
     foreach (var obj in universityContext.Persons.Where(x => x.MajorId == 0))
     {
         dictionaryToReturn.Add(obj);
     }
 }
        public void InitializingDatabases()
        {
            Database.SetInitializer(new DropCreateDatabaseIfModelChanges<UniversityContext>());
            m_firstUniversityContext = new UniversityContext(m_firstDatabaseName);
            m_firstUniversityContext.Database.CreateIfNotExists();

            //Database.SetInitializer(new DropCreateDatabaseIfModelChanges<UniversityContext>());
            //m_secondUniversityContext = new UniversityContext(m_secondDatabaseName);
            //m_secondUniversityContext.Database.CreateIfNotExists();

            Database.SetInitializer(new DropCreateDatabaseIfModelChanges<UniversityContext>());
            m_thirdUniversityContext = new UniversityContext(m_thirdDatabaseName);
            m_thirdUniversityContext.Database.CreateIfNotExists();
        }