Interface ICommandSpec<T>
Implement this interface and call AddSpecs(IServiceCollection, Assembly?) to customise entity commands.
public interface ICommandSpec<T> : ICommandSpec where T : IEntity
Type Parameters
T
- Inherited Members
Remarks
Most implementations will inherit from DefaultCommandSpec<T>.
Methods
DefineCollectionCommands(ICommandContext)
IEnumerable<Func<IEntitySet<T>, Command>> DefineCollectionCommands(ICommandContext context)
Parameters
contextICommandContext
Returns
- IEnumerable<Func<IEntitySet<T>, Command>>
DefineCollectionEntityCommands(ICommandContext)
IEnumerable<Func<IEntitySet<T>, T, Command>> DefineCollectionEntityCommands(ICommandContext context)
Parameters
contextICommandContext
Returns
- IEnumerable<Func<IEntitySet<T>, T, Command>>
DefineEntityCommands(ICommandContext)
IEnumerable<Func<T, Command>> DefineEntityCommands(ICommandContext context)
Parameters
contextICommandContext
Returns
- IEnumerable<Func<T, Command>>
DefineListCommands(ICommandContext)
IEnumerable<Func<IEntityQuery<T>, Command>> DefineListCommands(ICommandContext context)
Parameters
contextICommandContext
Returns
- IEnumerable<Func<IEntityQuery<T>, Command>>
DefineReferenceCommands(ICommandContext)
IEnumerable<Func<IOwnedValue<T?>, Command>> DefineReferenceCommands(ICommandContext context)
Parameters
contextICommandContext
Returns
- IEnumerable<Func<IOwnedValue<T>, Command>>