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
    System.Object
    BaseHasChildren<EPCommandWithDescriptor>
    EPCommand
    EntityCollectionCommand<T>
    Implements
    IHasChildren<EPCommandWithDescriptor>
    IHasChildren
    IEPCommand
    System.Windows.Input.ICommand
    System.IDisposable
    Inherited Members
    EPCommand.ActiveDisplayerFromOwner
    EPCommand.LoadChildrenAsync()
    EPCommand.ReloadChildrenOnEachOpen
    EPCommand.HasChildCommands
    EPCommand.SetToggler(IHasToggleStatus)
    EPCommand.Seperator
    EPCommand.Owner
    EPCommand.CanExecuteChanged
    EPCommand.OnCanExecuteChanged()
    EPCommand.SubscribeToLayoutChange
    EPCommand.OnLayoutsChanged(IModelLayouHost, LayoutChangeEventArgs)
    EPCommand.ICommand.Execute(Object)
    EPCommand.ExternalExecute(Object)
    EPCommand.InternalExecute(Object)
    EPCommand.LockExecution
    EPCommand.ICommand.CanExecute(Object)
    EPCommand.ExternalCanExecute(Object)
    EPCommand.InternalCanExecuteAsync(Object)
    EPCommand.Toggler
    EPCommand.CustomType
    EPCommand.Key
    EPCommand.ModifierKeys
    EPCommand.GetModifierText(IEPCommand)
    EPCommand.RemoveEventHandlersOnDispose()
    EPCommand.Dispose(Boolean)
    EPCommand.Dispose()
    BaseHasChildren<EPCommandWithDescriptor>.Order
    BaseHasChildren<EPCommandWithDescriptor>.Children
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(EPCommandWithDescriptor)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(EPCommandWithDescriptor)
    BaseHasChildren<EPCommandWithDescriptor>.ClearChildren()
    BaseHasChildren<EPCommandWithDescriptor>.Parent
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.IHasChildren.Children
    BaseHasChildren<EPCommandWithDescriptor>.IHasChildren.Parent
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.Client.Core.Commands.Core
    Assembly: 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.Core.Client.Commands.Users)]
    public class UsersCommand : EntityCollectionCommand<Entities.User> { public Users(Client.Core.Views.Core.IModelLayoutCommon owner) : base(owner) { } }

    Constructors

    EntityCollectionCommand(IModelLayoutCommon)

    Creates a new EntityCollectionCommand

    Declaration
    public EntityCollectionCommand(IModelLayoutCommon owner)
    Parameters
    Type Name Description
    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
    System.Object parameter

    The command parameter

    Returns
    Type Description
    System.Boolean

    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
    System.Object parameter

    The command parameter

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task indicating the completion of the operation

    Overrides
    EPCommand.InternalExecuteAsync(Object)

    Implements

    IHasChildren<T>
    IHasChildren
    IEPCommand
    System.Windows.Input.ICommand
    System.IDisposable

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    CommandExtensions.CreateCommand(EPCommand, ICommandDescriptor, CommandButtonType, Boolean, CommandSize)
    CommandExtensions.UpdateCommand(EPCommand, Object, ICommandDescriptor, Boolean, CommandSize)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.