Class Document
Represents a document entity.
Inherited Members
Namespace: Innovt.Domain.Documents
Assembly: Innovt.Domain.dll
Syntax
public class Document : ValueObject
Constructors
| Edit this page View SourceDocument()
Initializes a new instance of the Document class.
Declaration
public Document()
Document(string, int)
Initializes a new instance of the Document class with the specified number and document type.
Declaration
public Document(string number, int documentTypeId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | number | The document number. |
| int | documentTypeId | The ID of the associated document type. |
Properties
| Edit this page View SourceDocumentType
Gets or sets the document type associated with this document.
Declaration
public DocumentType DocumentType { get; set; }
Property Value
| Type | Description |
|---|---|
| DocumentType |
DocumentTypeId
Gets or sets the ID of the document type associated with this document.
Declaration
public int DocumentTypeId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Number
Gets or sets the document number.
Declaration
public string Number { get; set; }
Property Value
| Type | Description |
|---|---|
| string |