MyCrudPackage 1.2.0

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

// Install MyCrudPackage as a Cake Tool
#tool nuget:?package=MyCrudPackage&version=1.2.0


This package is useful to everyone who uses .net framework and try to push the model data to the sql database.


we have 3 methods in this package

  1. DBTransaction - Applicable to send model as a parameter and do the CUD operations
  2. GetDataSet - Applicable to receive the dataset with multiple or single table (with and without model)
  3. GetDataTable - Applicable to receive the datatable (with and without model)

Scenario 1:

You want to do a transaction to create / update / delete a record

Here is your Model

public class Employee

	public string FirstName{get;set;}

	public string LastName{get;set;}

	public string MiddleName{get;set;}

	public int Age{get;set;}

	public bit Gender{get;set;}

Server side - Button_Click event

/* you are forming this object in your creation screen (Employee.aspx.cs) */

Employee employee=new Employee();





here is your connection string

string sqlconnectionstring=ConfigurationManager.ConnectionStrings["yourconnectionstring"].ConnectionString;
string storedprocname=<storedprocedurename>;

here we call our MyCrudPackage

var result=MyCrudPackage.CRUD.DBTransactions<Employee>(employee,storedprocname,sqlconnectionstring);

Scenario 2:

To receive data to a Dataset with parameters (multiple collection of select statement from stored proc / single)

DataSet ds=new DataSet();

Scenario 3:

To receive data to a Dataset without parameters (multiple collection of select statement from stored proc / single)

DataSet ds=new DataSet();

Scenario 4:

To receive data to a Datatable with parameters

DataTable dt=new DataTable();

Scenario 5:

To receive data to a Datatable without parameters

DataTable dt=new DataTable();

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  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.2.0 1,046 11/13/2022

Implemented new changes to get the dataset and datatable without any object