Exemplo n.º 1
0
		private void detach_SkillQuestionBanks(SkillQuestionBank entity)
		{
			this.SendPropertyChanging();
			entity.QuestionBank = null;
		}
Exemplo n.º 2
0
		private void attach_SkillQuestionBanks(SkillQuestionBank entity)
		{
			this.SendPropertyChanging();
			entity.Skill = this;
		}
Exemplo n.º 3
0
 partial void DeleteSkillQuestionBank(SkillQuestionBank instance);
Exemplo n.º 4
0
 partial void UpdateSkillQuestionBank(SkillQuestionBank instance);
Exemplo 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;
        }