Interface IDocumentAttachment
The system entity for a Document Attachment, which holds the version of a file against a parent document
See https://help.lemonedge.com/documents/ for more information
Inherited Members
Namespace: LemonEdge.API.Entities.Workflow
Assembly: LemonEdge.API.dll
Syntax
[EntityDefinition(EntityID.DocumentAttachment, "dbo.LT_DocumentAttachments", "DocumentAttachment", IsStandingDataEntity = false)]
[DefaultEntityIcon(ImageType.Documents)]
[EntityIndex(Name = "DocAttach", ColumnNames = new string[] { "DocumentID" }, IndexOrder = new IndexOrder[] { IndexOrder.Ascending }, IsClustered = false, IsUnique = false)]
public interface IDocumentAttachment : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, IHasVersion
Properties
DocumentID
Links to IDocument. The parent document this attachment is a member of
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityRelationship(EntityID.Document, "ID", SingleJoinType.One, "Document", "Attachment", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = true, InheritPermissions = true)]
[RequiredNoDefaultIDValidation]
Guid DocumentID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
DocumentImage
The actual document.
Declaration
[EntityProperty(SQLType.VarBinary, true)]
[EntityDescription("The actual document.")]
byte[] DocumentImage { get; set; }
Property Value
Type | Description |
---|---|
byte[] |
DocumentLink
A link to a file on a storage account. This will be fetched and put into byte data.
Declaration
[EntityProperty(SQLType.NVarChar, 1024, true)]
[EntityDescription("An optional link to an article, file or url.")]
string DocumentLink { get; set; }
Property Value
Type | Description |
---|---|
string |