Class TextResource
Namespace: Casewhere.Models
Assembly: Casewhere.Models.dll
Represents a text resource.
public class TextResource : Entity, IIdentity
Inheritance
object ← Entity ← TextResource
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
Description
Gets or sets the description of the text resource.
public string Description { get; set; }
Property Value
IsLocked
public bool IsLocked { get; set; }
Property Value
Key
Gets or sets the key of the text resource.
public string Key { get; set; }
Property Value
ProductId
public Guid ProductId { get; set; }
Property Value
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
Methods
GetResourceName()
Gets the display name of the entity.
public override string GetResourceName()
Returns
The display name of the entity.