为什么我不能通过EDM设计器在每层次表映射中的继承类上创建NavigationProperty? [英] Why can't I create a NavigationProperty on an inherited class in a Table-per-Hierarchy mapping via the EDM designer?

查看:105
本文介绍了为什么我不能通过EDM设计器在每层次表映射中的继承类上创建NavigationProperty?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,

我有一个每层次表映射,并且该表具有模型引入的可选FK关联。在一个继承的类中,我想要表示使用它的NavigationProperty然而,对于设计者而言,这似乎是不可能的,因为我无法编辑继承类的关联。执行此操作的最佳方法是什么?

Greetings,

I have a Table-per-Hierarchy mapping, and the table has optional FK associations which the model brought in. In an inherited class, I want to surface the NavigationProperty which uses this association, however, this appears to be impossible with the designer, since I can't edit the association to be on the inherited class. What is the best approach to do this?

推荐答案

只需删除关联并按照您希望的方式重新创建它。
Just delete the association and recreate it the way you want it.


这篇关于为什么我不能通过EDM设计器在每层次表映射中的继承类上创建NavigationProperty?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆