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

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

博客园 - darkblue

mysql官方资源 MYSQL时间查询相关 mysql-用户管理 mysql备份还原 水液代谢与五脏调节 津液 献给成长中的孩子们 oracle--v$lock type字段详解 iis日志字段解析 Asp.net Core学习文章 连接sqlexpress mysql-root本地无法登录处理 阿里云乌班图16配置-PHP环境(包括mysql及apache安装) mysql主从复制跳过错误 64位系统下powerdesigner15连接oracle odbc 解决“指定的服务已经标记为删除”问题 mysql系列-安装及服务启动 数据缓存管理 redis-在乌班图下设置自动启动
如何让vs2017 EF实体生成支持Mysql 和 Oracle?
darkblue · 2017-11-29 · via 博客园 - darkblue

1.Mysql

安装   MySql Connector/Net        https://dev.mysql.com/downloads/connector/net/

安装    mysql for visualstudio         https://dev.mysql.com/downloads/windows/visualstudio/

安装时entity framwork相关的选项一定要选。

如果还不行的话执行一下 .\devenv.exe /setup

项目中 添加最新版本MySql.Data 、MySql.Data.Enity包。

 ----问题处理

 'System.Data.StrongTypingException: The value for column 'IsPrimaryKey' in table 'TableDetails' is DBNull . ---> System.InvalidCastException: Specified cast is not valid.

 --- 

1. Open Services (services.msc) and restart MySQL57 service.
2. Execute the following commands in MySQL.
   use <<database name>>;
   set global optimizer_switch='derived_merge=OFF';
3. Update the .edmx.

2.Oracle

安装ODTWithODAC

如果需要,安装odt for vs2017

---问题处理

 --vs2017闪退  

     用oui卸载安装的相关oracle文件及目录