Exemple #1
0
        public Repository(EventifyDbContext context)
        {
            Context = context;
            // Here we are working with a DbContext, not or DbContext. So we don't have DbSets
            // such as Users or Events, and we need to use the generic Set() method to access them.

            _entities = Context.Set <TEntity>();
        }
Exemple #2
0
 public UserRepository(EventifyDbContext context) : base(context)
 {
 }
 public AttendanceRepository(EventifyDbContext context) : base(context)
 {
 }
Exemple #4
0
 public FollowerRepository(EventifyDbContext context) : base(context)
 {
 }
Exemple #5
0
 public PhotoRepository(EventifyDbContext context) : base(context)
 {
 }
Exemple #6
0
 public CategoryRepository(EventifyDbContext context) : base(context)
 {
 }