/// <summary> /// Deprecated Method for adding a new object to the DocumentTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDocumentTypes(DocumentType documentType) { base.AddObject("DocumentTypes", documentType); }
/// <summary> /// Create a new DocumentType object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="documentTypeCode">Initial value of the DocumentTypeCode property.</param> /// <param name="documentTypeDescription">Initial value of the DocumentTypeDescription property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static DocumentType CreateDocumentType(global::System.Int32 id, global::System.String documentTypeCode, global::System.String documentTypeDescription, global::System.Byte[] rowVersion) { DocumentType documentType = new DocumentType(); documentType.Id = id; documentType.DocumentTypeCode = documentTypeCode; documentType.DocumentTypeDescription = documentTypeDescription; documentType.RowVersion = rowVersion; return documentType; }