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