From 4b5309d6a005325aac07536b81dbeffccd4e7b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BE=E5=B0=8F=E5=83=A7?= Date: Wed, 13 Nov 2024 15:36:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=8A=20=E4=BF=AE=E5=A4=8D=20`.NET=209.0?= =?UTF-8?q?`=20=E7=89=88=E6=9C=AC=E7=9A=84=20`EFCore`=20=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=20#IB41YD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DatabaseProviderServiceCollectionExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Furion/DatabaseAccessor/Extensions/DatabaseProvider/DatabaseProviderServiceCollectionExtensions.cs b/framework/Furion/DatabaseAccessor/Extensions/DatabaseProvider/DatabaseProviderServiceCollectionExtensions.cs index d35a29fe8a8..fda84cdf98b 100644 --- a/framework/Furion/DatabaseAccessor/Extensions/DatabaseProvider/DatabaseProviderServiceCollectionExtensions.cs +++ b/framework/Furion/DatabaseAccessor/Extensions/DatabaseProvider/DatabaseProviderServiceCollectionExtensions.cs @@ -310,7 +310,7 @@ static DatabaseProviderServiceCollectionExtensions() { var optionsType = options.GetType(); - optionsType.GetMethod("MigrationsAssembly") + optionsType.GetMethods(BindingFlags.Instance | BindingFlags.Public).FirstOrDefault(u => u.GetParameters().Length == 1 && u.GetParameters().First().ParameterType == typeof(string)) .Invoke(options, new[] { Db.MigrationAssemblyName }); // 解决 MySQL/SqlServer/PostgreSQL 有时候出现短暂连接失败问题(v4.8.1.7 版本关闭)