/// <summary> /// Deprecated Method for adding a new object to the JobInfoes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToJobInfoes(JobInfo jobInfo) { base.AddObject("JobInfoes", jobInfo); }
/// <summary> /// Create a new JobInfo object. /// </summary> /// <param name="jobInfoID">Initial value of the JobInfoID property.</param> /// <param name="nameKey">Initial value of the NameKey property.</param> /// <param name="jobID">Initial value of the JobID property.</param> public static JobInfo CreateJobInfo(global::System.Int32 jobInfoID, global::System.String nameKey, global::System.Int32 jobID) { JobInfo jobInfo = new JobInfo(); jobInfo.JobInfoID = jobInfoID; jobInfo.NameKey = nameKey; jobInfo.JobID = jobID; return jobInfo; }
/// <summary> /// Adds a piece of information to a job. - Jack /// </summary> /// <param name="item">The information object to add.</param> /// <returns></returns> public static int AddJobInfo(JobInfo item) { return (new Entities()).JobInfo_Insert(item.NameKey, item.DataValue, item.JobID); }