yangzhongke / Zack.EFCore.Batch

Deleting or Updating multiple records from a LINQ Query in a SQL statement without loading entities
GNU General Public License v3.0
590 stars 85 forks source link

8.0是还不能用吗? #126

Closed dfengpo closed 9 months ago

dfengpo commented 9 months ago

region 程序集 Zack.EFCore.Batch.MySQL.Pomelo_NET8, Version=8.1.8.0, Culture=neutral, PublicKeyToken=null

// C:\Users\birdf.nuget\packages\zack.efcore.batch.mysql.pomelo_net8\8.1.8\lib\net8.0\Zack.EFCore.Batch.MySQL.Pomelo_NET8.dll // Decompiled with ICSharpCode.Decompiler 8.1.1.7464

endregion

using Zack.EFCore.Batch_NET7;

namespace Microsoft.EntityFrameworkCore;

public static class DbContextOptionsBuilderExtension_MySQLPomelo { public static DbContextOptionsBuilder UseBatchEF_MySQLPomelo(this DbContextOptionsBuilder optBuilder) { throw ExceptionHelpers.CreateBatchNotSupportException_InEF7(); } }

yangzhongke commented 9 months ago

https://github.com/yangzhongke/Zack.EFCore.Batch/blob/main/README_CN_NET7.md

dfengpo commented 9 months ago

https://github.com/yangzhongke/Zack.EFCore.Batch/blob/main/README_CN_NET7.md

这个链接说明我看了,我就是要用插入功能。我的疑问是efcore8项目为什么命名空间还是using Zack.EFCore.Batch_NET7; 调用UseBatchEF_MySQLPomelo();注册时,使用Add-Migration迁移命令报错了。 然后查看引用直接导航到以下方法了: public static DbContextOptionsBuilder UseBatchEF_MySQLPomelo(this DbContextOptionsBuilder optBuilder) { throw ExceptionHelpers.CreateBatchNotSupportException_InEF7(); }

是我哪里引用不对吗?

yangzhongke commented 9 months ago

只用插入功能的话,不用调用UseBatchEF_MySQLPomelo