Class DefaultCommandSpec<T>
Default ICommandSpec<T>: supplies the built-in entity/list/reference/collection commands for
entity type T when no application override matches.
public class DefaultCommandSpec<T> : ICommandSpec<T>, ICommandSpec where T : IEntity<T>
Type Parameters
T
- Inheritance
-
DefaultCommandSpec<T>
- Implements
-
ICommandSpec<T>
- Derived
- Inherited Members
Properties
Instance
public static DefaultCommandSpec<T> Instance { get; }
Property Value
Methods
CollectionCreateCommand(ICommandContext, IEntitySet<T>)
public virtual Command CollectionCreateCommand(ICommandContext context, IEntitySet<T> c)
Parameters
contextICommandContextcIEntitySet<T>
Returns
CollectionRemoveCommand(ICommandContext, IEntitySet<T>, T)
public virtual Command CollectionRemoveCommand(ICommandContext context, IEntitySet<T> c, T e)
Parameters
contextICommandContextcIEntitySet<T>eT
Returns
DefineCollectionCommands(ICommandContext)
public virtual IEnumerable<Func<IEntitySet<T>, Command>> DefineCollectionCommands(ICommandContext context)
Parameters
contextICommandContext
Returns
- IEnumerable<Func<IEntitySet<T>, Command>>
DefineCollectionEntityCommands(ICommandContext)
public virtual IEnumerable<Func<IEntitySet<T>, T, Command>> DefineCollectionEntityCommands(ICommandContext context)
Parameters
contextICommandContext
Returns
- IEnumerable<Func<IEntitySet<T>, T, Command>>
DefineEntityCommands(ICommandContext)
public virtual IEnumerable<Func<T, Command>> DefineEntityCommands(ICommandContext context)
Parameters
contextICommandContext
Returns
- IEnumerable<Func<T, Command>>
DefineListCommands(ICommandContext)
public virtual IEnumerable<Func<IEntityQuery<T>, Command>> DefineListCommands(ICommandContext context)
Parameters
contextICommandContext
Returns
- IEnumerable<Func<IEntityQuery<T>, Command>>
DefineReferenceCommands(ICommandContext)
public virtual IEnumerable<Func<IOwnedValue<T?>, Command>> DefineReferenceCommands(ICommandContext context)
Parameters
contextICommandContext
Returns
- IEnumerable<Func<IOwnedValue<T>, Command>>
EntitySaveCommand(ICommandContext, T)
public virtual Command EntitySaveCommand(ICommandContext context, T e)
Parameters
contextICommandContexteT
Returns
EntitySaveNewCommand(ICommandContext, T)
public virtual Command EntitySaveNewCommand(ICommandContext context, T e)
Parameters
contextICommandContexteT
Returns
ListCreateCommand(ICommandContext, IEntityQuery<T>)
public virtual Command ListCreateCommand(ICommandContext context, IEntityQuery<T> e)
Parameters
contextICommandContexteIEntityQuery<T>
Returns
Match(IEntityInfo)
public virtual bool Match(IEntityInfo t)
Parameters
Returns
ReferenceCreateCommand(ICommandContext, IOwnedValue<T?>)
public virtual Command ReferenceCreateCommand(ICommandContext context, IOwnedValue<T?> r)
Parameters
contextICommandContextrIOwnedValue<T>
Returns
ReferenceDeleteCommand(ICommandContext, IOwnedValue<T?>)
public virtual Command ReferenceDeleteCommand(ICommandContext context, IOwnedValue<T?> r)
Parameters
contextICommandContextrIOwnedValue<T>