Table of Contents

Method CanInsert

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

CanInsert()

Determines whether the entity can be inserted.

bool CanInsert()

Returns

bool

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

CanInsert(T, object)

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

bool CanInsert(T entity, object sourceEntity = null)

Parameters

entity T

The entity to be inserted.

sourceEntity object

The source entity.

Returns

bool

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

CanInsert(IPrimaryKey)

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

bool CanInsert(IPrimaryKey primarykey)

Parameters

primarykey IPrimaryKey

The primary key of the entity.

Returns

bool

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