私は国のデータベースが好きです、
Country
-------
England
Germany
Italy
...
このデータ ソースを次のように取得します。
DB.Countries.ToList();
私がやりたいことは、新しく追加された国がすでに存在するかどうかを確認することです
。
if(DB.Countries.ToList().Contains(newAddedCountry))
{
..............
}
newAddedCountry
しかし、 (string) をに変換する方法がわかりませんSystem.Collections.Generic.List<Country>
。