예제 #1
0
 partial void DeleteSkill(Skill instance);
예제 #2
0
 partial void InsertSkill(Skill instance);
예제 #3
0
 partial void UpdateSkill(Skill instance);
        public bool CreateSkill(SkillDAO s)
        {
            Skill skill = new Skill
            {
                Skill_ID = s.SkillID,
                SkillName = s.SkillName
            };

            using (AESDatabaseDataContext db = new AESDatabaseDataContext())
            {
                db.Skills.InsertOnSubmit(skill);

                try
                {
                    db.SubmitChanges();
                }
                catch (Exception e)
                {
                    throw new FaultException<KaskServiceException>(new KaskServiceException(), new FaultReason(e.Message));
                }
            }

            return true;
        }