DevelopmentHelpers.QueryBuilder 2.0.1

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

// Install DevelopmentHelpers.QueryBuilder as a Cake Tool
#tool nuget:?package=DevelopmentHelpers.QueryBuilder&version=2.0.1                

DevelopmentHelpers.QueryBuilder

DevelopmentHelpers.QueryBuilder is a common library which can be used for database queries .

Installation

Use the package manager pip to install DataTransfer.QueryBuilder.

NPM install  DevelopmentHelpers.QueryBuilder

Usage

"QueryBuilderOptions": { "SqlDataStoreOptions": { "ConnectionString": "Server=.;Database=Northwind_QueryBuilder_Test;Trusted_Connection=True;Encrypt=True;TrustServerCertificate=True;Connect Timeout=20000; pooling='true'; Max Pool Size=20000" } } Services.AddQueryBuilder(configuration); //Used Keyed service IDataStoreHelper dataStoreHelper = (IDataStoreHelper)KernelMapper.ServiceProvider.GetKeyedService(typeof(IDataStoreHelper),QueryBuilderConstants.MsSql); //or use [FromKeyedServices]

  1. Create Query Query query = new() { Name = "Name", QueryType = QueryBuilder.Helpers.Enums.QueryType.Select, Statement = select, DataProviderType = QueryBuilder.Helpers.Enums.DataProviderType.MySqlClient, DataStoreType = QueryBuilder.Helpers.Enums.DataStoreType.Mssql };
  2. Validate Query var (isValid,message) = await dataStoreHelper.ValidateQueryAsync(query);
  3. Get Data Rows List<DataRow> rows = await dataStoreHelper.GetDataRowListAsync(query);
  4. Get DataTable By Paging Models.Table dataTable = await dataStoreHelper.GetTableByPagingAsync(query, 100000);
  5. Get DataTable DataTable dataTable = await dataStoreHelper.GetDataTableAsync(query);
  6. Add Record List<Parameter> parameters = await dataStoreHelper.AddAsync(query);
  7. Delete Record bool deleted = await dataStoreHelper.DeleteAsync(query);
  8. Save Record int saved = await dataStoreHelper.SaveAsync(query);
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. 
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
2.0.3 122 2/16/2024
2.0.2 117 2/7/2024
2.0.1 112 2/7/2024
1.0.5 266 2/2/2023
1.0.4 248 2/2/2023
1.0.3 241 2/1/2023
1.0.1 258 1/27/2023
1.0.0 279 1/27/2023

QueryBuilder