当前位置:网站首页>用户代码未处理MetadataException
用户代码未处理MetadataException
2022-08-09 21:44:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
最近在用EF搭框架的过程中,遇到了很多问题,大部分都是出现在配置文件中,比如说下面这个问题:
问题描述:error 0152: No Entity Framework provider found for the ADO.NET provider with invariant name ‘MySql.Data.MySqlClient’. Make sure the provider is registered in the ‘entityFramework’ section of the application config file。
这么长的问题,刚开始看都晕了。仔细看就是少了“MySql.Data.MySqlClient”的provider,于是到配置文件中去查找,发现确实没有相关内容。
<entityFramework>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>仔细观察会发现这个是SQL Server的。
经过查资料发现出现问题的原因应该是缺少了MySql的引用,添加上引用后就解决啦!不过感觉这还不是出现问题的根本原因,等弄明白了再来完善。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/105737.html原文链接:https://javaforall.cn
边栏推荐
- Excel如何打出正负号?Excel打出正负号的方法
- Pagoda measurement - building LightPicture open source map bed system
- 凸集与凸函数
- STC8H开发(十五): GPIO驱动Ci24R1无线模块
- “稚晖君”为2022昇腾AI创新大赛打call&nbsp;期待广大开发者加入
- laravel 表迁移报错[通俗易懂]
- 宝塔实测-搭建LightPicture开源图床系统
- 从产品角度看 L2 应用:为什么说这是一个游乐场?
- SQLi-LABS Page-2 (Adv Injections)
- Endpoint mode for NetCore routing
猜你喜欢

Sudoku | Backtrack-7
![[Implementation of the interface for adding, deleting, checking, and modifying a double-linked list]](/img/49/ebedcd4d27aa608360ac17e504f36d.png)
[Implementation of the interface for adding, deleting, checking, and modifying a double-linked list]

2022 首期线下 Workshop!面向应用开发者们的数据应用体验日来了 | TiDB Workshop Day

How to Make Your Company Content GDPR Compliant

Word箭头上面怎么打字

TF生成均匀分布的tensor

PMP每日一练 | 考试不迷路-8.9(包含敏捷+多选)

Word文档怎么输入无穷大符号∞

上海控安SmartRocket系列产品推介(三):SmartRocket iVerifier计算机联锁系统验证工具

小黑leetcode清爽雨天之旅,刚吃完宇飞牛肉面、麻辣烫和啤酒:112. 路径总和
随机推荐
6 rules to sanitize your code
筑牢安全防线 鹤壁经济技术开发区开展安全生产培训
json事例
random.normal() and random.truncated_normal() in TF
AI+Medical: Using Neural Networks for Medical Image Recognition and Analysis
Word怎么设置图片衬于文字下方?两种方法教你设置Word图片衬于文字下方
论文解读(DropEdge)《DropEdge: Towards Deep Graph Convolutional Networks on Node Classification》
Install win virtual machine on VMware
SecureCRT sets the timeout period for automatic disconnection
5个 Istio 访问外部服务流量控制最常用的例子,你知道几个?
TF使用constant生成数据
万字总结:分布式系统的38个知识点
ACM MM 2022 | Cloud2Sketch: Painting with clouds in the sky, AI brush strokes
编程语言中,取余和取模的区别
PMP每日一练 | 考试不迷路-8.8(包含敏捷+多选)
什么是源文件?
UML类图五种关系的代码实现[通俗易懂]
场效应管Mosfet之雷卯Leiditech对应英飞凌Infineon
小黑leetcode清爽雨天之旅,刚吃完宇飞牛肉面、麻辣烫和啤酒:112. 路径总和
TF uses constant to generate data