QueryServiceClient 1.0.9
dotnet add package QueryServiceClient --version 1.0.9
NuGet\Install-Package QueryServiceClient -Version 1.0.9
<PackageReference Include="QueryServiceClient" Version="1.0.9" />
<PackageVersion Include="QueryServiceClient" Version="1.0.9" />
<PackageReference Include="QueryServiceClient" />
paket add QueryServiceClient --version 1.0.9
#r "nuget: QueryServiceClient, 1.0.9"
#:package QueryServiceClient@1.0.9
#addin nuget:?package=QueryServiceClient&version=1.0.9
#tool nuget:?package=QueryServiceClient&version=1.0.9
QueryServiceClient
QueryServiceClient is a library for .NET 8 that simplifies database operations by providing a lightweight client for performing CRUD (Create, Read, Update, Delete) operations on mapped entities. It allows developers to interact with MySQL databases using an object-based approach, generating dynamic SQL queries from .NET classes.
Installation
You can install this library via NuGet:
dotnet add package QueryServiceClient --version 1.0.0
Or from the NuGet Package Manager in Visual Studio:
Install-Package QueryServiceClient -Version 1.0.0
Use
Here's a basic example of how to use the library:
var tables = new List<Table> {
new Table("issues", "Issue")
.AddField("id", "Id", true, true)
.AddField("descripcion", "Descripcion")
.AddField("fecha_alta", "FechaAlta")
.AddField("estado", "Estado")
.AddField("fecha_resolucion", "FechaResolucion")
.AddField("facturable", "Facturable")
.AddField("proyecto_id", "ProyectoId", false, false, "proyectos")
.AddField("operacion_id", "OperacionId"),
new Table("proyectos", "Proyecto")
.AddField("id", "Id", true, true)
.AddField("nombre", "Nombre")
.AddField("entidad_id", "EntidadId", false, false, "entidades")
.AddField("activo", "Activo"),
new Table("entidades", "Entidad")
.AddField("id", "Id", true, true)
.AddField("nombre", "Nombre")
.AddField("razon_social", "RazonSocial")
.AddField("cuit", "Cuit")
.AddField("ingresos_brutos", "IngresosBrutos")
.AddField("domicilio", "Domicilio")
.AddField("localidad", "Localidad")
.AddField("posicion_iva", "PosicionIva")
.AddField("mail_cupones", "MailCupones")
.AddField("es_prospecto", "EsProspecto")
.AddField("observaciones", "Observaciones")
};
QueryServiceConfig.Configure(
baseUrl: "http://localhost:5284",
apiKey: "***",
defaultConnectionName: "MisCuentas",
@namespace: "TestClient.Models",
assemblyName: "TestClient",
mappings: tables);
Requirements
- .NET 8.0 or higher
License
This project is licensed under the [MIT License]
Product | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- 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.