Error en "AsList"
Publicado por Miguel (24 intervenciones) el 02/07/2021 20:34:01
Me da este error pero no consigo saber cual es la causa del mismo. Me pueden ayudar.
Gracias
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public List<ECalle> GetAll()
{
List<ECalle> Result = null;
using (SqlConnection Conn = new SqlConnection(Conexion.ConnectionString))
{
try
{
Conn.Open();
Result = Conn.Query<ECalle>("Select * From Calles").AsList; "En AsList es el error"
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
}
return Result;
}
Gracias
Valora esta pregunta


0