Search Results for

    Show / Hide Table of Contents

    Class EntitySet

    Inheritance
    object
    BaseEntity
    BaseEntityWithPermissions
    EntitySet
    Implements
    IEntitySet
    IEntitySetBase
    IBaseEntityWithPermissions
    IHasFolderStructure
    IBaseObject
    IBaseEntity
    IEquatable<IBaseEntity>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<IEntitySet>
    Inherited Members
    BaseEntityWithPermissions.IsLocked(object)
    BaseEntityWithPermissions.CanWriteItem(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.PreLoadPermissions<T>(IEnumerable<T>, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.CanDeleteItem(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.CanChangeItemPermissions(object, IEntityRetriever, IReadOnlyCache, Guid)
    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.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.API.Entities.FinancialServices.LegalEntity
    Assembly: LemonEdge.API.Entities.FinancialServices.Auto.dll
    Syntax
    [DataContract]
    public class EntitySet : BaseEntityWithPermissions, IEntitySet, IEntitySetBase, IBaseEntityWithPermissions, IHasFolderStructure, IBaseObject, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<IEntitySet>

    Constructors

    EntitySet()

    Declaration
    public EntitySet()

    Properties

    CSERoundingDecimalPlaces

    Any CSE rounding applied throughout this EntitySet can use this rounding decimal places as default.

    0 is the default to indicate no rounding, max is 12 decimal places of rounding

    Declaration
    [PropertyValidation("true", "MyItem.CSERoundingDecimalPlaces >= 0 && MyItem.CSERoundingDecimalPlaces <= 12", "CSERoundingDecimalPlaces must have a number of decimal places to round to between 0 and 12 inclusive.")]
    public short CSERoundingDecimalPlaces { get; set; }
    Property Value
    Type Description
    short

    CurrencyID

    Links to ICurrency. Any Transactions booked against legal Entities within this Entity Set will use this currency as the Reporting Currency of those Transactions. This provides a common currency across all Transactions within the Entity Set that can be used for consolidated reporting.

    Declaration
    [RequiredNoDefaultIDValidation]
    [PropertyValidation("Item.HasTrackedPropertyChanged(nameof(LemonEdge.API.Entities.FinancialServices.LegalEntity.IEntitySet.CurrencyID)) && MyData.HasChange(Item) && MyData.GetChange(Item) != LemonEdge.API.Core.Data.EntityOperation.Insert", "\r\nvar entities = await Data.ExecuteQuery(Data.GetItems<LemonEdge.API.Entities.FinancialServices.LegalEntity.ISetEntity>().Where(nameof(LemonEdge.API.Entities.FinancialServices.LegalEntity.ISetEntity.EntitySetID), LemonEdge.Utils.Database.SQLOperator.Equals, Item.ID));\r\nforeach(var items in entities.Chunk(20))\r\n{\r\n    var cnt =(await Data.ExecuteQuery(Data.GetItems<LemonEdge.API.Entities.FinancialServices.Accounting.IGLPosting>().Where(nameof(LemonEdge.API.Entities.FinancialServices.Accounting.IGLPosting.EntityID), LemonEdge.Utils.Database.SQLOperator.IsContainedIn, items.Select(x => x.EntityID).ToArray()))).Count();\r\n    if (cnt > 0) return false;\r\n}\r\nreturn true;\r\n", "You can not change the currency of an entity set if it has existing gl postings against it. You have to delete those first.")]
    public Guid CurrencyID { get; set; }
    Property Value
    Type Description
    Guid

    CurrencyID_Label

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

    CurrencyID_Label_Silent

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

    ExchangeRateCategoryID

    Links to IExchangeRateCategory. The default exchange rate to use for processing transactions in this entity set.

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

    ExchangeRateCategoryID_Label

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

    ExchangeRateCategoryID_Label_Silent

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

    FolderID

    The link to the folder this item is contained in

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

    FolderID_Label

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

    FolderID_Label_Silent

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

    InheritingObjectTypeID

    Any object that inherits this interface holds part of a record, the common base part

    This holds the type of record which holds the rest

    The IDs of both the inheriting and base objects always are the same
    Declaration
    [RequiredNoDefaultIDValidation]
    [Unique(MergeWithAnyOtherUniqueProperties = true)]
    public Guid InheritingObjectTypeID { get; set; }
    Property Value
    Type Description
    Guid

    Name

    The unique name of this entity set

    Declaration
    [Required]
    [Unique(MergeWithAnyOtherUniqueProperties = true)]
    [StringLength(500)]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    PeriodEndTransformationID

    Links to IPeriodEndTransformation. The default period end transformation to use for processing period ends in this entity set.

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

    PeriodEndTransformationID_Label

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

    PeriodEndTransformationID_Label_Silent

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

    RoundingLevel

    Any rounding applied throughout this EntitySet can use this rounding level as default.

    Declaration
    [EnumDataType(typeof(RoundingLevel))]
    public RoundingLevel RoundingLevel { get; set; }
    Property Value
    Type Description
    RoundingLevel

    RoundingLevel_Tooltip

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

    UnitRoundingDecimalPlaces

    Any unit rounding applied throughout this EntitySet can use this rounding decimal places as default, instruments have their own unit rounding decimal places.

    0 is the default to indicate no rounding, max is 12 decimal places of rounding

    Declaration
    [PropertyValidation("true", "MyItem.UnitRoundingDecimalPlaces >= 0 && MyItem.UnitRoundingDecimalPlaces <= 12", "UnitRoundingDecimalPlaces must have a number of decimal places to round to between 0 and 12 inclusive.")]
    public short UnitRoundingDecimalPlaces { get; set; }
    Property Value
    Type Description
    short

    YearEnd

    When processing Period End calculations the calculations are done on a year to date basis. This Year End is used to determine the last Year End closing balances, and which transactions to look at going forward that participate within the current year.

    Declaration
    public DateTimeOffset YearEnd { get; set; }
    Property Value
    Type Description
    DateTimeOffset

    Methods

    CopyFromEntity(IBaseEntity)

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

    CopyFromSource(IEntitySet)

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

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

    The source object to copy all values from.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    IEntitySet
    IEntitySetBase
    IBaseEntityWithPermissions
    IHasFolderStructure
    IBaseObject
    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.