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(CommandContext)
IEnumerable<Func<IEntitySet<T>, Command>> DefineCollectionCommands(CommandContext context)
Parameters
contextCommandContext
Returns
- IEnumerable<Func<IEntitySet<T>, Command>>
DefineCollectionEntityCommands(CommandContext)
IEnumerable<Func<IEntitySet<T>, T, Command>> DefineCollectionEntityCommands(CommandContext context)
Parameters
contextCommandContext
Returns
- IEnumerable<Func<IEntitySet<T>, T, Command>>
DefineEntityCommands(CommandContext)
IEnumerable<Func<T, Command>> DefineEntityCommands(CommandContext context)
Parameters
contextCommandContext
Returns
- IEnumerable<Func<T, Command>>
DefineListCommands(CommandContext)
IEnumerable<Func<IEntityQuery<T>, Command>> DefineListCommands(CommandContext context)
Parameters
contextCommandContext
Returns
- IEnumerable<Func<IEntityQuery<T>, Command>>
DefineReferenceCommands(CommandContext)
IEnumerable<Func<IOwnedValue<T?>, Command>> DefineReferenceCommands(CommandContext context)
Parameters
contextCommandContext
Returns
- IEnumerable<Func<IOwnedValue<T>, Command>>