IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class : FirstOrNullEntity Method |
Overload | Description |
---|---|
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. |
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