예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public FormRepository(AzurePollAppDBContext context) : base(context)
 {
 }
예제 #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 public VotedFormsRepository(AzurePollAppDBContext context) : base(context)
 {
 }
예제 #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public QuestionRepository(AzurePollAppDBContext context) : base(context)
 {
 }
예제 #5
0
 /// <summary>
 /// Constructor
 /// </summary>
 public AnswerRepository(AzurePollAppDBContext context) : base(context)
 {
 }
예제 #6
0
 public TokenRepository(AzurePollAppDBContext context) : base(context)
 {
 }
예제 #7
0
 /// <summary>
 /// Constructor
 /// </summary>
 public CategoryRepository(AzurePollAppDBContext context) : base(context)
 {
 }
예제 #8
0
 /// <summary>
 /// Constructor
 /// </summary>
 public GenericRepository(AzurePollAppDBContext context)
 {
     Context = context;
 }