Table of Contents

Method Can

Namespace
Innova.Data.Entity
Assembly
Innova.Data.dll

Can(Operation, T, object)

Checks if the specified operation can be performed and throws a warning if not.

public bool Can(Operation operation, T entity = null, object sourceEntity = null)

Parameters

operation Operation

The operation to check.

entity T

The entity to check.

sourceEntity object

The source entity.

Returns

bool

True if the operation can be performed, otherwise false.

Can<TOther>(Operation, TOther)

Checks if the specified operation can be performed for the given entity.

public bool Can<TOther>(Operation operation, TOther entity) where TOther : class, IEntityWithKey<T>

Parameters

operation Operation

The operation to check.

entity TOther

The entity to check.

Returns

bool

True if the operation can be performed, otherwise false.

Type Parameters

TOther

The type of the entity.