Ejemplo n.º 1
0
 partial void DeleteSAQuestion(SAQuestion instance);
Ejemplo n.º 2
0
 partial void InsertSAQuestion(SAQuestion instance);
Ejemplo n.º 3
0
 partial void UpdateSAQuestion(SAQuestion instance);
Ejemplo n.º 4
0
        public bool CreateSAQuestion(SAQuestionDAO s)
        {
            SAQuestion sAQuestion = new SAQuestion
            {
                SAQuestion_ID = s.SAQuestionID,
                SAQuestionDescription = s.SAQuestionDescription
            };

            using (AESDatabaseDataContext db = new AESDatabaseDataContext())
            {
                db.SAQuestions.InsertOnSubmit(sAQuestion);

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

            return true;
        }