[英]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.