gpt4 book ai didi

c# - ISingleResult 和 IEnumerable

转载 作者:太空宇宙 更新时间:2023-11-03 11:25:49 24 4
gpt4 key购买 nike

谁能解释什么是 ISingleResult 以及 ISingleResultIEnumerable 之间的区别。我们什么时候应该使用它?请解释这段代码。

public ISingleResult<CityMaster> SelectCityMaster()
{
try
{
return _ObjLinq.SelectCityMaster();
}
catch { throw; }
}

最佳答案

这是 Linq2Sql 的东西。基本上,它表示查询将返回一个表,而不是两个或三个。

关于c# - ISingleResult 和 IEnumerable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9374722/

24 4 0