Пример #1
0
 /// <summary>
 /// Method creates when implement singleton service of specific service.
 /// </summary>
 /// <param name="context">databse contex</param>
 public UnitOfWork(ITietoFeedbackToolContext context)
 {
     _context     = context;
     Account      = new AccountRepository(_context);
     Question     = new QuestionRepository(_context);
     PuzzleAnswer = new PuzzleAnswerRepository(_context);
     TrackingCode = new TrackingCodeRepository(_context);
 }
 public PuzzleAnswerRepository(ITietoFeedbackToolContext context) : base(context)
 {
 }
 public QuestionRepository(ITietoFeedbackToolContext context) : base(context)
 {
 }
Пример #4
0
 public Repository(ITietoFeedbackToolContext context)
 {
     _context = context;
 }
Пример #5
0
 public TrackingCodeRepository(ITietoFeedbackToolContext context) : base(context)
 {
 }
 public AccountRepository(ITietoFeedbackToolContext context) : base(context)
 {
 }