Interface ICurrency
The system entity for a Currency
See https://web.lemonedge.com/help/currencies/ for more information
Inherited Members
System.IEquatable<LemonEdge.API.Core.IBaseEntity>.Equals(LemonEdge.API.Core.IBaseEntity)
System.ComponentModel.INotifyPropertyChanged.PropertyChanged
System.ComponentModel.INotifyPropertyChanging.PropertyChanging
Namespace: LemonEdge.API.Entities
Assembly: API.dll
Syntax
[EntityDefinition(EntityID.Currency, "dbo.LT_Currencies", "Currency", LabelColumn = "Name", IsStandingDataEntity = true, HelpURL = "currencies")]
[DefaultEntityIcon(ImageType.Currency)]
public interface ICurrency : IBaseEntityWithPermissions, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ISetCopier
Properties
DecimalPlaces
The number of decimal places this currency should be recorded to. Also used when rounding to the "Currency" level of rounding.
Declaration
[EntityProperty(SQLType.SmallInt, false)]
[EntityDescription("The number of decimal places allowed by this currency, max 5.")]
[PropertyValidation("true", "MyItem.DecimalPlaces <= 5", "Maximum decimal places for a currency is 5")]
short DecimalPlaces { get; set; }
Property Value
Type | Description |
---|---|
System.Int16 |
Description
A user friendly description of this currency
Declaration
[EntityProperty(SQLType.NVarChar, (short)2000, true)]
[EntityDescription("A user friendly description of this currency.")]
string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
The unique user friendly name of this currency
Declaration
[EntityProperty(SQLType.NVarChar, (short)500, false)]
[EntityDescription("The unique name of this currency.")]
[Required]
string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Symbol
The international symbol for this currency
Declaration
[EntityProperty(SQLType.NVarChar, (short)1, false)]
[EntityDescription("The unique symbol for this currency, such as $.")]
[Required]
string Symbol { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ThreeLetterCode
[Key] The unique three letter code for this currency
Declaration
[EntityProperty(SQLType.NVarChar, (short)5, false)]
[EntityDescription("The unique short code for this currency, max 5 characters.")]
[PropertyValidation("true", "MyItem.ThreeLetterCode.Length <= 5", "Length of short code must be less than or equal to 5")]
[Required]
string ThreeLetterCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |