SDO_dotNET 1.0.1

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

// Install SDO_dotNET as a Cake Tool
#tool nuget:?package=SDO_dotNET&version=1.0.1

The SDO_dotNET Class Library is a high level wrapper around the ODBC, OLEDB, SQLServer and SQLite.

Example: using SqlDB;

/****************************************************************** Sql Server *******************************************************************/

string server = @"INSTANCE\SQLEXPRESS"; string database = "DEMODB"; string username = "sa"; string password = "";

string connectionString = @"Data Source=" + server + ";Initial Catalog=" + database + "; Trusted_Connection=True;User ID=" + username + ";Password=" + password + ""; SDO db_conn = new SDO(connectionString);

Console.WriteLine("isConnected: " + db_conn.isConnected()); if (db_conn == null || !db_conn.isConnected()) { Console.WriteLine("Connessione non valida."); return; }

string sql = "SELECT ID, Message FROM Logs ORDER BY IDLic;"; DataTable dtLogs = db_conn.SelectTable(sql);

if (dtLogs == null || dtLogs.Rows.Count == 0) return;

// Loop with the foreach keyword. foreach (DataRow dr in dtLogs.Rows) { Console.WriteLine("Message: " + dr["Message"].ToString().Trim()); }

/****************************************************************** SQLite *******************************************************************/

string database = @"C:\Users\Utente\mydb.sqlite";

string connectionString = @"Data Source=" + database + "; Version=3; New=True; Compress=True;"; // local SDO db_conn = new SDO(connectionString);

Console.WriteLine("isConnected: " + db_conn.isConnected()); if (db_conn == null || !db_conn.isConnected()) { Console.WriteLine("Connessione non valida."); return; }

string sql = "SELECT firstname, surname FROM users ORDER BY firstname;"; DataTable dtLogs = db_conn.SelectTable(sql);

if (dtLogs == null || dtLogs.Rows.Count == 0) return;

// Loop with the foreach keyword. foreach (DataRow dr in dtLogs.Rows) { Console.WriteLine("Name: " + dr["firstname"].ToString().Trim() + " " + dr["surname"].ToString().Trim()); }

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.2.0 1,427 10/9/2020
1.1.0 935 9/27/2020
1.0.2 1,215 12/13/2018
1.0.1 1,142 12/9/2018

SQL Data Object .NetFramework.