Search Results for

    Show / Hide Table of Contents

    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
    IBaseEntity.GetLabel(string)
    IBaseEntity.SetLabel(string, string)
    IBaseEntity.SetSilentLabel(string, string)
    IBaseEntity.AccountID
    IBaseEntity.ID
    IBaseEntity.LastUpdated
    IBaseEntity.ModifiedByUserID
    IBaseEntity.CanvasID
    IBaseEntity.AlgorithmStepID
    IBaseEntity.SafeID
    IEquatable<IBaseEntity>.Equals(IBaseEntity)
    INotifyPropertyChanged.PropertyChanged
    INotifyPropertyChanging.PropertyChanging
    ICloneableAsync.Clone(object)
    ICloneableAsync.CopyFromSource(object)
    ICanTrackProperties.HasTrackedPropertyChanged(string)
    ICanTrackProperties.OriginalTrackedPropertyValue(string)
    ICanTrackProperties.OriginalTrackedPropertyValue<T>(string)
    ICanTrackProperties.ClearTrackedOriginalValues()
    ICanTrackProperties.GetAllOriginalTrackedPropertyValues()
    ISetCopier.GetCopyInfo(IEntityUpdater)
    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

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)

    See Also

    IObjectEntity
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.