Class StreamHelper<TDbContext, TEntity>
Helper class for working with streams in SQL databases.
public class StreamHelper<TDbContext, TEntity> : IStreamHelper<TEntity> where TDbContext : DbContext where TEntity : class
Type Parameters
TDbContext
TEntity
- Inheritance
-
StreamHelper<TDbContext, TEntity>
- Implements
-
IStreamHelper<TEntity>
Constructors
- StreamHelper(IDbContextFactory<TDbContext>)
Initializes a new instance of the StreamHelper<TDbContext, TEntity> class.
Properties
- CommandTimeout
Gets and sets CommandTimeout
Methods
- Get(Stream, Expression<Func<TEntity, object>>, Expression<Func<TEntity, bool>>)
Retrieves data from a specified column in the SQL database asynchronously.
- Update(Stream, Expression<Func<TEntity, object>>, Expression<Func<TEntity, bool>>)
Updates a specified column in the SQL database asynchronously.