/// <summary> /// Deprecated Method for adding a new object to the JobRoles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToJobRoles(JobRole jobRole) { base.AddObject("JobRoles", jobRole); }
/// <summary> /// Create a new JobRole object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="jobRoleDescription">Initial value of the JobRoleDescription property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static JobRole CreateJobRole(global::System.Int32 id, global::System.String jobRoleDescription, global::System.Byte[] rowVersion) { JobRole jobRole = new JobRole(); jobRole.Id = id; jobRole.JobRoleDescription = jobRoleDescription; jobRole.RowVersion = rowVersion; return jobRole; }