当前位置:网站首页>用户代码未处理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
边栏推荐
- Deceptive Dice
- CVPR22 Oral | shunt through multi-scale token polymerization from attention, code is open source
- AI+Medical: Using Neural Networks for Medical Image Recognition and Analysis
- 角度和弧度的相互换算
- Simple questions peek into mathematics
- 如何让您的公司内容满足 GDPR 合规性
- 微软Excel表格点击单元格行和列都显示颜色怎么弄?聚光灯效果设置
- json事例
- 技术分享 | 接口自动化测试如何处理 Header cookie
- 微软word怎么转换成pdf文件?微软word转换为pdf格式的方法
猜你喜欢
Word第一页空白页怎么删除?删除Word第一页空白页方法教程
Synchronization lock synchronized traces the source
CVPR22 Oral|通过多尺度token聚合分流自注意力,代码已开源
PMP每日一练 | 考试不迷路-8.9(包含敏捷+多选)
《强化学习周刊》第57期:DL-DRL、FedDRL & Deep VULMAN
4D Summary: 38 Knowledge Points of Distributed Systems
Bean生命周期
AI Knows Everything: Building and Deploying a Sign Language Recognition System from Zero
Optimization of SQL Statements and Indexes
Word怎么设置图片衬于文字下方?两种方法教你设置Word图片衬于文字下方
随机推荐
Tensorflow中placeholder函数的用法
PMP每日一练 | 考试不迷路-8.9(包含敏捷+多选)
单元测试
论文解读(DropEdge)《DropEdge: Towards Deep Graph Convolutional Networks on Node Classification》
json case
L3-2 至多删三个字符 (30 分)
POWER SOURCE ETA埃塔电源维修FHG24SX-U概述
Ehrlich screening method: Counting the number of prime numbers
unit test
角度和弧度的相互换算
TF中random.normal()与random.truncated_normal()
AI+医疗:使用神经网络进行医学影像识别分析
SecureCRT强制卸载
面试官:MySQL 中 update 更新,数据与原数据相同时会执行吗?大部分人答不上来!
Deceptive Dice(期望计算)
小黑leetcode清爽雨天之旅,刚吃完宇飞牛肉面、麻辣烫和啤酒:112. 路径总和
【双链表增删查改接口的实现】
凸集与凸函数
Multiple reasons for MySQL slow query
消防安全培训|“蓝朋友”,开课了!