Table of Contents

Method CanInsert

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

CanInsert(T, object)

Determines whether the entity can be inserted.

public virtual 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()

Determines whether the entity can be inserted.

public virtual bool CanInsert()

Returns

bool

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

CanInsert(IPrimaryKey)

Determines whether the entity can be inserted based on the primary key.

public virtual bool CanInsert(IPrimaryKey primarykey)

Parameters

primarykey IPrimaryKey

The primary key of the entity.

Returns

bool

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