简体   繁体   English

SPMetal 忽略农场解决方案中的查找列

[英]SPMetal ignores lookup columns in Farm Solution

I have content types and related lists (via lookup columns) in a Sandbox solution(wsp).我在沙盒解决方案(wsp)中有内容类型和相关列表(通过查找列)。 All my lookup column relationships come up fine in the SPMetal generated entity classes.在 SPMetal 生成的实体类中,我所有的查找列关系都很好。

I now have a requirement to change the solution from Sandbox to Farm scope.我现在需要将解决方案从 Sandbox 更改为 Farm scope。 However, once I change the solution from SandBox to Farm scope and deploy it, and then run SPMetal on my lists, it no longer generates navigation properties for my lookup columns.但是,一旦我将解决方案从 SandBox 更改为 Farm scope 并部署它,然后在我的列表上运行 SPMetal,它就不再为我的查找列生成导航属性。 They just have a property for the Id of the lookup column and not the actual object.它们只有查找列的 Id 的属性,而不是实际的 object。

Can anyone shed some light on why SPMetal ignores my lookup columns when the wsp is changed from SandBox to Farm scope???当 wsp 从 SandBox 更改为 Farm scope 时,任何人都可以解释为什么 SPMetal 会忽略我的查找列?

to my knowledge SPMetal doesn't generate complete lookup classes on its own.据我所知,SPMetal 不会自行生成完整的查找类。 You have to do some extra work to make this functional.您必须做一些额外的工作才能使其正常工作。 Don't know why it worked in your previous settings...不知道为什么它在您以前的设置中起作用...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将SharePoint 2010项目从沙盒解决方案更改为服务器场解决方案 - How to Change SharePoint 2010 Project from Sandboxed Solution to Farm Solution 如何在不使用Visual Studio,PowerShell或Stsadm的情况下添加服务器场解决方案 - How to add farm solution without using Visual Studio, PowerShell or Stsadm SharePoint-如何将WSP解决方案锁定到网站集? 服务器? 还有一个农场? - SharePoint - How to lock a WSP solution to a Site Collection? Server? And a farm? 无法在 SharePoint 2013 农场解决方案上加载文件或程序集 - Can not load file or assembly on SharePoint 2013 Farm Solution SPMETAL / LINQ到SharePoint的十进制类型 - SPMETAL / LINQ to SharePoint Decimal Types sharepoint 2007 中的查找列 - lookup columns in sharepoint 2007 如何通过Sharepoint 2013服务器场解决方案以编程方式在文件背后的代码中使用Sharepoint获取Active Directory信息? - How do I get the Active Directory Information with Sharepoint programatically on sharepoint 2013 Farm Solution On Code Behind File? SharePoint 2013 KnockoutJS查找列 - SharePoint 2013 KnockoutJS Lookup columns SharePoint 2007:自定义查找列 - SharePoint 2007: Custom Lookup columns 如何在Visual Studio 2015的SharePoint空服务器场解决方案中包含配置文件? - How to include config file in SharePoint empty farm solution in Visual Studio 2015?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM