Skip to content

Net10 引用 1.1.0的包,操作Mysql(Pomelo.EntityFrameworkCore.MySql) 会引发版本冲突 #760

Description

@Sky-nt

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):

Image Image

具体异常:
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions