Hello I hope you can help me I'm trying to get how many records my sql table has I have the following
public int ultimoRegistro()
{
var LastRecord = (from c in db.Alumnos
orderby c.IDAlumno descending
select c).First();
return LastRecord;
}
but I get an error in the data types