Class Document
Namespace: Casewhere.Models
Assembly: Casewhere.Models.dll
Represents a file that import and used in the Casewhere System entity.
public class Document : Entity, IIdentity, ICachableResource
Inheritance
Implements
IIdentity, ICachableResource
Inherited Members
Entity.GetResourceName(), Entity.Id, Entity.Version, Entity.CreatedBy, Entity.CreatedAt, Entity.ModifiedBy, Entity.ModifiedAt, object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Extension Methods
ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<Document>(Document)
Constructors
Document()
public Document()
Properties
CacheTime
public int CacheTime { get; set; }
Property Value
Description
Gets or sets the description of the document.
public string Description { get; set; }
Property Value
DocumentTag
Gets or sets the tag of the document.
[Obsolete("DocumentTag is deprecated, please use Tags instead.")]
public string DocumentTag { get; set; }
Property Value
EnableCache
public bool EnableCache { get; set; }
Property Value
FileName
Gets or sets the file name of the document.
public string FileName { get; set; }
Property Value
IsLocked
public bool IsLocked { get; set; }
Property Value
IsPublic
Gets or sets a value indicating whether the document is public.
public bool IsPublic { get; set; }
Property Value
MediaType
[JsonConverter(typeof(StringEnumConverter))]
public MediaType MediaType { get; set; }
Property Value
MediaType
Name
Gets or sets the name of the document.
public string Name { get; set; }
Property Value
PhysicalFileName
Gets or sets the physical file name of the document.
public string PhysicalFileName { get; set; }
Property Value
ProductId
public Guid ProductId { get; set; }
Property Value
Tags
public IList<string> Tags { get; set; }
Property Value
Methods
BuildTags()
public IList<string> BuildTags()
Returns
GetResourceName()
Gets the display name of the entity.
public override string GetResourceName()
Returns
The display name of the entity.