Table of Contents

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

objectEntityDocument

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

int

Description

Gets or sets the description of the document.

public string Description { get; set; }

Property Value

string

DocumentTag

Gets or sets the tag of the document.

[Obsolete("DocumentTag is deprecated, please use Tags instead.")]
public string DocumentTag { get; set; }

Property Value

string

EnableCache

public bool EnableCache { get; set; }

Property Value

bool

FileName

Gets or sets the file name of the document.

public string FileName { get; set; }

Property Value

string

IsLocked

public bool IsLocked { get; set; }

Property Value

bool

IsPublic

Gets or sets a value indicating whether the document is public.

public bool IsPublic { get; set; }

Property Value

bool

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

string

PhysicalFileName

Gets or sets the physical file name of the document.

public string PhysicalFileName { get; set; }

Property Value

string

ProductId

public Guid ProductId { get; set; }

Property Value

Guid

Tags

public IList<string> Tags { get; set; }

Property Value

IList<string>

Methods

BuildTags()

public IList<string> BuildTags()

Returns

IList<string>

GetResourceName()

Gets the display name of the entity.

public override string GetResourceName()

Returns

string

The display name of the entity.