Ejemplo n.º 1
0
        public DigiflyRepository(DigiflyContext context)
        {
            _context = context;

            // TODO Ta imot mappe som parameter (lag shortcuts)
            // TODO Fjern endrede filter og fjernede filer ved oppstart
            // TODO Legg til nye filer ved oppstart

            Images  = new EntryContextWrapper <Image>(context, c => c.Images);
            Ratings = new EntryContextWrapper <Rating>(context, c => c.Ratings);
        }
Ejemplo n.º 2
0
 public EntryContextWrapper(DigiflyContext context, Func <DigiflyContext, DbSet <TEntry> > dbSetFunc)
 {
     _context = context;
     _dbSet   = dbSetFunc(context);
 }