如何修复错误“无效的列名称识别器” [英] How Can I Fix The Error "Invalid Column Name Discriminator"

查看:76
本文介绍了如何修复错误“无效的列名称识别器”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何修复错误实体框架中的无效列名识别器数据库第一种方法..





在此先感谢.. :)

How can i fix the error Invalid column name discriminator in entity framework database first approach..


Thanks in Advance..:)

推荐答案

有相当多的谷歌搜索结果有可能修复。这是你必须要解决的问题,因为不仅有一个修复。



但是,我建议从这篇文章开始: http://stackoverflow.com/questions/6553935/ef-code-first- invalid-column-name-discriminator-but-no-inheritance [ ^ ]
There are quite a few google results that have potential fixes. It's something you'll have to troubleshoot on your end since there is not just one fix.

However, I suggest starting with this article: http://stackoverflow.com/questions/6553935/ef-code-first-invalid-column-name-discriminator-but-no-inheritance[^]


这不是一个简单的主题,在解决我自己的问题时,我出现了以下文章解释了各种可能的类型映射。它可能有助于诊断找到此页面的人的不同场景和可能的修复:



实体框架Fluent API - 配置和映射属性和类型 [ ^ ]
This is not a simple subject and while troubleshooting my own issue, I came up with the article below, which explains the various possible type mappings. It may help to diagnose the different scenarios and possible fixes for people who find this page:

Entity Framework Fluent API - Configuring and Mapping Properties and Types[^]


这篇关于如何修复错误“无效的列名称识别器”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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