惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
爱范儿
爱范儿
T
The Exploit Database - CXSecurity.com
量子位
T
Tailwind CSS Blog
T
Threatpost
The GitHub Blog
The GitHub Blog
AWS News Blog
AWS News Blog
云风的 BLOG
云风的 BLOG
K
Kaspersky official blog
P
Proofpoint News Feed
博客园 - 司徒正美
L
LangChain Blog
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
S
Secure Thoughts
The Last Watchdog
The Last Watchdog
Spread Privacy
Spread Privacy
H
Hacker News: Front Page
T
Troy Hunt's Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
W
WeLiveSecurity
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Proofpoint News Feed
T
Tor Project blog
T
The Blog of Author Tim Ferriss
I
Intezer
P
Privacy & Cybersecurity Law Blog
美团技术团队
N
Netflix TechBlog - Medium
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost
Application and Cybersecurity Blog
Application and Cybersecurity Blog
G
Google Developers Blog
Attack and Defense Labs
Attack and Defense Labs
T
Tenable Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
Last Week in AI
Last Week in AI

博客园 - 我家的木子

asp-for tag helper失效 jQuery获取属性 SVN提交修改时出现:Checksum mismatch bat笔记 SEO笔记:构建URL的15个SEO最佳实践 SEO笔记:Anatomy of a URL 妙用Excel数据透视表和透视图向导,将二维数据转换为一维数据 安装WIN7时提示“缺少所需的CD/DVD驱动器设备驱动程序” YTD易出现断层问题,请注意! Xcel 测试版使用手册 Office2003与Office2007默认打开方式的切换 - 我家的木子 - 博客园 对 Office VBA 项目的编程访问被拒绝 SharePoint 2007:该表单无法显示,因为会话状态不可用。 - 我家的木子 - 博客园 将数据库查询结果导出为Excel css滤镜实现页面灰色黑白色效果代码 div最低高度设置 - 我家的木子 - 博客园 Ajax联动之后 js 跨行文本出现“未结束的字符串常量”问题,如何解决 - 我家的木子 - 博客园 回发或者回调参数无效 - 我家的木子 - 博客园
EF code first:列名 'Discriminator' 无效
我家的木子 · 2017-07-24 · via 博客园 - 我家的木子

使用EF code first编写类继承的时候,出现列名 'Discriminator' 无效 。

字段中没有列名 'Discriminator' 

原来在代码中,定义了一个类A,类B,B继承A,但是数据库中不存在B表,项目中只是用于ViewModel的定义而已。

此时,需要做的是,解除B表的映射。

[NotMapped]
    public class B : A
    {
//to do something
    }