예제 #1
0
        public IEnumerable <Nationality> GetNationalities()
        {
            var _db = new DigitalID.DataAccess.DigitalIdDbContext();
            IEnumerable <Nationality> query = unitOfWork.NationalityRepository.Get();

            return(query);
        }
예제 #2
0
 public GenericRepository(DigitalIdDbContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }