/// <summary> /// Deprecated Method for adding a new object to the StudentParents EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStudentParents(StudentParent studentParent) { base.AddObject("StudentParents", studentParent); }
/// <summary> /// Create a new StudentParent object. /// </summary> /// <param name="studentParentId">Initial value of the StudentParentId property.</param> /// <param name="studentId">Initial value of the StudentId property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdOn">Initial value of the CreatedOn property.</param> /// <param name="lastModifiedBy">Initial value of the LastModifiedBy property.</param> /// <param name="lastModifiedOn">Initial value of the LastModifiedOn property.</param> public static StudentParent CreateStudentParent(global::System.Int32 studentParentId, global::System.Int32 studentId, global::System.Int32 createdBy, global::System.DateTime createdOn, global::System.Int32 lastModifiedBy, global::System.DateTime lastModifiedOn) { StudentParent studentParent = new StudentParent(); studentParent.StudentParentId = studentParentId; studentParent.StudentId = studentId; studentParent.CreatedBy = createdBy; studentParent.CreatedOn = createdOn; studentParent.LastModifiedBy = lastModifiedBy; studentParent.LastModifiedOn = lastModifiedOn; return studentParent; }