diff --git a/Repository/Catalogos/CatClientesRepository.cs b/Repository/Catalogos/CatClientesRepository.cs index ff85f8a..d211648 100644 --- a/Repository/Catalogos/CatClientesRepository.cs +++ b/Repository/Catalogos/CatClientesRepository.cs @@ -22,8 +22,8 @@ namespace AOLBackend.Repository.Catalogos using var connection = _context.CreateConnection(); var entrada = await connection.QueryAsync(query, new { - @id = data.id, - @Cliente = data.Cliente, + @mid = data.id, + @mCliente = data.Cliente, }, commandType: CommandType.StoredProcedure); return entrada.First(); } @@ -35,11 +35,11 @@ namespace AOLBackend.Repository.Catalogos return entrada; } - public async Task Delete(int id) + public async Task Delete(int mid) { var query = "CatClientes_Delete"; using var connection = _context.CreateConnection(); - var entrada = await connection.QueryAsync(query, new { @id }, commandType: CommandType.StoredProcedure); + var entrada = await connection.QueryAsync(query, new { @mid }, commandType: CommandType.StoredProcedure); return true; } diff --git a/Repository/Catalogos/CatProveedoresRepository.cs b/Repository/Catalogos/CatProveedoresRepository.cs index f63fa8c..dba229c 100644 --- a/Repository/Catalogos/CatProveedoresRepository.cs +++ b/Repository/Catalogos/CatProveedoresRepository.cs @@ -22,8 +22,8 @@ namespace AOLBackend.Repository.Catalogos using var connection = _context.CreateConnection(); var entrada = await connection.QueryAsync(query, new { - @id = data.id, - @Proveedor = data.Proveedor, + @mid = data.id, + @mProveedor = data.Proveedor, }, commandType: CommandType.StoredProcedure); return entrada.First(); } @@ -35,11 +35,11 @@ namespace AOLBackend.Repository.Catalogos return entrada; } - public async Task Delete(int id) + public async Task Delete(int mid) { var query = "CatProveedores_Delete"; using var connection = _context.CreateConnection(); - var entrada = await connection.QueryAsync(query, new { @id }, commandType: CommandType.StoredProcedure); + var entrada = await connection.QueryAsync(query, new { @mid }, commandType: CommandType.StoredProcedure); return true; } } diff --git a/Repository/Catalogos/CatServiciosRepository.cs b/Repository/Catalogos/CatServiciosRepository.cs index 9d57db3..43e6638 100644 --- a/Repository/Catalogos/CatServiciosRepository.cs +++ b/Repository/Catalogos/CatServiciosRepository.cs @@ -22,8 +22,8 @@ namespace AOLBackend.Repository.Catalogos using var connection = _context.CreateConnection(); var entrada = await connection.QueryAsync(query, new { - @id = data.id, - @Servicio = data.Servicio + @mid = data.id, + @mServicio = data.Servicio }, commandType: CommandType.StoredProcedure); return entrada.First(); } @@ -35,11 +35,11 @@ namespace AOLBackend.Repository.Catalogos return entrada; } - public async Task Delete(int id) + public async Task Delete(int mid) { var query = "CatServicios_Delete"; using var connection = _context.CreateConnection(); - var entrada = await connection.QueryAsync(query, new { @id }, commandType: CommandType.StoredProcedure); + var entrada = await connection.QueryAsync(query, new { @mid }, commandType: CommandType.StoredProcedure); return true; } } diff --git a/Repository/Catalogos/CatUbicacionesRepository.cs b/Repository/Catalogos/CatUbicacionesRepository.cs index 615e4f0..dc17b32 100644 --- a/Repository/Catalogos/CatUbicacionesRepository.cs +++ b/Repository/Catalogos/CatUbicacionesRepository.cs @@ -22,9 +22,9 @@ namespace AOLBackend.Repository.Catalogos using var connection = _context.CreateConnection(); var entrada = await connection.QueryAsync(query, new { - @id = data.id, - @Ubicacion = data.Ubicacion, - @Clasificacion = data.Clasificacion + @mid = data.id, + @mUbicacion = data.Ubicacion, + @mClasificacion = data.Clasificacion }, commandType: CommandType.StoredProcedure); return entrada.First(); } @@ -36,11 +36,11 @@ namespace AOLBackend.Repository.Catalogos return entrada; } - public async Task Delete(int id) + public async Task Delete(int mid) { var query = "CatUbicaciones_Delete"; using var connection = _context.CreateConnection(); - var entrada = await connection.QueryAsync(query, new { @id }, commandType: CommandType.StoredProcedure); + var entrada = await connection.QueryAsync(query, new { @mid }, commandType: CommandType.StoredProcedure); return true; } diff --git a/Repository/Operaciones/OpViajesRepository.cs b/Repository/Operaciones/OpViajesRepository.cs index c8d3b2a..e0d1b4b 100644 --- a/Repository/Operaciones/OpViajesRepository.cs +++ b/Repository/Operaciones/OpViajesRepository.cs @@ -64,14 +64,14 @@ namespace AOLBackend.Repository.Operaciones { var query = "Operaciones_Viajes_Servicios_Get"; using var connection = _context.CreateConnection(); - var entrada = await connection.QueryAsync(query, new { mStatus }, commandType: CommandType.StoredProcedure); + var entrada = await connection.QueryAsync(query, new { @mStatus }, commandType: CommandType.StoredProcedure); return entrada; } public async Task GetLastTrailerBox(int mIdViaje) { var query = "Operaciones_Viajes_GetLastTrailerBox"; using var connection = _context.CreateConnection(); - var entrada = await connection.QueryAsync(query, new { mIdViaje }, commandType: CommandType.StoredProcedure); + var entrada = await connection.QueryAsync(query, new { @mIdViaje }, commandType: CommandType.StoredProcedure); return entrada.First(); } public async Task> GetStatusSecuence() @@ -87,8 +87,8 @@ namespace AOLBackend.Repository.Operaciones using var connection = _context.CreateConnection(); var entrada = await connection.QueryAsync(query, new { - mIdViaje = data.IdViaje, - mSecuencia = data.IdEstatus + @mIdViaje = data.IdViaje, + @mSecuencia = data.IdEstatus }, commandType: CommandType.StoredProcedure); return entrada.First(); } @@ -96,14 +96,14 @@ namespace AOLBackend.Repository.Operaciones { var query = "Operaciones_Viajes_Delete"; using var connection = _context.CreateConnection(); - var entrada = await connection.QueryAsync(query, new { mid }, commandType: CommandType.StoredProcedure); + var entrada = await connection.QueryAsync(query, new { @mid }, commandType: CommandType.StoredProcedure); return true; } public async Task DeleteService(int mid) { var query = "Operaciones_Viajes_Servicios_Delete"; using var connection = _context.CreateConnection(); - var entrada = await connection.QueryAsync(query, new { mid }, commandType: CommandType.StoredProcedure); + var entrada = await connection.QueryAsync(query, new { @mid }, commandType: CommandType.StoredProcedure); return true; } } diff --git a/appsettings.json b/appsettings.json index 697d9e5..6038dea 100644 --- a/appsettings.json +++ b/appsettings.json @@ -1,7 +1,7 @@ { "ConnectionStrings": { "SqlConnection": "server=localhost; database=AOL; User Id=sa;Password=toor1234;Encrypt=False;", - "MySQLConnection": "Server=localhost; User ID=root; Password=toor1234.; Database=AOL" + "MySQLConnection": "Server=127.0.0.1; User ID=DBAdmin; Password=DBAdmin1234$.; Port=3360; Database=AOL" }, "DefaultUser": { "Password": "Bienvenido123!" diff --git a/bin/Debug/net6.0/AOLBackend.dll b/bin/Debug/net6.0/AOLBackend.dll index 401cc50..5b37e04 100644 Binary files a/bin/Debug/net6.0/AOLBackend.dll and b/bin/Debug/net6.0/AOLBackend.dll differ diff --git a/bin/Debug/net6.0/AOLBackend.exe b/bin/Debug/net6.0/AOLBackend.exe index 90a66de..3fb8e0b 100644 Binary files a/bin/Debug/net6.0/AOLBackend.exe and b/bin/Debug/net6.0/AOLBackend.exe differ diff --git a/bin/Debug/net6.0/AOLBackend.pdb b/bin/Debug/net6.0/AOLBackend.pdb index 7fd07bd..8414922 100644 Binary files a/bin/Debug/net6.0/AOLBackend.pdb and b/bin/Debug/net6.0/AOLBackend.pdb differ diff --git a/bin/Debug/net6.0/appsettings.json b/bin/Debug/net6.0/appsettings.json index 697d9e5..6038dea 100644 --- a/bin/Debug/net6.0/appsettings.json +++ b/bin/Debug/net6.0/appsettings.json @@ -1,7 +1,7 @@ { "ConnectionStrings": { "SqlConnection": "server=localhost; database=AOL; User Id=sa;Password=toor1234;Encrypt=False;", - "MySQLConnection": "Server=localhost; User ID=root; Password=toor1234.; Database=AOL" + "MySQLConnection": "Server=127.0.0.1; User ID=DBAdmin; Password=DBAdmin1234$.; Port=3360; Database=AOL" }, "DefaultUser": { "Password": "Bienvenido123!" diff --git a/obj/AOLBackend.csproj.nuget.dgspec.json b/obj/AOLBackend.csproj.nuget.dgspec.json index 2447984..f0948b9 100644 --- a/obj/AOLBackend.csproj.nuget.dgspec.json +++ b/obj/AOLBackend.csproj.nuget.dgspec.json @@ -92,7 +92,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.100\\RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json" } } } diff --git a/obj/AOLBackend.csproj.nuget.g.props b/obj/AOLBackend.csproj.nuget.g.props index 4147345..8764068 100644 --- a/obj/AOLBackend.csproj.nuget.g.props +++ b/obj/AOLBackend.csproj.nuget.g.props @@ -7,7 +7,7 @@ $(UserProfile)\.nuget\packages\ C:\Users\Alfonso Garcia\.nuget\packages\ PackageReference - 6.4.0 + 6.5.0 diff --git a/obj/Debug/net6.0/AOLBackend.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net6.0/AOLBackend.GeneratedMSBuildEditorConfig.editorconfig index 50f2b35..e387956 100644 --- a/obj/Debug/net6.0/AOLBackend.GeneratedMSBuildEditorConfig.editorconfig +++ b/obj/Debug/net6.0/AOLBackend.GeneratedMSBuildEditorConfig.editorconfig @@ -9,9 +9,9 @@ build_property.EnforceExtendedAnalyzerRules = build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = AOLBackend build_property.RootNamespace = AOLBackend -build_property.ProjectDir = c:\Projects\staging\AOLBackend\ +build_property.ProjectDir = C:\Projects\staging\AOLBackend\ build_property.RazorLangVersion = 6.0 build_property.SupportLocalizedComponentNames = build_property.GenerateRazorMetadataSourceChecksumAttributes = -build_property.MSBuildProjectDirectory = c:\Projects\staging\AOLBackend +build_property.MSBuildProjectDirectory = C:\Projects\staging\AOLBackend build_property._RazorSourceGeneratorDebug = diff --git a/obj/Debug/net6.0/AOLBackend.assets.cache b/obj/Debug/net6.0/AOLBackend.assets.cache index 3b42bdb..faff885 100644 Binary files a/obj/Debug/net6.0/AOLBackend.assets.cache and b/obj/Debug/net6.0/AOLBackend.assets.cache differ diff --git a/obj/Debug/net6.0/AOLBackend.csproj.AssemblyReference.cache b/obj/Debug/net6.0/AOLBackend.csproj.AssemblyReference.cache index aff87c5..a154e63 100644 Binary files a/obj/Debug/net6.0/AOLBackend.csproj.AssemblyReference.cache and b/obj/Debug/net6.0/AOLBackend.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/net6.0/AOLBackend.csproj.CoreCompileInputs.cache b/obj/Debug/net6.0/AOLBackend.csproj.CoreCompileInputs.cache index 9a58177..dc25100 100644 --- a/obj/Debug/net6.0/AOLBackend.csproj.CoreCompileInputs.cache +++ b/obj/Debug/net6.0/AOLBackend.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -2db08c92120d1ce45dde86039c06cbee98a961e8 +e09acfdd066737a4d6ed5d92e74330a5417d1022 diff --git a/obj/Debug/net6.0/AOLBackend.csproj.FileListAbsolute.txt b/obj/Debug/net6.0/AOLBackend.csproj.FileListAbsolute.txt index 8022554..eb512a2 100644 --- a/obj/Debug/net6.0/AOLBackend.csproj.FileListAbsolute.txt +++ b/obj/Debug/net6.0/AOLBackend.csproj.FileListAbsolute.txt @@ -56,6 +56,7 @@ c:\Projects\staging\AOLBackend\bin\Debug\net6.0\Microsoft.IdentityModel.Protocol c:\Projects\staging\AOLBackend\bin\Debug\net6.0\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll c:\Projects\staging\AOLBackend\bin\Debug\net6.0\Microsoft.IdentityModel.Tokens.dll c:\Projects\staging\AOLBackend\bin\Debug\net6.0\Microsoft.OpenApi.dll +c:\Projects\staging\AOLBackend\bin\Debug\net6.0\MySqlConnector.dll c:\Projects\staging\AOLBackend\bin\Debug\net6.0\Swashbuckle.AspNetCore.Swagger.dll c:\Projects\staging\AOLBackend\bin\Debug\net6.0\Swashbuckle.AspNetCore.SwaggerGen.dll c:\Projects\staging\AOLBackend\bin\Debug\net6.0\Swashbuckle.AspNetCore.SwaggerUI.dll @@ -87,4 +88,3 @@ c:\Projects\staging\AOLBackend\obj\Debug\net6.0\refint\AOLBackend.dll c:\Projects\staging\AOLBackend\obj\Debug\net6.0\AOLBackend.pdb c:\Projects\staging\AOLBackend\obj\Debug\net6.0\AOLBackend.genruntimeconfig.cache c:\Projects\staging\AOLBackend\obj\Debug\net6.0\ref\AOLBackend.dll -C:\Projects\staging\AOLBackend\bin\Debug\net6.0\MySqlConnector.dll diff --git a/obj/Debug/net6.0/AOLBackend.dll b/obj/Debug/net6.0/AOLBackend.dll index 401cc50..5b37e04 100644 Binary files a/obj/Debug/net6.0/AOLBackend.dll and b/obj/Debug/net6.0/AOLBackend.dll differ diff --git a/obj/Debug/net6.0/AOLBackend.pdb b/obj/Debug/net6.0/AOLBackend.pdb index 7fd07bd..8414922 100644 Binary files a/obj/Debug/net6.0/AOLBackend.pdb and b/obj/Debug/net6.0/AOLBackend.pdb differ diff --git a/obj/Debug/net6.0/apphost.exe b/obj/Debug/net6.0/apphost.exe index 90a66de..3fb8e0b 100644 Binary files a/obj/Debug/net6.0/apphost.exe and b/obj/Debug/net6.0/apphost.exe differ diff --git a/obj/Debug/net6.0/ref/AOLBackend.dll b/obj/Debug/net6.0/ref/AOLBackend.dll index bb7b707..9ee4ee9 100644 Binary files a/obj/Debug/net6.0/ref/AOLBackend.dll and b/obj/Debug/net6.0/ref/AOLBackend.dll differ diff --git a/obj/Debug/net6.0/refint/AOLBackend.dll b/obj/Debug/net6.0/refint/AOLBackend.dll index bb7b707..9ee4ee9 100644 Binary files a/obj/Debug/net6.0/refint/AOLBackend.dll and b/obj/Debug/net6.0/refint/AOLBackend.dll differ diff --git a/obj/project.assets.json b/obj/project.assets.json index a235cdf..b5398b2 100644 --- a/obj/project.assets.json +++ b/obj/project.assets.json @@ -1298,7 +1298,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.100\\RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.203\\RuntimeIdentifierGraph.json" } } } diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache index 3375bf8..790b62a 100644 --- a/obj/project.nuget.cache +++ b/obj/project.nuget.cache @@ -1,6 +1,6 @@ { "version": 2, - "dgSpecHash": "KSVQsB8VZgGFdEwOFCBIKizK2eCVBcuYism1bMxHH3MKEkJKJPN4SrK0+Ll31UnYqx7zFNQIeRNmv+PnIvRrOA==", + "dgSpecHash": "76RRjebjdsb7jt1mIk9g0ndj9S23eOKX4/fZ9beX/CQ1mi1Zh6wi5LpnQIlRQ+YWh50Ok5aSUfV+Q/Tw1fLniw==", "success": true, "projectFilePath": "C:\\Projects\\staging\\AOLBackend\\AOLBackend.csproj", "expectedPackageFiles": [