如何在C#应用程序中使用lambda表达式?

时间:2018-07-10 22:46:46

标签: c# lambda

我想使用Lambda表达式在我的C#应用​​程序中获取CountryName。当前抛出错误

  

参数化查询'(@CountryCode varchar(8000))exec GetCountry @CountryCode'需要未提供的参数'@CountryCode'。

请向我建议我要去哪里了。

 string CountryName = Loctn().Where(r => r.Country_Code == "AU").Select(y => y.CountryName).ToString(); //throws error

0 个答案:

没有答案
相关问题