Ejemplo n.º 1
0
 /// <summary>
 /// Create a new SurveyAnswerGroup object.
 /// </summary>
 /// <param name="answerGroupID">Initial value of the AnswerGroupID property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 /// <param name="portalID">Initial value of the PortalID property.</param>
 /// <param name="answerTypeID">Initial value of the AnswerTypeID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="isDeleted">Initial value of the IsDeleted property.</param>
 public static SurveyAnswerGroup CreateSurveyAnswerGroup(global::System.Int32 answerGroupID, global::System.DateTime createDate, global::System.Int32 portalID, global::System.Int32 answerTypeID, global::System.String name, global::System.Boolean isDeleted)
 {
     SurveyAnswerGroup surveyAnswerGroup = new SurveyAnswerGroup();
     surveyAnswerGroup.AnswerGroupID = answerGroupID;
     surveyAnswerGroup.CreateDate = createDate;
     surveyAnswerGroup.PortalID = portalID;
     surveyAnswerGroup.AnswerTypeID = answerTypeID;
     surveyAnswerGroup.Name = name;
     surveyAnswerGroup.IsDeleted = isDeleted;
     return surveyAnswerGroup;
 }
Ejemplo n.º 2
0
        public static void Insert(Hashtable values)
        {
            DAL.SurveyAnswerGroup Record = new DAL.SurveyAnswerGroup
            {

                PortalID = AnswerGroups.PortalID,
                CreateDate = DateTime.Now,
                AnswerTypeID = int.Parse(values["AnswerTypeID"].ToString()),
                Name = values["Name"].ToString(),
                IsDeleted = false
            };

            Utils.DbContext.AddToSurveyAnswerGroups(Record);
            Utils.DbContext.SaveChanges();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SurveyAnswerGroups EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSurveyAnswerGroups(SurveyAnswerGroup surveyAnswerGroup)
 {
     base.AddObject("SurveyAnswerGroups", surveyAnswerGroup);
 }