/// <summary> /// Constructor /// </summary> public AzureDataAccess() { AzurePollAppDBContext context = new AzurePollAppDBContext(); UserRepository = new UserRepository(context); CategoryRepository = new CategoryRepository(context); TokenRepository = new TokenRepository(context); QuestionRepository = new QuestionRepository(context); AnswerRepository = new AnswerRepository(context); FormRepository = new FormRepository(context); VotedFormsRepository = new VotedFormsRepository(context); }
/// <summary> /// Constructor /// </summary> public FormRepository(AzurePollAppDBContext context) : base(context) { }
/// <summary> /// Constructor /// </summary> public VotedFormsRepository(AzurePollAppDBContext context) : base(context) { }
/// <summary> /// Constructor /// </summary> public QuestionRepository(AzurePollAppDBContext context) : base(context) { }
/// <summary> /// Constructor /// </summary> public AnswerRepository(AzurePollAppDBContext context) : base(context) { }
public TokenRepository(AzurePollAppDBContext context) : base(context) { }
/// <summary> /// Constructor /// </summary> public CategoryRepository(AzurePollAppDBContext context) : base(context) { }
/// <summary> /// Constructor /// </summary> public GenericRepository(AzurePollAppDBContext context) { Context = context; }