/// <summary>
        /// Create a new StudentOptionChoice object.
        /// </summary>
        /// <param name="choiceId">Initial value of the ChoiceId property.</param>
        /// <param name="year">Initial value of the Year property.</param>
        /// <param name="studentNumber">Initial value of the StudentNumber property.</param>
        /// <param name="firstName">Initial value of the FirstName property.</param>
        /// <param name="lastName">Initial value of the LastName property.</param>
        /// <param name="firstChoice">Initial value of the FirstChoice property.</param>
        /// <param name="secondChoice">Initial value of the SecondChoice property.</param>
        /// <param name="thirdChoice">Initial value of the ThirdChoice property.</param>
        /// <param name="fourthChoice">Initial value of the FourthChoice property.</param>
        /// <param name="createDate">Initial value of the CreateDate property.</param>
        public static StudentOptionChoice CreateStudentOptionChoice(global::System.Int32 choiceId, global::System.Int32 year, global::System.String studentNumber, global::System.String firstName, global::System.String lastName, global::System.String firstChoice, global::System.String secondChoice, global::System.String thirdChoice, global::System.String fourthChoice, global::System.DateTime createDate)
        {
            StudentOptionChoice studentOptionChoice = new StudentOptionChoice();

            studentOptionChoice.ChoiceId      = choiceId;
            studentOptionChoice.Year          = year;
            studentOptionChoice.StudentNumber = studentNumber;
            studentOptionChoice.FirstName     = firstName;
            studentOptionChoice.LastName      = lastName;
            studentOptionChoice.FirstChoice   = firstChoice;
            studentOptionChoice.SecondChoice  = secondChoice;
            studentOptionChoice.ThirdChoice   = thirdChoice;
            studentOptionChoice.FourthChoice  = fourthChoice;
            studentOptionChoice.CreateDate    = createDate;
            return(studentOptionChoice);
        }
 public int AddOptionSelection(SelectionDetail selection)
 {
     StudentOptionChoice s = new StudentOptionChoice()
     {
         StudentNumber = selection.StudentNumber,
         FirstName = selection.FirstName,
         LastName = selection.LastName,
         FirstChoice = selection.FirstChoice,
         SecondChoice = selection.SecondChoice,
         ThirdChoice = selection.ThirdChoice,
         FourthChoice = selection.FourthChoice,
         CreateDate = DateTime.Now.Date,
         Year = Convert.ToInt32(ConfigurationManager.AppSettings["Year"])
     };
     cxt.AddToStudentOptionChoices(s);
     cxt.SaveChanges();
     return s.ChoiceId;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the StudentOptionChoices EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStudentOptionChoices(StudentOptionChoice studentOptionChoice)
 {
     base.AddObject("StudentOptionChoices", studentOptionChoice);
 }
 /// <summary>
 /// Create a new StudentOptionChoice object.
 /// </summary>
 /// <param name="choiceId">Initial value of the ChoiceId property.</param>
 /// <param name="year">Initial value of the Year property.</param>
 /// <param name="studentNumber">Initial value of the StudentNumber property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="firstChoice">Initial value of the FirstChoice property.</param>
 /// <param name="secondChoice">Initial value of the SecondChoice property.</param>
 /// <param name="thirdChoice">Initial value of the ThirdChoice property.</param>
 /// <param name="fourthChoice">Initial value of the FourthChoice property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 public static StudentOptionChoice CreateStudentOptionChoice(global::System.Int32 choiceId, global::System.Int32 year, global::System.String studentNumber, global::System.String firstName, global::System.String lastName, global::System.String firstChoice, global::System.String secondChoice, global::System.String thirdChoice, global::System.String fourthChoice, global::System.DateTime createDate)
 {
     StudentOptionChoice studentOptionChoice = new StudentOptionChoice();
     studentOptionChoice.ChoiceId = choiceId;
     studentOptionChoice.Year = year;
     studentOptionChoice.StudentNumber = studentNumber;
     studentOptionChoice.FirstName = firstName;
     studentOptionChoice.LastName = lastName;
     studentOptionChoice.FirstChoice = firstChoice;
     studentOptionChoice.SecondChoice = secondChoice;
     studentOptionChoice.ThirdChoice = thirdChoice;
     studentOptionChoice.FourthChoice = fourthChoice;
     studentOptionChoice.CreateDate = createDate;
     return studentOptionChoice;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the StudentOptionChoices EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStudentOptionChoices(StudentOptionChoice studentOptionChoice)
 {
     base.AddObject("StudentOptionChoices", studentOptionChoice);
 }