Method CanInsert
CanInsert(T, object)
Determines whether the entity can be inserted.
public virtual bool CanInsert(T entity, object sourceEntity = null)
Parameters
entity
TThe entity to be inserted.
sourceEntity
objectThe 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
IPrimaryKeyThe primary key of the entity.
Returns
- bool
true
if the entity can be inserted; otherwise,false
.