public UnitOfWork(EGramContext context) { if (context == null) { throw new Exception("Context cannot be null"); } _context = context; Surveys = new SurveyRepository(_context); Educations = new EducationRepository(_context); }
public EducationRepository(EGramContext context) : base(context) { }
public SurveyRepository(EGramContext context) : base(context) { }