由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - Linq to SharePoint 紧急求助
相关主题
请问大家,目前.NET业界(美国)用的最多的技术是什么?some1 using nhibernate?
is it possible to access sharepoint files from my current Web application?[合集] some1 using nhibernate?
Do we still need DALIs there LINQ for VS 2005?
有人试过.Net 3.0吗?Demos from MIX08
Converting a CSV file to XML using LinQSilverLight能做动画吗?
是不是最近dotnet不济了LINQ vs nHibernate
最不爽的就是c#搞了不少syntax sugar就为了少打几个字 心得:use XPath (+namespace)
some1 using nhibernate?Entity framework
相关话题的讨论汇总
话题: pmpitem话题: query话题: sharepoint话题: linq
进入DotNet版参与讨论
1 (共1页)
Z*********i
发帖数: 3422
1
I have a list called PMPSectionList in which there is a field called
parentId which is a lookup that refer to the Id of another record in the
same list (like a forgeign key in database), I use SPMetal to create the
context and run the query like:
PMPSectionDataContext dc = new PMPSectionDataContext(SPContext.Current.Web.
Url)
var query = from PMPSectionListItem pmpItem in dc.PMPSectionList
where pmpItem.ParentID.Id == 2
select pmpItem;
But always get an error of "InvalidOperationException: The query uses
unsupported elements, such as references to more than one list, or the
projection of a complete entity by using EntityRef/EntitySet"
Anyone can help??
s***o
发帖数: 2191
2
remove PMPSectionListItem in front of pmpItem

【在 Z*********i 的大作中提到】
: I have a list called PMPSectionList in which there is a field called
: parentId which is a lookup that refer to the Id of another record in the
: same list (like a forgeign key in database), I use SPMetal to create the
: context and run the query like:
: PMPSectionDataContext dc = new PMPSectionDataContext(SPContext.Current.Web.
: Url)
: var query = from PMPSectionListItem pmpItem in dc.PMPSectionList
: where pmpItem.ParentID.Id == 2
: select pmpItem;
: But always get an error of "InvalidOperationException: The query uses

1 (共1页)
进入DotNet版参与讨论
相关主题
Entity frameworkConverting a CSV file to XML using LinQ
用MyGeneration/CodeSmith生成NHibernate代码是不是最近dotnet不济了
How to lock tabel with LINQ to SQL最不爽的就是c#搞了不少syntax sugar就为了少打几个字
Entity Framework Today?some1 using nhibernate?
请问大家,目前.NET业界(美国)用的最多的技术是什么?some1 using nhibernate?
is it possible to access sharepoint files from my current Web application?[合集] some1 using nhibernate?
Do we still need DALIs there LINQ for VS 2005?
有人试过.Net 3.0吗?Demos from MIX08
相关话题的讨论汇总
话题: pmpitem话题: query话题: sharepoint话题: linq