动态数据站点不按 nchar 字段进行过滤
我有 2 个表,它们通过 nchar 类型的字段具有外键关系。
数据库设计器成功创建了关系并将其显示在数据库图表上。但创建的实体模型没有这种关系,因此动态数据站点不允许通过该参数进行自动过滤。
是否可以强制将该关系映射到实体数据模型?
如果不是,如何在该字段上应用过滤器?
I have 2 tables that have a foreign-key relationship through the field that has nchar type.
Database designer successfully created relationship and displays it on database diagram. But entity model created doesn't have this relationship, and as a result dynamic data site doesn't allow automated filtering by that parameter.
Is it possible to force that relationship be mapped to entity data model?
If no, how to apply filter on that field?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Dav 检查您的外表是否有主键。我遇到了同样的问题,但在将主键添加到外部后它得到了解决。请尝试一次。
如果您仍然遇到问题,您可以使用 FilterUIHint 注释来完成此操作。
Dav Check if your foreign table have primary key or not. I faced same problem but after adding primary key to foreign it got resolved. Please try once.
If still you are facing problem you can use FilterUIHint annotation to do it.