Method Get
Get(Stream, Expression<Func<TEntity, object>>, Expression<Func<TEntity, bool>>)
Retrieves data from a specified column in the SQL database asynchronously.
public Task Get(Stream stream, Expression<Func<TEntity, object>> columnSelector, Expression<Func<TEntity, bool>> filterExpression)
Parameters
stream
StreamThe output stream to write the data to.
columnSelector
Expression<Func<TEntity, object>>An expression to select the column to retrieve data from.
filterExpression
Expression<Func<TEntity, bool>>The filter expression to apply to the query.
Returns
- Task
A task representing the asynchronous operation.
Exceptions
- ArgumentNullException
Thrown when
stream
,columnSelector
, orfilterExpression
is null.- InvalidOperationException
Thrown when the filter expression format is unsupported or an error occurs during the database operation.