Search Results for

    Show / Hide Table of Contents

    Class ExchangeRate

    Inheritance
    object
    BaseEntity
    ExchangeRate
    Implements
    IExchangeRate
    IBaseEntity
    IEquatable<IBaseEntity>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<IExchangeRate>
    Inherited Members
    BaseEntity.HISTORY_ENDROWUPDATE_COLNAME
    BaseEntity.HasTrackedPropertyChanged(string)
    BaseEntity.OriginalTrackedPropertyValue(string)
    BaseEntity.OriginalTrackedPropertyValue<T>(string)
    BaseEntity.ClearTrackedOriginalValues()
    BaseEntity.GetAllOriginalTrackedPropertyValues()
    BaseEntity.GetLabel(string)
    BaseEntity.SetLabel(string, string)
    BaseEntity.SetSilentLabel(string, string)
    BaseEntity.ResetChangedTrackedPropertiesToOriginalValues()
    BaseEntity.AddTrackedOriginalValue(string, object)
    BaseEntity.SnapshotProperties()
    BaseEntity.RestoreFromSnapshot(Dictionary<string, object>)
    BaseEntity.IsBasePropertyName(string)
    BaseEntity.IsBaseRelationshipID(string)
    BaseEntity.OnPropertyChanging(string)
    BaseEntity.OnPropertyChanged(string)
    BaseEntity.Equals(IBaseEntity)
    BaseEntity.GetHashCode()
    BaseEntity.Equals(object)
    BaseEntity.Clone(object)
    BaseEntity.CopyFromSource(object)
    BaseEntity.TrackChanges
    BaseEntity.ModifiedByUserID_Label
    BaseEntity.ModifiedByUserID_Label_Silent
    BaseEntity.CanvasID_Label
    BaseEntity.CanvasID_Label_Silent
    BaseEntity.AlgorithmStepID_Label
    BaseEntity.AlgorithmStepID_Label_Silent
    BaseEntity.SafeID_Label
    BaseEntity.SafeID_Label_Silent
    BaseEntity.AccountID
    BaseEntity.ID
    BaseEntity.LastUpdated
    BaseEntity.ModifiedByUserID
    BaseEntity.CanvasID
    BaseEntity.AlgorithmStepID
    BaseEntity.SafeID
    BaseEntity.PropertyChanged
    BaseEntity.PropertyChanging
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.API.Entities.FinancialServices.Products.FX
    Assembly: LemonEdge.API.Entities.FinancialServices.Auto.dll
    Syntax
    [DataContract]
    [MultipleUnique(new string[] { "EffectiveDate", "FromCurrencyID", "ToCurrencyID", "CategoryID" }, AllowNullOrEmpty = true)]
    public class ExchangeRate : BaseEntity, IExchangeRate, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<IExchangeRate>

    Constructors

    ExchangeRate()

    Declaration
    public ExchangeRate()

    Properties

    CategoryID

    [Key] Links to IExchangeRateCategory. The optional category this exchange rate is under. Empty indicates the default category.

    Declaration
    public Guid? CategoryID { get; set; }
    Property Value
    Type Description
    Guid?

    CategoryID_Label

    Declaration
    public string CategoryID_Label { get; set; }
    Property Value
    Type Description
    string

    CategoryID_Label_Silent

    Declaration
    [NotMapped]
    public string CategoryID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    EffectiveDate

    [Key] The date the exchange rate is effective from

    Declaration
    [Required]
    public DateTimeOffset EffectiveDate { get; set; }
    Property Value
    Type Description
    DateTimeOffset

    FromCurrencyID

    [Key] Links to ICurrency. The Currency this exchange rate is exchanging from

    Declaration
    [RequiredNoDefaultIDValidation]
    [PropertyValidation("true", "MyItem.FromCurrencyID != MyItem.ToCurrencyID", "From currency and to currency can't be the same.")]
    public Guid FromCurrencyID { get; set; }
    Property Value
    Type Description
    Guid

    FromCurrencyID_Label

    Declaration
    public string FromCurrencyID_Label { get; set; }
    Property Value
    Type Description
    string

    FromCurrencyID_Label_Silent

    Declaration
    [NotMapped]
    public string FromCurrencyID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    Rate

    The exchange rate value to exchange from the From Currency to the To Currency

    Declaration
    [Required]
    public decimal Rate { get; set; }
    Property Value
    Type Description
    decimal

    ToCurrencyID

    [Key] Links to ICurrency. The Currency this exchange rate is exchanging to

    Declaration
    [RequiredNoDefaultIDValidation]
    [PropertyValidation("true", "MyItem.FromCurrencyID != MyItem.ToCurrencyID", "From currency and to currency can't be the same.")]
    public Guid ToCurrencyID { get; set; }
    Property Value
    Type Description
    Guid

    ToCurrencyID_Label

    Declaration
    public string ToCurrencyID_Label { get; set; }
    Property Value
    Type Description
    string

    ToCurrencyID_Label_Silent

    Declaration
    [NotMapped]
    public string ToCurrencyID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    Methods

    CopyFromEntity(IBaseEntity)

    Declaration
    protected override void CopyFromEntity(IBaseEntity src)
    Parameters
    Type Name Description
    IBaseEntity src
    Overrides
    BaseEntity.CopyFromEntity(IBaseEntity)

    CopyFromSource(IExchangeRate)

    Updates all properties in this item to have the same properties as the source object.

    Declaration
    public void CopyFromSource(IExchangeRate source)
    Parameters
    Type Name Description
    IExchangeRate source

    The source object to copy all values from.

    GetExchangeRate(Guid)

    Get the exchange rate to the specified currency. The system doesn't store reciprocal rates, so if this is a rate from the required currency it has to calculate the reciprocal

    Declaration
    public decimal GetExchangeRate(Guid toCurrencyID)
    Parameters
    Type Name Description
    Guid toCurrencyID
    Returns
    Type Description
    decimal

    The exchange rate to the specified currency

    Implements

    IExchangeRate
    IBaseEntity
    IEquatable<T>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<T>

    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)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.