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(ICommandContext)

IEnumerable<Func<IEntitySet<T>, Command>> DefineCollectionCommands(ICommandContext context)

Parameters

context ICommandContext

Returns

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

DefineCollectionEntityCommands(ICommandContext)

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

Parameters

context ICommandContext

Returns

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

DefineEntityCommands(ICommandContext)

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

Parameters

context ICommandContext

Returns

IEnumerable<Func<T, Command>>

DefineListCommands(ICommandContext)

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

Parameters

context ICommandContext

Returns

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

DefineReferenceCommands(ICommandContext)

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

Parameters

context ICommandContext

Returns

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