Example #1
0
        public UnitOfWork(eCommAdapter_DevEntities context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context was not supplied");
            }

            this.context = context;
        }
 public GenericRepository(eCommAdapter_DevEntities context)
 {
     this.Context  = context;
     this.Entities = context.Set <Entity>();
 }
Example #3
0
 public UnitOfWork()
 {
     context = new eCommAdapter_DevEntities();
 }