GenericRepository(TEntity).Get Method

Template MVC

GenericRepositoryTEntityGet Method

Gets an unique TEntity from the database

Namespace:  Template.Repository.Core
Assembly:  Template.Repository (in Template.Repository.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public TEntity Get(
	Expression<Func<TEntity, bool>> predicate
)

Parameters

predicate
Type: System.Linq.ExpressionsExpressionFuncTEntity, Boolean
The predicate to filter the result

Return Value

Type: TEntity
The TEntity of the result

Implements

IGenericRepositoryTEntityGet(ExpressionFuncTEntity, Boolean)
See Also