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.AccountID
    IBaseEntity.ID
    IBaseEntity.LastUpdated
    IBaseEntity.ModifiedByUserID
    IBaseEntity.CanvasID
    IBaseEntity.GetLabel(String)
    IBaseEntity.SetLabel(String, String)
    IBaseEntity.SetSilentLabel(String, String)
    System.IEquatable<LemonEdge.API.Core.IBaseEntity>.Equals(LemonEdge.API.Core.IBaseEntity)
    System.ComponentModel.INotifyPropertyChanged.PropertyChanged
    System.ComponentModel.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
    Assembly: API.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
    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

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)

    See Also

    IObjectEntity
    In This Article
    Back to top © LemonEdge Technology. All rights reserved.