Interface ICurrency
The system entity for a Currency
See https://help.lemonedge.com/help/financial-services-engine/trade/currencies/intro.html for more information
Inherited Members
Namespace: LemonEdge.API.Entities.FinancialServices.Products.FX
Assembly: LemonEdge.API.Entities.FinancialServices.dll
Syntax
[EntityDefinition(EntityID.Currency, "dbo.LT_Currencies", "Currency", LabelColumn = "Name", IsStandingDataEntity = true, HelpURL = "help/financial-services-engine/trade/currencies/intro.html")]
[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 |
---|---|
short |
Description
A user friendly description of this currency
Declaration
[EntityProperty(SQLType.NVarChar, 2000, true)]
[EntityDescription("A user friendly description of this currency.")]
string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
The unique user friendly name of this currency
Declaration
[EntityProperty(SQLType.NVarChar, 500, false)]
[EntityDescription("The unique name of this currency.")]
[Unique]
[Required]
string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Symbol
The international symbol for this currency
Declaration
[EntityProperty(SQLType.NVarChar, 10, false)]
[EntityDescription("The unique symbol for this currency, such as $.")]
[Required]
string Symbol { get; set; }
Property Value
Type | Description |
---|---|
string |
ThreeLetterCode
[Key] The unique three letter code for this currency
Declaration
[EntityProperty(SQLType.NVarChar, 5, false)]
[EntityDescription("The unique short code for this currency, max 5 characters.")]
[Unique]
[EntityKeyProperty]
[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 |
---|---|
string |