AsNet.Shared.Data
2.2.2
See the version list below for details.
dotnet add package AsNet.Shared.Data --version 2.2.2
NuGet\Install-Package AsNet.Shared.Data -Version 2.2.2
<PackageReference Include="AsNet.Shared.Data" Version="2.2.2" />
<PackageVersion Include="AsNet.Shared.Data" Version="2.2.2" />
<PackageReference Include="AsNet.Shared.Data" />
paket add AsNet.Shared.Data --version 2.2.2
#r "nuget: AsNet.Shared.Data, 2.2.2"
#:package AsNet.Shared.Data@2.2.2
#addin nuget:?package=AsNet.Shared.Data&version=2.2.2
#tool nuget:?package=AsNet.Shared.Data&version=2.2.2
AsNet.Shared.Data v2.2.2.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,
"DefaultSecuritySource": "AppSettings" // AppSettings, AsNetSecurityV1, AsNetSecurityV2
},
"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.1)
- AutoMapper.Extensions.ExpressionMapping (>= 11.0.0)
- Duende.IdentityModel (>= 8.1.0)
- Microsoft.Data.SqlClient (>= 7.0.0)
- Microsoft.EntityFrameworkCore (>= 10.0.5)
- Microsoft.EntityFrameworkCore.SqlServer (>= 10.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Http (>= 10.0.5)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.5)
-
net8.0
- AsNet.Shared.Http (>= 1.2.0.1)
- AutoMapper.Extensions.ExpressionMapping (>= 11.0.0)
- Duende.IdentityModel (>= 8.1.0)
- Microsoft.Data.SqlClient (>= 7.0.0)
- Microsoft.EntityFrameworkCore (>= 9.0.14)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.14)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Http (>= 10.0.5)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.5)
-
net9.0
- AsNet.Shared.Http (>= 1.2.0.1)
- AutoMapper.Extensions.ExpressionMapping (>= 11.0.0)
- Duende.IdentityModel (>= 8.1.0)
- Microsoft.Data.SqlClient (>= 7.0.0)
- Microsoft.EntityFrameworkCore (>= 9.0.14)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.14)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Http (>= 10.0.5)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.5)
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.3.0.1 | 38 | 4/8/2026 | |
| 2.3.0 | 86 | 4/6/2026 | |
| 2.2.2 | 89 | 3/26/2026 | |
| 2.2.1.1 | 118 | 2/9/2026 | |
| 2.2.1 | 130 | 1/14/2026 | |
| 2.2.0 | 113 | 1/13/2026 | |
| 2.1.1.6 | 248 | 6/30/2025 | |
| 2.1.1.5 | 232 | 1/6/2025 | |
| 2.1.1.4 | 205 | 12/9/2024 | |
| 2.1.1.3 | 216 | 12/9/2024 | |
| 2.1.1.2 | 238 | 11/11/2024 | |
| 2.1.1.1 | 243 | 9/6/2024 | |
| 2.1.1 | 238 | 6/9/2024 | |
| 2.1.0.8 | 248 | 5/29/2024 | |
| 2.1.0.7 | 278 | 4/1/2024 | |
| 2.1.0.6 | 232 | 3/30/2024 | |
| 2.1.0.5 | 274 | 9/29/2023 | |
| 2.1.0.4 | 213 | 9/28/2023 | |
| 2.1.0.3 | 251 | 9/2/2023 | |
| 2.1.0.2 | 289 | 6/15/2023 |
Esta versión esta diseñada para Net 8.0/9.0/10.0.
Incluye nuevas clases genéricas para Queries y Commands.