Table of Contents

Method CanDelete

Namespace
Innova.Data.Security
Assembly
Innova.Data.dll

CanDelete()

Determines whether the entity can be deleted.

bool CanDelete()

Returns

bool

true if the entity can be deleted; otherwise, false.

CanDelete(T, object)

Determines whether the entity can be deleted based on the specified entity and source entity.

bool CanDelete(T entity, object sourceEntity = null)

Parameters

entity T

The entity to be deleted.

sourceEntity object

The source entity.

Returns

bool

true if the entity can be deleted; otherwise, false.

CanDelete(IPrimaryKey)

Determines whether the entity with the specified primary key can be deleted.

bool CanDelete(IPrimaryKey primarykey)

Parameters

primarykey IPrimaryKey

The primary key of the entity.

Returns

bool

true if the entity can be deleted; otherwise, false.