DevForce Help Reference
FirstOrNullEntity Method (EntityQueryExtensions)


Executes the query and returns the first element of the sequence, or the appropriate NullEntity if no element is found.
Overload List
OverloadDescription
FirstOrNullEntity(IEntityQuery) Executes the query and returns the first element of the sequence, or the appropriate NullEntity if no element is found.  
FirstOrNullEntity<TEntity>(IQueryable<TEntity>) Executes the query and returns the first element of the sequence, or the appropriate NullEntity if no element is found.  
FirstOrNullEntity<TEntity>(IQueryable<TEntity>,Expression<Func<TEntity,Boolean>>) Executes the query and returns the first element of the sequence, or the appropriate NullEntity if no element is found.  
FirstOrNullEntity<TEntity>(IEntityQuery<TEntity>) Returns the first element of a sequence, or the appropriate NullEntity if no element is found.  
FirstOrNullEntity<TEntity>(IEntityQuery<TEntity>,Expression<Func<TEntity,Boolean>>) Returns the first element of a sequence, or the appropriate NullEntity if no element is found.  
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityQueryExtensions Class
EntityQueryExtensions Members

Send Feedback