Sharepoint 2010 - 使用 Visual Studio 2010 的 BCS 内容类型

发布于 2024-12-19 01:36:47 字数 932 浏览 5 评论 0原文

我正在 Visual Studio 中制作外部内容类型 BCS 项目。在该项目中,我有一个 Linq to Sql 类,其中包含一个员工表,并且我有一个 BCS 模型类(BDCM),其中我有一个名为 Employee 的实体,我遵循以下教程供您参考 教程,请单击此处查看

当我在 sharepoint 站点中部署并创建列表时,出现此错误

无法显示此 Web 部件。要解决该问题,请打开 此网页采用与 Microsoft SharePoint Foundation 兼容的 HTML 格式 编辑器,例如 Microsoft SharePoint Designer。如果问题仍然存在, 请联系您的网络服务器管理员。

相关 ID:0b6e886b-a218-4658-82b2-23e82eb1fa5f

当我使用相关 ID 签入共享点日志时,它向我显示以下内容:

外部列表:使用 Finder 的默认过滤器设置 EntityNamespace 的实体“Employee”中的“ReadItem” 'SPCheck2010CSharp2.ExternalModel1'。这可能会导致 性能显着下降。

请帮我找出这个问题的原因。

-RHM

在日志中也发现了此错误:

在父对象上找不到名为“EmployeeID”的属性

I am making an external content type BCS project in visual studio. In the project I have a Linq to Sql class with an employee table in it and I have got an BCS model class (BDCM) in which I have one Entity named Employee, I have followed the below tutorial for your reference
Tutorial, please click here to see

When I am deploying and making a list in sharepoint site then I am getting this error

Unable to display this Web Part. To troubleshoot the problem, open
this Web page in a Microsoft SharePoint Foundation-compatible HTML
editor such as Microsoft SharePoint Designer. If the problem persists,
contact your Web server administrator.

Correlation ID:0b6e886b-a218-4658-82b2-23e82eb1fa5f

When I checked in sharepoint logs with the correlation ID it shows me this:

External Lists: Using the default Filter settings for Finder
'ReadItem'in Entity 'Employee' of EntityNamespace
'SPCheck2010CSharp2.ExternalModel1'. This will likely result in
significant performance degradation.

Please help me find out the cause for this issue.

-RHM

Found this error also in the logs:

Cannot find Property with name 'EmployeeID' on the parent object

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

要走就滚别墨迹 2024-12-26 01:36:47

我最初的猜测是这两个错误是相关的。首先,本教程看起来“ReadItem”是一个特定的查找器,而不是查找器方法。因此,请仔细检查您的 ReadItem 是否是特定的查找器,而不仅仅是查找器方法。然后检查每个方法的类型描述符,并确保在类型描述符 EmployeeID 的“Identifier”属性中设置 EmployeeID。

对于 BCS 内容类型,您几乎总是忘记设置类型描述符。

My initial guess is that the two errors are related. First, the tutorial looks like "ReadItem" is a specific finder and not a finder method. So double-check that your ReadItem is a specific finder and not just a finder method. Then check your typedescriptor for each method and make sure that EmployeeID is set in the "Identifier" property of the type descriptor EmployeeID.

With BCS content types, it's almost always that you forgot to set up the type descriptor.

无声情话 2024-12-26 01:36:47

感谢您回复我,但我解决了这个问题,EmployeeList 下的 Employee 类型描述符上的类型名未定义为项目中 DBML LINQ to SQL 文件内的“Employee”类。

希望它能帮助那里的人!

干杯:)

Thanks for getting back to me but I resolved it, the typename on the Employee type descriptor under EmployeeList was not defined to the class "Employee" which is in the project as inside the DBML LINQ to SQL file.

Hope it helps someone out there !

Cheers :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文