草庐IT

entityIds

全部标签

c# - 在 LINQ 表达式异常中检测到循环

我得到错误:AcyclewasdetectedinaLINQexpression.在ToList()在尝试执行以下操作时:privateIEnumerableFilterIdsByClient(IEnumerableentityIds){entityIds=MyObjectContext.CreateObjectSet().Where(x=>x.ClientId==_clientId).Where(x=>entityIds.Contains(x.Id)).Select(x=>x.Id);returnentityIds.ToList();}但这不会抛出任何异常并且工作正常:private

c# - ReSharper 提示成员 "ID"中的大写字母 "EntityID"

我在一个类中有一个属性“EntityID”。Resharper(5.1)说Name'EntityID'doesnotmatchrule'Methods,propertiesandevents'.Suggestednameis'EntityId'.但是恕我直言,根据DesignGuidelinesforClassLibraryDevelopers中的命名约定.“EntityID”应该完全没问题:Donotuseacronymsthatarenotgenerallyacceptedinthecomputingfield.Whereappropriate,usewell-knownacron

c# - ReSharper 提示成员 "ID"中的大写字母 "EntityID"

我在一个类中有一个属性“EntityID”。Resharper(5.1)说Name'EntityID'doesnotmatchrule'Methods,propertiesandevents'.Suggestednameis'EntityId'.但是恕我直言,根据DesignGuidelinesforClassLibraryDevelopers中的命名约定.“EntityID”应该完全没问题:Donotuseacronymsthatarenotgenerallyacceptedinthecomputingfield.Whereappropriate,usewell-knownacron