I have a table in a DataSet and I want to search for a row in this table using a unique key.
My question is: is there any method that allows me to find this line without using loops?
This is the code I wrote using the forech loop:
foreach (var myRow in myClass.ds.Tables["Editeur"].AsEnumerable()) { if (newKeyWordAEditeurName == myRow[1] as String) id_Editeur_Editeur = (int)myRow[0]; }
source share