Ejemplo n.º 1
0
        public EFRepository(IMeetMeDbContext context)
        {
            Guard.WhenArgument(context, "DbContext").IsNull().Throw();

            this.context = context;
            this.set     = this.context.Set <T>();
        }
Ejemplo n.º 2
0
        public UnitOfWork(IMeetMeDbContext context)
        {
            Guard.WhenArgument(context, "DbContext").IsNull().Throw();

            this.context = context;
        }