Method CanInsert
CanInsert(T, object)
Determines whether the entity can be inserted.
public virtual bool CanInsert(T entity, object sourceEntity = null)
Parameters
entityTThe entity to be inserted.
sourceEntityobjectThe source entity.
Returns
- bool
trueif the entity can be inserted; otherwise,false.
CanInsert()
Determines whether the entity can be inserted.
public virtual bool CanInsert()
Returns
- bool
trueif 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
primarykeyIPrimaryKeyThe primary key of the entity.
Returns
- bool
trueif the entity can be inserted; otherwise,false.