Table of Contents

Class DefaultCommandSpec<T>

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

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
Derived
Inherited Members

Properties

Instance

public static DefaultCommandSpec<T> Instance { get; }

Property Value

DefaultCommandSpec<T>

Methods

CollectionCreateCommand(ICommandContext, IEntitySet<T>)

public virtual Command CollectionCreateCommand(ICommandContext context, IEntitySet<T> c)

Parameters

context ICommandContext
c IEntitySet<T>

Returns

Command

CollectionRemoveCommand(ICommandContext, IEntitySet<T>, T)

public virtual Command CollectionRemoveCommand(ICommandContext context, IEntitySet<T> c, T e)

Parameters

context ICommandContext
c IEntitySet<T>
e T

Returns

Command

DefineCollectionCommands(ICommandContext)

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

Parameters

context ICommandContext

Returns

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

DefineCollectionEntityCommands(ICommandContext)

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

Parameters

context ICommandContext

Returns

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

DefineEntityCommands(ICommandContext)

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

Parameters

context ICommandContext

Returns

IEnumerable<Func<T, Command>>

DefineListCommands(ICommandContext)

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

Parameters

context ICommandContext

Returns

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

DefineReferenceCommands(ICommandContext)

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

Parameters

context ICommandContext

Returns

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

EntitySaveCommand(ICommandContext, T)

public virtual Command EntitySaveCommand(ICommandContext context, T e)

Parameters

context ICommandContext
e T

Returns

Command

EntitySaveNewCommand(ICommandContext, T)

public virtual Command EntitySaveNewCommand(ICommandContext context, T e)

Parameters

context ICommandContext
e T

Returns

Command

ListCreateCommand(ICommandContext, IEntityQuery<T>)

public virtual Command ListCreateCommand(ICommandContext context, IEntityQuery<T> e)

Parameters

context ICommandContext
e IEntityQuery<T>

Returns

Command

Match(IEntityInfo)

public virtual bool Match(IEntityInfo t)

Parameters

t IEntityInfo

Returns

bool

ReferenceCreateCommand(ICommandContext, IOwnedValue<T?>)

public virtual Command ReferenceCreateCommand(ICommandContext context, IOwnedValue<T?> r)

Parameters

context ICommandContext
r IOwnedValue<T>

Returns

Command

ReferenceDeleteCommand(ICommandContext, IOwnedValue<T?>)

public virtual Command ReferenceDeleteCommand(ICommandContext context, IOwnedValue<T?> r)

Parameters

context ICommandContext
r IOwnedValue<T>

Returns

Command