Esempio n. 1
0
        public UnitOfWork(IFFYContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("Context cannot be null.");
            }

            this.context = context;
        }
Esempio n. 2
0
        public GenericRepository(IFFYContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("Context cannot be null.");
            }

            this.Context = context;
            this.Set     = this.Context.Set <T>();
        }