SqlTable<TEntity>.Contains Method (TEntity)

Checks the existance of the entity, using the primary key value.

Namespace:  DbExtensions
Assembly: DbExtensions.dll

Syntax

public bool Contains(
	TEntity entity
)

Parameters

entity

Type: TEntity
The entity whose existance is to be checked.

Return Value

Type: Boolean
true if the primary key value exists in the database; otherwise false.

See Also

Reference

SqlTable<TEntity> Class
DbExtensions Namespace

© Max Toro Q.