fix logs y envio de registros
This commit is contained in:
parent
4b6204d9e7
commit
016acced6e
7 changed files with 54 additions and 56 deletions
|
@ -13,10 +13,7 @@ namespace DAL
|
|||
{
|
||||
using (var connection = new SqlConnection(BdConexion.StringConnection))
|
||||
{
|
||||
await connection.OpenAsync();
|
||||
|
||||
// Truncar la tabla antes de insertar
|
||||
await connection.ExecuteAsync("TRUNCATE TABLE DGA_LOGS_OPERACION");
|
||||
await connection.OpenAsync();
|
||||
// Insertar todos los datos de la lista usando Dapper
|
||||
var sql = @"INSERT INTO dbo.DGA_LOGS_OPERACION
|
||||
(estado_envio, json_enviado, json_recibido, comprobante, fecha_envio, id_medicion_smartscada_operacion)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue