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