DevelopmentHelpers.QueryBuilder 2.0.3

dotnet add package DevelopmentHelpers.QueryBuilder --version 2.0.3                
NuGet\Install-Package DevelopmentHelpers.QueryBuilder -Version 2.0.3                
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.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DevelopmentHelpers.QueryBuilder --version 2.0.3                
#r "nuget: DevelopmentHelpers.QueryBuilder, 2.0.3"                
#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.3

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

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 125 2/16/2024
2.0.2 123 2/7/2024
2.0.1 113 2/7/2024
1.0.5 267 2/2/2023
1.0.4 250 2/2/2023
1.0.3 242 2/1/2023
1.0.1 259 1/27/2023
1.0.0 280 1/27/2023

QueryBuilder