Table of Contents

Class TextResource

Namespace: Casewhere.Models
Assembly: Casewhere.Models.dll

Represents a text resource.

public class TextResource : Entity, IIdentity

Inheritance

objectEntityTextResource

Implements

IIdentity

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<TextResource>(TextResource)

Constructors

TextResource()

public TextResource()

Properties

ContentType

public ContentType? ContentType { get; set; }

Property Value

ContentType?

Description

Gets or sets the description of the text resource.

public string Description { get; set; }

Property Value

string

IsLocked

public bool IsLocked { get; set; }

Property Value

bool

Key

Gets or sets the key of the text resource.

public string Key { get; set; }

Property Value

string

ProductId

public Guid ProductId { get; set; }

Property Value

Guid

Values

Gets or sets the values of the text resource for different languages. Value can be { ("en", "text in English"); ("da", "text in Danish") }

public IDictionary<string, string> Values { get; set; }

Property Value

IDictionary<string, string>

Methods

GetResourceName()

Gets the display name of the entity.

public override string GetResourceName()

Returns

string

The display name of the entity.