Esempio n. 1
0
		private void detach_SkillQuestionBanks(SkillQuestionBank entity)
		{
			this.SendPropertyChanging();
			entity.QuestionBank = null;
		}
Esempio n. 2
0
		private void attach_SkillQuestionBanks(SkillQuestionBank entity)
		{
			this.SendPropertyChanging();
			entity.Skill = this;
		}
Esempio n. 3
0
 partial void DeleteSkillQuestionBank(SkillQuestionBank instance);
Esempio n. 4
0
 partial void UpdateSkillQuestionBank(SkillQuestionBank instance);
Esempio n. 5
0
 partial void InsertSkillQuestionBank(SkillQuestionBank instance);
        public bool CreateSkillQuestionBank(SkillQuestionBankDAO s)
        {
            SkillQuestionBank skillQuestionBank = new SkillQuestionBank
            {
                SkillQuestionBank_ID = s.SkillQuestionBankID,
                Skill_ID = s.SkillID,
                QuestionBank_ID = s.QuestionBankID
            };

            using (AESDatabaseDataContext db = new AESDatabaseDataContext())
            {
                db.SkillQuestionBanks.InsertOnSubmit(skillQuestionBank);

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

            return true;
        }