错误圆圈名称未配置为标识文件{0}属于哪个圆圈。 [英] error The circle name is not configured to identify the file {0} belongs to which circle.

查看:95
本文介绍了错误圆圈名称未配置为标识文件{0}属于哪个圆圈。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi team,



我的代码如下:

hi Team,

I have the code as follows:

ICombinedMaster combinedMaster = Kaizen2GCacheManager.CircleLookupList.Where(circlelookup => circlelookup.LookupCircle.ToUpper() == fileLog.CircleInFileName.ToUpper()).FirstOrDefault();
fileLog.CircleId = combinedMaster == null ? 0 : combinedMaster.CircleId;



我无法理解这段代码。任何人都可以解释上面的代码。请告诉我



谢谢

Harshal


I cant understand this code .can anyone can please explain the above code .Please let me know

Thanks
Harshal

推荐答案

第一行只是一个WHERE子句 - 它只选择那些LookupCircle与fileLog匹配的Kaizen2GCacheManager.CircleLookupList元素,并返回第一个匹配,如果没有匹配的元素,则返回null。

第二个检查是否为为null,并返回0或圆圈的ID。



如需更多细节,我们必须知道您所有其他课程的内容以及它们的工作原理 - 坦率地说这是你的工作,而不是我的工作。
The first line is just a WHERE clause - it selects only those elements of Kaizen2GCacheManager.CircleLookupList where the LookupCircle matches the fileLog, and returns the first match, or null if there are no matching elements.
The second checks if it is null, and returns 0 or the ID of the circle.

For any more detail, we would have to know what all your other classes are and how they work - and frankly that's your job, not mine.


这篇关于错误圆圈名称未配置为标识文件{0}属于哪个圆圈。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆