DataSharp_Library 1.0.2

dotnet add package DataSharp_Library --version 1.0.2
NuGet\Install-Package DataSharp_Library -Version 1.0.2
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="DataSharp_Library" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DataSharp_Library --version 1.0.2
#r "nuget: DataSharp_Library, 1.0.2"
#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 DataSharp_Library as a Cake Addin
#addin nuget:?package=DataSharp_Library&version=1.0.2

// Install DataSharp_Library as a Cake Tool
#tool nuget:?package=DataSharp_Library&version=1.0.2

start from here 😃

What is Datasharp-Library

DataSharp is a nuget package that aims to help developers to easily connect and perform CRUD operations on SQL databases integrated into their C # applications.

Usage

Run the following commands in order to this package in your C# application:

  • Package Manager: Install-Package DataSharp_Library -Version 1.0.2

  • NET CLI: dotnet add package DataSharp_Library --version 1.0.2

  • Paket CLI: paket add DataSharp_Library --version 1.0.2

  • NOTE: For projects that support PackageReference, copy this XML node into the project file to reference the package:

  • <PackageReference Include="DataSharp_Library" Version="1.0.2" />

Connect to Database

using DataSharp_Library.Builders;
using DataSharp_Library.Models;
using DataSharp_Library.Utilities;

Database database = new DatabaseBuilder()
                .DataSourceProvider(Provider.SQLSERVER)
                .ConnectionString(@"<REPLACE_CONNECTION_STRING>")
                .Build();

Get Database Connection

using DataSharp_Library.Builders;
using DataSharp_Library.Models;
using DataSharp_Library.Utilities;

Database database = new DatabaseBuilder()
                .DataSourceProvider(Provider.SQLSERVER)
                .ConnectionString(@"<REPLACE_CONNECTION_STRING>")
                .Build();

SqlConnection connection = (SqlConnection) database.Connect();

Operations

Insert

String query = "INSERT INTO developer(id, name, nickname, level) VALUES (?, ?, ?, ?)";

database.InsertData(query, 2, "John Doe", "johndoey", 8);

SELECT

String query = "SELECT * FROM developer";

ArrayList developers = new ArrayList();

database.retrieveData(query, developers);

**MORE FEATURES COMING SOON!

Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  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.

This package has no dependencies.

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.0.2 354 1/25/2021
1.0.0.1 331 1/23/2021
1.0.0 328 1/23/2021

Package Release