Method CanInsert
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
TThe entity to be inserted.
sourceEntity
objectThe 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
IPrimaryKeyThe primary key of the entity.
Returns
- bool
true
if the entity can be inserted; otherwise,false
.