Exemple #1
0
        public EFRepository(IMeetMeDbContext context)
        {
            Guard.WhenArgument(context, "DbContext").IsNull().Throw();

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

            this.context = context;
        }