public UnitOfWork(IFFYContext context) { if (context == null) { throw new ArgumentNullException("Context cannot be null."); } this.context = context; }
public GenericRepository(IFFYContext context) { if (context == null) { throw new ArgumentNullException("Context cannot be null."); } this.Context = context; this.Set = this.Context.Set <T>(); }