惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

博客园 - Lordan

有sharepoint团队的公司 spgridview的过滤功能回调时发生错误~ moss web service的权限问题 获取共享服务中用户配置的其它额外信息 发布一款天气预报webpart MOSS开发Solution Community Kit for SharePoint 利用资源文件实现多语言的系统 调试有JS的InfoPath 2003 发布一个域安全级别的无代码InfoPath表单作为文档库模版 (InfoPath 一) InfoPath表单容器XmlFormView 列出W3WP进程端口号的详细内容(小技巧) 在blog中添加attachments功能 (修改系统Control) 在blog中添加attachments功能 (利用SharePoint:AttachmentUpload ) (未解决) 显示表单页面的编辑模式 - Lordan - 博客园 利用SharePoint:DelegateControl部署自定义UserControl Flash + SharePoint WebService播放视频 (二) Flash + SharePoint WebService播放视频 (一) 文档库中文件夹的权限管理
LINQ to SharePoint 试用感受, 欢迎讨论~
Lordan · 2009-05-18 · via 博客园 - Lordan

目前项目需要比较复杂的查询功能, 如果直接写CAML的话以后维护非常麻烦, 然后暂时用LINQ to SharePoint替代之~ URL:

http://linqtosharepoint.codeplex.com/

最大的优点是我不用写CAML了, 非常容易实现一些简单的查询功能,

问题也有很多,譬如:

问题1:

工具SpMetal生产的代码文件类上面出现以下属性:

[global::BdsSoft.SharePoint.Linq.ListAttribute("tbl_task", Id = "9a79692c-2a8f-4f07-ae90-57cfb1abb213", Version = 28, Path = "/Lists/tbl_task")]

在开发机器上开发,然后部署到测试环境以及生产环境中, ID是不一样的; 发布的时候我都要重新修改这个值来编译, 而且最郁闷的是那个Version是经常变的,这样就抛出了异常了:

List version mismatch between entity type and list definition on the server.

问题2:

合法情况:

u.Age < u.DoubleAge
u.FirstName.Contains(u.NickName)

不合法情况:

假如我需要一个多选的字段内容, 我把选择的信息放在了一个List<string> list变量中,然后使用以下代码将直接报错:

u.Age < u.DoubleAge
list.Contains(u.NickName)

SP0007: Query predicate contains a method call on a non-entity property: Contains. 

以上是我碰到的问题,欢迎大家讨论~~

最后: 当本人下载该源代码后发现里面取数据的方式是通过Web service的方式,所以速度性能上受到影响,建议大数据量的查询不推荐使用Linq to sharepoint