Ejemplo n.º 1
0
 public RoleCheck(TcpContext context)
 {
     Context = context;
     context.Database.EnsureCreated();
     _roles        = Context.Set <Role>();
     _userProjects = Context.Set <UserProject>();
 }
Ejemplo n.º 2
0
        public FeatureService(IFeatureRepository featureRepository, TcpContext context)
        {
            _featureRepository = featureRepository;

            _features    = context.Set <Feature>();
            _userStories = context.Set <UserStory>();
            _tasks       = context.Set <TaskItem>();
        }
Ejemplo n.º 3
0
        public UserStoryService(IUserStoryRepository userStoryRepository, TcpContext context)
        {
            _userStoryRepository = userStoryRepository;

            _features    = context.Set <Feature>();
            _userStories = context.Set <UserStory>();
            _tasks       = context.Set <TaskItem>();
        }
Ejemplo n.º 4
0
        public ProjectRepository(
            TcpContext context,
            //  ISprintRepository sprintRepository,  TODO !!
            IUnitOfWork unitOfWork

            ) : base(context)
        {
            _userProjectsSet = context.Set <UserProject>();
            _roles           = context.Set <Role>();
            _unitOfWork      = unitOfWork;
            //  _sprintRepository = sprintRepository;
            _users    = context.Set <User>();
            _projects = context.Set <Project>();
            _sprints  = context.Set <Sprint>();
        }
Ejemplo n.º 5
0
 public SprintRepository(
     TcpContext context,
     ITaskRepository taskRepository,
     IProjectRepository projectRepository) : base(context)
 {
     _tasks             = context.Set <TaskItem>();
     _taskRepository    = taskRepository;
     _projectRepository = projectRepository;
 }
Ejemplo n.º 6
0
 public UserRepository(TcpContext context, IUnitOfWork unitOfWork) : base(context)
 {
     _unitOfWork = unitOfWork;
     _roles      = context.Set <Role>();
     _projects   = context.Set <Project>();
 }
Ejemplo n.º 7
0
        public async Task <IEnumerable <TLookupEntity> > GetAll <TLookupEntity>() where TLookupEntity : LookupEntity
        {
            var entities = _context.Set <TLookupEntity>();

            return(await entities.OrderBy(c => c.Name).ToListAsync());
        }