예제 #1
0
 public VolunteerRepository(VMSDataContext context) : base(context)
 {
     if (context == null)
     {
         throw new Exception("No context information was sent.");
     }
 }
예제 #2
0
 public RepositoryBase(VMSDataContext ctx)
 {
     this.context = ctx;
     this.dbSet   = context.Set <TEntity>();
 }