Search Results for

    Show / Hide Table of Contents

    Class EntityCollectionCommand<T>

    A base command implementation used for opening a collection of any particular entity type in the system

    Inheritance
    object
    BaseHasChildren<EPCommandWithDescriptor>
    EPCommand
    EntityCollectionCommand<T>
    AccountMaintenance
    ActionTriggers
    AddInModules
    AlgorithmRuns
    Algorithms
    AllItemTasks
    AllocationMappings
    AllocationMethods
    AllocationPaths
    AllocationRules
    ApiConnections
    BlendTransactions
    BlendingTransactions
    Canvases
    ChartOfAccounts
    Charts
    CodeSnippets
    CollateralTypes
    Companies
    CoverageTypes
    Currencies
    CustomCommands
    CustomGrids
    CustomImages
    CustomLists
    CustomLookupQueries
    CustomObjects
    CustomTrees
    CustomValidations
    CustomViews
    DataMappings
    DataSourceTypes
    DataTemplates
    DatasetShortcuts
    Datasets
    DefaultObjects
    DefaultValues
    DefaultWatchers
    DocumentCategories
    Documents
    Domiciles
    EntitySets
    ExchangeRateCategories
    ExchangeRates
    GLAccounts
    GLClassifications
    GLPostings
    GLRollups
    GroupedTransactions
    Groupings
    HolidayTypes
    ImportDefinitions
    Industries
    InstrumentCapitalAccountDataSettings
    InstrumentSetTypes
    InstrumentSets
    Instruments
    Layouts
    Ledgers
    ObfuscatedFields
    ObjectEntityTypes
    People
    PeriodEndTransformations
    PeriodEnds
    Pivots
    QueryRunners
    QuestionTypes
    RateTypes
    Reconciliations
    Reports
    Roles
    SQLAssemblies
    SQLWrappers
    Safes
    ServerTasks
    SplitTransactions
    StepChanges
    Tags
    TaskTypes
    Teams
    TransactionAggregators
    TransactionCodes
    TransactionLinks
    TransactionMatchers
    TransactionTypes
    Transactions
    Transfers
    Users
    VennSets
    WatcherTypes
    Implements
    IHasChildren<EPCommandWithDescriptor>
    IHasChildren
    IEPCommand
    ICommand
    IDisposable
    Inherited Members
    EPCommand.OnCanExecuteChanged()
    EPCommand.LoadChildrenAsync()
    EPCommand.SetToggler(IHasToggleStatus)
    EPCommand.OnLayoutsChanged(IModelLayoutHost, LayoutChangeEventArgs)
    EPCommand.ExternalExecute(object)
    EPCommand.InternalExecute(object)
    EPCommand.ExternalCanExecute(object)
    EPCommand.InternalCanExecuteAsync(object)
    EPCommand.GetModifierText(IEPCommand)
    EPCommand.RemoveEventHandlersOnDispose()
    EPCommand.Dispose(bool)
    EPCommand.Dispose()
    EPCommand.RootController
    EPCommand.ActiveDisplayerFromOwner
    EPCommand.ReloadChildrenOnEachOpen
    EPCommand.HasChildCommands
    EPCommand.SubscribeToLayoutChange
    EPCommand.From
    EPCommand.LockExecution
    EPCommand.CustomType
    EPCommand.Key
    EPCommand.ModifierKeys
    EPCommand.Owner
    EPCommand.Toggler
    EPCommand.IsQuickAccessCommand
    EPCommand.CanExecuteChanged
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(EPCommandWithDescriptor, bool)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(EPCommandWithDescriptor)
    BaseHasChildren<EPCommandWithDescriptor>.ClearChildren()
    BaseHasChildren<EPCommandWithDescriptor>.ClearMyParent()
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.Order
    BaseHasChildren<EPCommandWithDescriptor>.Children
    BaseHasChildren<EPCommandWithDescriptor>.Parent
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Commands.Core
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public abstract class EntityCollectionCommand<T> : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable where T : class, IBaseEntity
    Type Parameters
    Name Description
    T

    The type of entity to open a collection of

    Remarks

    For instance to create a command button to open all users:

    [CommandDescriptorOptions(LemonEdge.API.Client.Command.Users)]
    public class UsersCommand : EntityCollectionCommand<Entities.User> { public Users (IModelController root, IModelLayoutCommon owner) : base(root, owner) { } }

    Constructors

    EntityCollectionCommand(IRootController, IModelLayoutCommon)

    Creates a new EntityCollectionCommand

    Declaration
    protected EntityCollectionCommand(IRootController root, IModelLayoutCommon owner)
    Parameters
    Type Name Description
    IRootController root

    The root controller, for service access.

    IModelLayoutCommon owner

    The owning context for this command

    Methods

    InternalCanExecute(object)

    True. Can always be executed

    Declaration
    public override bool InternalCanExecute(object parameter)
    Parameters
    Type Name Description
    object parameter

    The command parameter

    Returns
    Type Description
    bool

    True

    Overrides
    EPCommand.InternalCanExecute(object?)

    InternalExecuteAsync(object)

    Opens a new layout with the DisplayableItemDescriptorForCollection<T> display item that displays a collection of the T entity type

    Declaration
    public override Task InternalExecuteAsync(object parameter)
    Parameters
    Type Name Description
    object parameter

    The command parameter

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    EPCommand.InternalExecuteAsync(object)

    Implements

    IHasChildren<T>
    IHasChildren
    IEPCommand
    ICommand
    IDisposable

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    CommandExtensions.CreateCommand(EPCommand, ICommandDescriptor, CommandButtonType, bool, CommandSize)
    CommandExtensions.UpdateCommand(EPCommand, object, ICommandDescriptor, bool, CommandSize)
    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.