Example #1
0
 public MessageRepository(ZakaraiMeContext context)
 {
     this.context = context;
     dbSet        = context.Set <Message>();
 }
Example #2
0
 public PictureRepository(ZakaraiMeContext context, IHostingEnvironment hostingEnvironment)
 {
     this.context = context;
     dbSet        = context.Set <Picture>();
     wwwRootPath  = hostingEnvironment.WebRootPath;
 }
Example #3
0
 public BaseRepository(ZakaraiMeContext context)
 {
     this.context = context;
     dbSet        = context.Set <TEntity>();
 }