22 lines
627 B
C#
22 lines
627 B
C#
using System.Data;
|
|
using Dapper;
|
|
using Microsoft.Data.SqlClient;
|
|
using Shared.DTO.Envios_DGA;
|
|
using Shared.DTO.VariablesEntorno;
|
|
|
|
namespace DAL
|
|
{
|
|
public class MedicionScadaVilosRepository
|
|
{
|
|
public async Task<List<MedicionScada>> ObtenerMedicionesVilosAsync()
|
|
{
|
|
await using var connection = new SqlConnection(BdConexion.StringConnection);
|
|
|
|
var result = await connection.QueryAsync<MedicionScada>(
|
|
"SP_OBTENER_MEDICION_SMARTSCADA_OPERACION_VILOS",
|
|
commandType: CommandType.StoredProcedure);
|
|
|
|
return result.ToList();
|
|
}
|
|
}
|
|
}
|