Skip to content

System.Data.SqlClient (ADO.NET), System.Management (WMI) & WPF - library

License

Notifications You must be signed in to change notification settings

grimy86/DataVista

Repository files navigation

DataVista

DataVista is a .NET library for:

  • Database interactions - System.Data.SqlClient (ADO.NET)
  • System management utilities - System.Management (WMI)
  • WPF

NuGet package

Prerequisites

Quick Start

1. Add the NuGet package to your project

Install NuGet client tools

2. Setting up the App.config file (for database interactions)

Add an application configuration file to a C# project

Configure this string for what suits your needs.

<?xml  version="1.0"  encoding="utf-8" ?>
<configuration>
 <configSections>
 </configSections>
 <connectionStrings>
 <add  name="MyConnectionString"
  connectionString="Data Source=MyServerName;
 Initial Catalog=MyDataBaseName;
 Integrated Security=True;
 Persist Security Info=False;
 Pooling=True;
 MultipleActiveResultSets=True;
 TrustServerCertificate=True"/>
 </connectionStrings>
</configuration>

This step is optional because you could always use DataVista.Connection.CreateConnectionString().

Or you could use the SqlConnectionStringBuilder Class.

3. Add the namespace using statement to your .cs file.

Namespace

graph LR;
	Core --> dvExtensionMethods.cs
	Core --> dvMemoryUtil.cs
	
	Database --> dvOperation.cs
	Database --> dvConverter.cs
	Database --> dvConnection.cs
 
	SQL[(Database)] -.-> dvConnection.cs	
 
	SystemTools --> dvEnvironmentInfo.cs
	SystemTools --> dvWinPath.cs
	SystemTools --> dvWinProcess.cs
Loading

Docs

Important

Connection(SqlConnection sqlConnection) constructor will read the connectionString from your App.config file.

About

System.Data.SqlClient (ADO.NET), System.Management (WMI) & WPF - library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages