ASql 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package ASql --version 1.0.0                
NuGet\Install-Package ASql -Version 1.0.0                
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="ASql" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ASql --version 1.0.0                
#r "nuget: ASql, 1.0.0"                
#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.
// Install ASql as a Cake Addin
#addin nuget:?package=ASql&version=1.0.0

// Install ASql as a Cake Tool
#tool nuget:?package=ASql&version=1.0.0                

ASql

C# Library that let use multiple types of databases with same code

The supported databases are SqlServer and Oracle

You only have to declare wich type of database would like you use and use the classe in the same way of sql or oracle client.

Here you can find an example :

        ASqlManager.DataBaseType = ASqlManager.DBType.Oracle;


        using (ASqlConnection conn = new ASqlConnection(ConnectionString))
        {
            int i = 0;
            conn.Open();
            ASqlCommand cmd = new ASqlCommand(sql, conn);
            using (DbDataReader read = cmd.ExecuteReader())
            {
                while (read.Read())
                {
                    i = read.GetInt32(read.GetOrdinal("nvalue"));  
                }
            }
            Assert.AreEqual(7, i);
        }
Product 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. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ASql:

Package Downloads
Serilog.Sinks.Database

Serilog sink that writes in one of these five databases (SqlServer, Oracle, MySql, PostgreSQL, Sqlite)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 199 9/27/2024
2.5.0 201 9/13/2024
2.0.1 107 9/12/2024
2.0.0 107 9/11/2024
1.0.1 105 9/9/2024
1.0.0.3 112 9/6/2024
1.0.0.2 100 9/6/2024
1.0.0.1 110 9/5/2024
1.0.0 103 9/2/2024