当前位置:网站首页>用户代码未处理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
边栏推荐
- 6 rules to sanitize your code
- STC8H development (15): GPIO drive Ci24R1 wireless module
- 《强化学习周刊》第57期:DL-DRL、FedDRL & Deep VULMAN
- 浅谈Numpy中的shape、reshape函数的区别
- 线段相交的应用
- SecureCRT 设置超时自动断开连接时长
- STC8H开发(十五): GPIO驱动Ci24R1无线模块
- In programming languages, the difference between remainder and modulo
- Jensen (琴生) 不等式
- 编程时请选择正确的输入法,严格区分中英文
猜你喜欢
随机推荐
TF生成均匀分布的tensor
PMP每日一练 | 考试不迷路-8.9(包含敏捷+多选)
linux定时执行sql文件[通俗易懂]
2.1.5 大纲显示问题
宝塔实测-搭建LightPicture开源图床系统
埃氏筛选法:统计素数个数
技术分享 | 接口自动化测试如何处理 Header cookie
场效应管Mosfet之雷卯Leiditech对应英飞凌Infineon
AI+医疗:使用神经网络进行医学影像识别分析
AI识万物:从0搭建和部署手语识别系统
Interpretation of the paper (DropEdge) "DropEdge: Towards Deep Graph Convolutional Networks on Node Classification"
微软Excel表格点击单元格行和列都显示颜色怎么弄?聚光灯效果设置
Referenced file contains errors 完美解决方法
APP自动化测试框架-UiAutomator2基础入门
技术分享 | 接口自动化测试之JSON Schema模式该如何使用?
ACM MM 2022 | Cloud2Sketch: Painting with clouds in the sky, AI brush strokes
STC8H Development (15): GPIO Drives Ci24R1 Wireless Module
Shanghai Konan SmartRocket series product introduction (3): SmartRocket iVerifier computer interlocking system verification tool
上海控安SmartRocket系列产品推介(三):SmartRocket iVerifier计算机联锁系统验证工具
[Implementation of the interface for adding, deleting, checking, and modifying a double-linked list]








