AsNet.Shared.Data
2.2.1
dotnet add package AsNet.Shared.Data --version 2.2.1
NuGet\Install-Package AsNet.Shared.Data -Version 2.2.1
<PackageReference Include="AsNet.Shared.Data" Version="2.2.1" />
<PackageVersion Include="AsNet.Shared.Data" Version="2.2.1" />
<PackageReference Include="AsNet.Shared.Data" />
paket add AsNet.Shared.Data --version 2.2.1
#r "nuget: AsNet.Shared.Data, 2.2.1"
#:package AsNet.Shared.Data@2.2.1
#addin nuget:?package=AsNet.Shared.Data&version=2.2.1
#tool nuget:?package=AsNet.Shared.Data&version=2.2.1
AsNet.Shared.Data v2.2.1.0
Descripción
AsNet.Shared.Data es una biblioteca de integración con el sistema AsNetSecurity que permite obtener y generar cadenas de conexión dinámicas para aplicaciones Multi-Tenant.
Esta versión está diseñada para:
- .NET Standard 2.1
- .NET 8.0
- .NET 9.0
- .NET 10.0
Incluye un nuevo método para manejar múltiples ConnectionStrings por tenantKey desde el archivo appsettings.json.
Ahora incluye las clases GenericQueries y GenericCommands que implementan el patrón CQRS.
Características
- Generación dinámica de cadenas de conexión por tenant.
- Integración con servicios de seguridad de AsNet.
- Soporte para múltiples entornos y proveedores de conexión.
- Configuración flexible desde
appsettings.json.
Configuración
Para esta versión se requieren dos secciones de configuración en appsettings.json:
"AsNet": {
"Security": {
"ApplicationSettings": {
"CommandTimeout": 301,
"ConnectionProviderName": "Microsoft.Data.SqlClient",
"ApplicationId": "29880977-F102-4C51-AC41-E23C1D28DC5B",
"ApplicationName": "ApplicationName",
"ApplicationSalt": "ApplicationSalt",
"ConnectionType": "Production",
"SecurityWebApi": "https://wapiasnetsecurity.azurewebsites.net/api",
"DefaultLocalConnectionName": "AsNetSecurity_Dllo",
"DBContextLogger": false
},
"IdentityServerSettings": {
"Address": "https://ssopru.asnet.app",
"ClientId": "",
"ClientSecret": "",
"Scope": ""
},
"OpenIdConnectSettings": {
"Authority": "https://ssopru.asnet.app",
"ClientId": "ClientId",
"ClientSecret": "ClientSecret",
"ResponseType": "code",
"Scope": "openid profile email roles offline_access address Application"
}
},
"Http": {
"HttpSettings": {
"HandlerLifetime": "00:05:00", // 5 minutos
"Timeout": "00:02:00", // 2 minutos
"DefaultClientName": "AsNetSharedHttp", //Logical name of HttpClient to create
"IPStackURL": "http://api.ipstack.com",
"IPStackAccessKey": "IPStack Access Key"
}
},
}
| 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 is compatible. 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 is compatible. 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. |
-
net10.0
- AsNet.Shared.Http (>= 1.2.0)
- AutoMapper.Extensions.ExpressionMapping (>= 10.0.0)
- Duende.IdentityModel (>= 8.0.0)
- Microsoft.Data.SqlClient (>= 6.1.3)
- Microsoft.EntityFrameworkCore (>= 10.0.1)
- Microsoft.EntityFrameworkCore.SqlServer (>= 10.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Http (>= 10.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.1)
-
net8.0
- AsNet.Shared.Http (>= 1.2.0)
- AutoMapper.Extensions.ExpressionMapping (>= 10.0.0)
- Duende.IdentityModel (>= 8.0.0)
- Microsoft.Data.SqlClient (>= 6.1.3)
- Microsoft.EntityFrameworkCore (>= 9.0.11)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.11)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Http (>= 10.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.1)
-
net9.0
- AsNet.Shared.Http (>= 1.2.0)
- AutoMapper.Extensions.ExpressionMapping (>= 10.0.0)
- Duende.IdentityModel (>= 8.0.0)
- Microsoft.Data.SqlClient (>= 6.1.3)
- Microsoft.EntityFrameworkCore (>= 9.0.11)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.11)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Http (>= 10.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.1)
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.2.1 | 100 | 1/14/2026 | |
| 2.2.0 | 88 | 1/13/2026 | |
| 2.1.1.6 | 225 | 6/30/2025 | |
| 2.1.1.5 | 214 | 1/6/2025 | |
| 2.1.1.4 | 183 | 12/9/2024 | |
| 2.1.1.3 | 192 | 12/9/2024 | |
| 2.1.1.2 | 215 | 11/11/2024 | |
| 2.1.1.1 | 225 | 9/6/2024 | |
| 2.1.1 | 218 | 6/9/2024 | |
| 2.1.0.8 | 227 | 5/29/2024 | |
| 2.1.0.7 | 259 | 4/1/2024 | |
| 2.1.0.6 | 209 | 3/30/2024 | |
| 2.1.0.5 | 259 | 9/29/2023 | |
| 2.1.0.4 | 201 | 9/28/2023 | |
| 2.1.0.3 | 236 | 9/2/2023 | |
| 2.1.0.2 | 275 | 6/15/2023 | |
| 2.1.0.1 | 290 | 6/12/2023 | |
| 2.1.0 | 295 | 5/3/2023 | |
| 2.0.4.3 | 363 | 3/27/2023 | |
| 2.0.4.2 | 374 | 2/16/2023 | |
| 2.0.4.1 | 457 | 1/15/2023 | |
| 2.0.4 | 434 | 1/12/2023 | |
| 2.0.3.1 | 516 | 9/4/2022 | |
| 2.0.2.2 | 581 | 5/11/2022 |
Esta versión esta diseñada para Net 8.0/9.0/10.0.
Incluye nuevas clases genéricas para Queries y Commands.