生成Linq实体
使用SPMetal工具生成Linq to SharePoint实体
工具安装目录:
C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14BINSPMETAL.exe
命令参数:
cmd:
cdC:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14BIN
生成 C# 代码:
//10.250.201.133/cym :指的是From(场)的路径
code:SiteEntites.cs :SiteEnites.cs是生成后的类名(是网站下的List),
SPMetal.exe /web:http://10.250.201.113/cym /code:SiteEntities.cs
生成后可在
C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14BIN
目录下找到SiteEnites.cs类