CA.Blocks.PostgreSQLDataAccess
3.8.215-prerelease
This is a prerelease version of CA.Blocks.PostgreSQLDataAccess.
dotnet add package CA.Blocks.PostgreSQLDataAccess --version 3.8.215-prerelease
NuGet\Install-Package CA.Blocks.PostgreSQLDataAccess -Version 3.8.215-prerelease
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CA.Blocks.PostgreSQLDataAccess" Version="3.8.215-prerelease" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CA.Blocks.PostgreSQLDataAccess" Version="3.8.215-prerelease" />
<PackageReference Include="CA.Blocks.PostgreSQLDataAccess" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CA.Blocks.PostgreSQLDataAccess --version 3.8.215-prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CA.Blocks.PostgreSQLDataAccess, 3.8.215-prerelease"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CA.Blocks.PostgreSQLDataAccess@3.8.215-prerelease
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CA.Blocks.PostgreSQLDataAccess&version=3.8.215-prerelease&prerelease
#tool nuget:?package=CA.Blocks.PostgreSQLDataAccess&version=3.8.215-prerelease&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
This Package is a extension to the DataAccess Blocks targeting the postgres provider
Quick example
poco object
public class PgTables
{
public string schemaname { get; set; }
public string tablename { get; set; }
public string tableowner { get; set; }
public string? tablespace { get; set; }
public bool hasindexes { get; set; }
public bool hasrules { get; set; }
public bool hastriggers { get; set; }
public bool rowsecurity { get; set; }
}
The Data access class
public class ReadDataTableDataAccess : PostgresDataAccess
{
public ReadDataTableDataAccess() :
base(new SimpleConnectionStringDataAccessConfig("YourConnectionString"))
{
}
public async Task<IList<PgTables>> GetInformationSchema()
{
var cmd = CreateTextCommand("select * from pg_catalog.pg_tables");
return await ExecuteAsync(cmd).ToListOf<PgTables>();
}
}
Calling the data access class
var target = new ReadDataTableDataAccess();
var executeResult = await target.GetInformationSchema();
foreach (var item in executeResult)
{
Console.WriteLine($"{item.schemaname}.{item.tablename} owned by {item.tableowner} (hasindexes={item.hasindexes},hastriggers={item.hastriggers})");
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- CA.Blocks.DataAccess (>= 3.8.215-prerelease)
- Npgsql (>= 10.0.1)
-
net8.0
- CA.Blocks.DataAccess (>= 3.8.215-prerelease)
- Npgsql (>= 10.0.1)
-
net9.0
- CA.Blocks.DataAccess (>= 3.8.215-prerelease)
- Npgsql (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.8.215-prerelease | 38 | 3/6/2026 |
@RELEASE-NOTES.txt