Table of Contents

Interface ICommandSpec<T>

Namespace
The.Web.Entities
Assembly
Instagile.Web.Client.dll

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

context CommandContext

Returns

IEnumerable<Func<IEntitySet<T>, Command>>

DefineCollectionEntityCommands(CommandContext)

IEnumerable<Func<IEntitySet<T>, T, Command>> DefineCollectionEntityCommands(CommandContext context)

Parameters

context CommandContext

Returns

IEnumerable<Func<IEntitySet<T>, T, Command>>

DefineEntityCommands(CommandContext)

IEnumerable<Func<T, Command>> DefineEntityCommands(CommandContext context)

Parameters

context CommandContext

Returns

IEnumerable<Func<T, Command>>

DefineListCommands(CommandContext)

IEnumerable<Func<IEntityQuery<T>, Command>> DefineListCommands(CommandContext context)

Parameters

context CommandContext

Returns

IEnumerable<Func<IEntityQuery<T>, Command>>

DefineReferenceCommands(CommandContext)

IEnumerable<Func<IOwnedValue<T?>, Command>> DefineReferenceCommands(CommandContext context)

Parameters

context CommandContext

Returns

IEnumerable<Func<IOwnedValue<T>, Command>>