/// <summary> /// Deprecated Method for adding a new object to the StudentDocuments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStudentDocuments(StudentDocument studentDocument) { base.AddObject("StudentDocuments", studentDocument); }
/// <summary> /// Create a new StudentDocument object. /// </summary> /// <param name="studentDocumentId">Initial value of the StudentDocumentId property.</param> /// <param name="studentId">Initial value of the StudentId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="contents">Initial value of the Contents property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdOn">Initial value of the CreatedOn property.</param> public static StudentDocument CreateStudentDocument(global::System.Int32 studentDocumentId, global::System.Int32 studentId, global::System.String name, global::System.Byte[] contents, global::System.Int32 createdBy, global::System.DateTime createdOn) { StudentDocument studentDocument = new StudentDocument(); studentDocument.StudentDocumentId = studentDocumentId; studentDocument.StudentId = studentId; studentDocument.Name = name; studentDocument.Contents = contents; studentDocument.CreatedBy = createdBy; studentDocument.CreatedOn = createdOn; return studentDocument; }