Esempio n. 1
0
 private void setInputArrayObjects(InputSkill[] inputSkills)
 {
     for (int i = 0; i < inputSkills.Length; i++)
     {
         inputSkills[i] = new InputSkill();
     }
 }
 public Skill Get(InputSkill input)
 {
     using (var scope = _scopeFactory.CreateScope())
         using (var db = scope.ServiceProvider.GetRequiredService <GraphQLContext>())
         {
             return(db.Skill.FirstOrDefault(input?.Predicate ?? (_ => false)));
         }
 }
 public List <Skill> GetAll(InputSkill input)
 {
     using (var scope = _scopeFactory.CreateScope())
         using (var db = scope.ServiceProvider.GetRequiredService <GraphQLContext>())
         {
             return(db.Skill.Where(input?.Predicate ?? (_ => true)).ToList());
         }
 }
Esempio n. 4
0
 public List <Skill> GetSkills(int personId, InputSkill input)
 {
     using (var scope = _scopeFactory.CreateScope())
         using (var db = scope.ServiceProvider.GetRequiredService <GraphQLContext>())
         {
             return(db.Person
                    .Include(x => x.Skills)
                    .FirstOrDefault(s => s.Id == personId)
                    ?.Skills
                    .Where(input?.Predicate ?? (_ => true))
                    .ToList()
                    );
         }
 }
Esempio n. 5
0
 private void setInput(InputSkill inputSlot)
 {
     if (inputSlot._state)//si esta presionado y es mayor que cero reducir cooldown
     {
         if (inputSlot._currentCooldown > 0)
         {
             inputSlot._currentCooldown -= Time.deltaTime;
         }
         else
         {
             inputSlot._state = false;
         }
     }
 }
Esempio n. 6
0
 public List <Skill> Skills(Person person, InputSkill input) => _persons.GetSkills(person.Id, input);
Esempio n. 7
0
 public Skill FavSkill(Person person) => _skills.Get(InputSkill.FromId(person.FavSkillId));
Esempio n. 8
0
 public List <Skill> Skills(InputSkill input) => _skills.GetAll(input);
Esempio n. 9
0
 public Skill Skill(InputSkill input) => _skills.Get(input);
Esempio n. 10
0
 public List <Skill> Skills(Engineer engineer, InputSkill input) => _persons.GetSkills(engineer.Id, input);
Esempio n. 11
0
 public Skill FavSkill(Engineer engineer) => _skills.Get(InputSkill.FromId(engineer.FavSkillId));
Esempio n. 12
0
 public List <Skill> Skills(Contact contact, InputSkill input) => _persons.GetSkills(contact.Id, input);
Esempio n. 13
0
 public Skill FavSkill(Contact contact) => _skills.Get(InputSkill.FromId(contact.FavSkillId));
Esempio n. 14
0
 public List <Skill> Skills(Candidate candidate, InputSkill input) => _persons.GetSkills(candidate.Id, input);
Esempio n. 15
0
 public Skill FavSkill(Candidate candidate) => _skills.Get(InputSkill.FromId(candidate.FavSkillId));
Esempio n. 16
0
 public Skill Parent(Skill skill) => _repo.Get(InputSkill.FromId(skill.ParentId));