Method CanUpdate
CanUpdate(T, object)
Determines whether the entity can be updated.
public virtual bool CanUpdate(T entity, object sourceEntity = null)
Parameters
entity
TThe entity to be updated.
sourceEntity
objectThe source entity.
Returns
- bool
true
if the entity can be updated; otherwise,false
.
CanUpdate()
Determines whether the entity can be updated.
public virtual bool CanUpdate()
Returns
- bool
true
if the entity can be updated; otherwise,false
.
CanUpdate(IPrimaryKey)
Determines whether the entity can be updated based on the primary key.
public virtual bool CanUpdate(IPrimaryKey primarykey)
Parameters
primarykey
IPrimaryKeyThe primary key of the entity.
Returns
- bool
true
if the entity can be updated; otherwise,false
.