示例#1
0
        public UnitOfWork(CVProjectContext context)
        {
            _dbContext = context;

            if (context == null)
            {
                throw new ArgumentNullException("Db Context Can Not Be Null");
            }

            _skill = CreateRepo <Skill>();
            _user  = CreateRepo <User>();
        }
示例#2
0
 public RepositoryBase(CVProjectContext context)
 {
     _context = context;
     _dbSet   = _context.Set <TModel>();
 }
 public MaterialRepository(CVProjectContext context)
 {
     this.context = context;
 }
 public WorkExperienceRepository(CVProjectContext context)
 {
     this.context = context;
 }
示例#5
0
 public CourseRepository(CVProjectContext context)
 {
     this.context = context;
 }
 public TechnologyRepository(CVProjectContext context)
 {
     this.context = context;
 }
 public EducationRepository(CVProjectContext context)
 {
     this.context = context;
 }
示例#8
0
 public SkillRepository(CVProjectContext context)
 {
     this.context = context;
 }