Description
我在项目中引用了1.1.0版本的Nuget包,在操作数据库的时候引发了异常
经排查我发现
Masa.Contrib.Data.EFCore.Pomelo.MySql 1.1.0 的要求是
Microsoft.EntityFrameworkCore.Relational ≥ 10.0.5
Pomelo.EntityFrameworkCore.MySql ≥ 9.0.0
我按照你们的文档 引用了10.0.5的EF相关包,如下:
运行后仍然报错,最后将MASA版本降至1.0.0引用 9.0.5版本的EF才没有报错。
具体引用情况如下(正常版,引发异常的情况是把版本号改为 1.1.0 和 10.0.5):
具体异常:
Unable to create a 'DbContext' of type 'XXXDbContext'. The exception 'Method not found: 'System.String Microsoft.EntityFrameworkCore.Diagnostics.AbstractionsStrings.ArgumentIsEmpty(System.Object)'.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
AI解析:
Reproduction Steps
No response
Expected behavior
No response
Actual behavior
No response
Known Workarounds
No response
.NET version
10.0.5
MASA Framework version
1.1.0
Other information
No response
Description
我在项目中引用了1.1.0版本的Nuget包,在操作数据库的时候引发了异常
经排查我发现
Masa.Contrib.Data.EFCore.Pomelo.MySql 1.1.0 的要求是
Microsoft.EntityFrameworkCore.Relational ≥ 10.0.5
Pomelo.EntityFrameworkCore.MySql ≥ 9.0.0
我按照你们的文档 引用了10.0.5的EF相关包,如下:
运行后仍然报错,最后将MASA版本降至1.0.0引用 9.0.5版本的EF才没有报错。
具体引用情况如下(正常版,引发异常的情况是把版本号改为 1.1.0 和 10.0.5):
具体异常:
Unable to create a 'DbContext' of type 'XXXDbContext'. The exception 'Method not found: 'System.String Microsoft.EntityFrameworkCore.Diagnostics.AbstractionsStrings.ArgumentIsEmpty(System.Object)'.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
AI解析:
Reproduction Steps
No response
Expected behavior
No response
Actual behavior
No response
Known Workarounds
No response
.NET version
10.0.5
MASA Framework version
1.1.0
Other information
No response