Class NpgsqlRedbContext
PostgreSQL implementation of REDB context.
Assembles all Npgsql components into single facade.
public class NpgsqlRedbContext : RedbContextBase, IRedbContext, IAsyncDisposable, IDisposable
Inheritance
Implements
Inherited Members
RedbContextBase.BeginTransactionAsync(),RedbContextBase.BeginTransactionAsync(IsolationLevel?, CancellationToken),RedbContextBase.Bulk,RedbContextBase.BulkOperations,RedbContextBase.CurrentTransaction,RedbContextBase.Db,RedbContextBase.Dispose(),RedbContextBase.DisposeAsync(),RedbContextBase.ExecuteAsync(string, object[], CancellationToken),RedbContextBase.ExecuteAsync(string, params object[]),RedbContextBase.ExecuteAtomicAsync(IsolationLevel, Func<Task>, CancellationToken),RedbContextBase.ExecuteAtomicAsync(Func<Task>),RedbContextBase.ExecuteAtomicAsync(Func<Task>, CancellationToken),RedbContextBase.ExecuteAtomicAsync<T>(IsolationLevel, Func<Task<T>>, CancellationToken),RedbContextBase.ExecuteAtomicAsync<T>(Func<Task<T>>),RedbContextBase.ExecuteAtomicAsync<T>(Func<Task<T>>, CancellationToken),RedbContextBase.ExecuteJsonAsync(string, object[], CancellationToken),RedbContextBase.ExecuteJsonAsync(string, params object[]),RedbContextBase.ExecuteJsonListAsync(string, object[], CancellationToken),RedbContextBase.ExecuteJsonListAsync(string, params object[]),RedbContextBase.ExecuteScalarAsync<T>(string, object[], CancellationToken),RedbContextBase.ExecuteScalarAsync<T>(string, params object[]),RedbContextBase.IsDisposed,RedbContextBase.IsInTransaction,RedbContextBase.Keys,RedbContextBase.NextObjectIdAsync(),RedbContextBase.NextObjectIdAsync(CancellationToken),RedbContextBase.NextObjectIdBatchAsync(int),RedbContextBase.NextObjectIdBatchAsync(int, CancellationToken),RedbContextBase.NextValueIdAsync(),RedbContextBase.NextValueIdAsync(CancellationToken),RedbContextBase.NextValueIdBatchAsync(int),RedbContextBase.NextValueIdBatchAsync(int, CancellationToken),RedbContextBase.QueryAsync<T>(string, object[], CancellationToken),RedbContextBase.QueryAsync<T>(string, params object[]),RedbContextBase.QueryFirstOrDefaultAsync<T>(string, object[], CancellationToken),RedbContextBase.QueryFirstOrDefaultAsync<T>(string, params object[]),RedbContextBase.QueryRowsAsJsonAsync(string, object[], CancellationToken),RedbContextBase.QueryRowsAsJsonCoreAsync(string, object[], CancellationToken),RedbContextBase.QueryScalarListAsync<T>(string, object[], CancellationToken),RedbContextBase.QueryScalarListAsync<T>(string, params object[])
Properties
BulkOperations
Bulk operations (COPY protocol).
protected override IBulkOperations BulkOperations { get; }
DataSource
Npgsql data source (for direct access if needed).
public NpgsqlDataSource DataSource { get; }
Methods
QueryRowsAsJsonCoreAsync(string, object[], CancellationToken)
The provider's row-to-JSON read behind , run on : every
protected override Task<string> QueryRowsAsJsonCoreAsync(string sql, object[] parameters, CancellationToken cancellationToken)
Constructors
NpgsqlRedbContext(NpgsqlDataSource)
Create PostgreSQL context from data source.
NpgsqlRedbContext(string)
Create PostgreSQL context from connection string.