public static EntityStorage CreateEntityStorage(IRepository repo, string[] connectionStrings) { EntityStorage storage; try { repo.Init(connectionStrings); List<DBTeacher> teachers = repo.GetTeachers().ToList(); List<DBStudentSubGroup> groups = repo.GetStudentsGroups().ToList(); List<DBClassRoomType> roomTypes = repo.GetClassRoomsTypes().ToList(); List<DBClassRoom> rooms = repo.GetClassRooms().ToList(); List<DBStudentsClass> classes = repo.GetStudentsClasses().ToList(); storage = MandarinCore.DataConvertor.ConvertData(teachers, groups, roomTypes, rooms, classes); } catch (Exception ex) { throw; } return storage; }