How to obtain the value of a field from a DataTable? I have managed to get the value of a field from a DataTable in the following way.
var strSQL = "SELECT Id, Descripcion FROM Mensajes";
var dt = GetAll(strSQL);
string result = dt.Rows[0][1].ToString();
But applying LINQ I have tried it in the following way but I do not get it.
string result = dt.Rows.Cast<DataRow>().Select(x => x.Field<string>("Descripcion")).ToString();