/// <summary> /// Create a new huntquestion object. /// </summary> /// <param name="huntQuestionId">Initial value of the HuntQuestionId property.</param> /// <param name="huntId">Initial value of the HuntId property.</param> /// <param name="questionId">Initial value of the QuestionId property.</param> public static huntquestion Createhuntquestion(global::System.Int64 huntQuestionId, global::System.Int64 huntId, global::System.Int64 questionId) { huntquestion huntquestion = new huntquestion(); huntquestion.HuntQuestionId = huntQuestionId; huntquestion.HuntId = huntId; huntquestion.QuestionId = questionId; return(huntquestion); }
public void SaveNewHuntQuestion(huntquestion huntQuestion) { using (var context = new TreasureHuntEntities()) { context.huntquestions.AddObject(huntQuestion); context.SaveChanges(); context.ObjectStateManager.ChangeObjectState(huntQuestion, System.Data.EntityState.Added); } }
/// <summary> /// Deprecated Method for adding a new object to the huntquestions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTohuntquestions(huntquestion huntquestion) { base.AddObject("huntquestions", huntquestion); }
/// <summary> /// Create a new huntquestion object. /// </summary> /// <param name="huntQuestionId">Initial value of the HuntQuestionId property.</param> /// <param name="huntId">Initial value of the HuntId property.</param> /// <param name="questionId">Initial value of the QuestionId property.</param> public static huntquestion Createhuntquestion(global::System.Int64 huntQuestionId, global::System.Int64 huntId, global::System.Int64 questionId) { huntquestion huntquestion = new huntquestion(); huntquestion.HuntQuestionId = huntQuestionId; huntquestion.HuntId = huntId; huntquestion.QuestionId = questionId; return huntquestion; }