예제 #1
0
        public Races_Players_Skills GetPlayerSkillBase(int ID)
        {
            Races_Players_Skills PlayerSkill =
                (from SkillData in GetAllPlayerSkills()
                 where SkillData.PSkillID == ID
                 select SkillData).First();

            return(PlayerSkill);
        }
예제 #2
0
        public Races_Players_Skills GetNewSkillBase(int PlayerID)
        {
            Races_Players_Skills PlayerSkill = new Races_Players_Skills()
            {
                PSkillID = GetNewSkillSelectID(),
                PlayerID = PlayerID,
            };

            return(PlayerSkill);
        }
예제 #3
0
 public void AddPlayerSkill(Races_Players_Skills Skill)
 {
     _DataContext.Races_Players_Skills.Add(Skill);
     this.SaveChanges();
 }