Class NpgsqlDataSource
Inheritance
object
NpgsqlDataSource
Implements
IAsyncDisposable
Assembly: Npgsql.dll
Syntax
public abstract class NpgsqlDataSource : DbDataSource, IAsyncDisposable
Properties
|
Improve this Doc
View Source
ConnectionString
Declaration
public override string ConnectionString { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Password
Declaration
public string Password { set; }
Property Value
Methods
|
Improve this Doc
View Source
Create(NpgsqlConnectionStringBuilder)
Declaration
public static NpgsqlDataSource Create(NpgsqlConnectionStringBuilder connectionStringBuilder)
Parameters
Returns
|
Improve this Doc
View Source
Create(string)
Declaration
public static NpgsqlDataSource Create(string connectionString)
Parameters
Type |
Name |
Description |
string |
connectionString |
|
Returns
|
Improve this Doc
View Source
CreateBatch()
Declaration
public NpgsqlBatch CreateBatch()
Returns
|
Improve this Doc
View Source
CreateCommand(string?)
Declaration
public NpgsqlCommand CreateCommand(string? commandText = null)
Parameters
Type |
Name |
Description |
string? |
commandText |
An optional SQL for the command.
|
Returns
|
Improve this Doc
View Source
CreateConnection()
Declaration
public NpgsqlConnection CreateConnection()
Returns
|
Improve this Doc
View Source
CreateDbBatch()
Declaration
protected override DbBatch CreateDbBatch()
Returns
Overrides
|
Improve this Doc
View Source
CreateDbCommand(string?)
Declaration
protected override DbCommand CreateDbCommand(string? commandText = null)
Parameters
Type |
Name |
Description |
string? |
commandText |
|
Returns
Type |
Description |
DbCommand |
|
Overrides
|
Improve this Doc
View Source
CreateDbConnection()
Declaration
protected override DbConnection CreateDbConnection()
Returns
Type |
Description |
DbConnection |
|
Overrides
|
Improve this Doc
View Source
Dispose(bool)
Declaration
protected override sealed void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
bool |
disposing |
|
Overrides
|
Improve this Doc
View Source
DisposeAsyncBase()
Declaration
protected virtual ValueTask DisposeAsyncBase()
Returns
Type |
Description |
ValueTask |
|
|
Improve this Doc
View Source
DisposeAsyncCore()
Declaration
protected override sealed ValueTask DisposeAsyncCore()
Returns
Type |
Description |
ValueTask |
|
Overrides
|
Improve this Doc
View Source
DisposeBase()
Declaration
protected virtual void DisposeBase()
|
Improve this Doc
View Source
OpenConnection()
Declaration
public NpgsqlConnection OpenConnection()
Returns
|
Improve this Doc
View Source
OpenConnectionAsync(CancellationToken)
Declaration
public ValueTask<NpgsqlConnection> OpenConnectionAsync(CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
|
Improve this Doc
View Source
OpenDbConnection()
Declaration
protected override DbConnection OpenDbConnection()
Returns
Type |
Description |
DbConnection |
|
Overrides
|
Improve this Doc
View Source
OpenDbConnectionAsync(CancellationToken)
Declaration
protected override ValueTask<DbConnection> OpenDbConnectionAsync(CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
ValueTask<><DbConnection> |
|
Overrides
Implements
IAsyncDisposable
Extension Methods