我有国家数据库喜欢,
Country
-------
England
Germany
Italy
...
我得到这个数据源,
DB.Countries.ToList();
我想要做的是检查新添加的国家是否已经存在,
就像,
if(DB.Countries.ToList().Contains(newAddedCountry))
{
..............
}
但我不知道如何将newAddedCountry
(string) 转换为System.Collections.Generic.List<Country>
.