File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/Components/Aspire.Pomelo.EntityFrameworkCore.MySql Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 9999 <PackageVersion Include =" Polly" Version =" 8.3.0" />
100100 <PackageVersion Include =" Polly.Core" Version =" 8.3.0" />
101101 <PackageVersion Include =" Polly.Extensions" Version =" 8.3.0" />
102- <PackageVersion Include =" Pomelo.EntityFrameworkCore.MySql" Version =" 8.0.0-beta.2 " />
102+ <PackageVersion Include =" Pomelo.EntityFrameworkCore.MySql" Version =" 8.0.1 " />
103103 <PackageVersion Include =" RabbitMQ.Client" Version =" 6.8.1" />
104104 <PackageVersion Include =" StackExchange.Redis" Version =" 2.7.27" />
105105 <PackageVersion Include =" Swashbuckle.AspNetCore" Version =" 6.5.0" />
Original file line number Diff line number Diff line change @@ -62,7 +62,13 @@ public static partial class AspireEFMySqlExtensions
6262
6363 if ( builder . Configuration . GetConnectionString ( connectionName ) is string connectionString )
6464 {
65- settings . ConnectionString = connectionString ;
65+ // apply the settings that Pomelo EF Core requires
66+ var connectionStringBuilder = new MySqlConnectionStringBuilder ( connectionString )
67+ {
68+ AllowUserVariables = true ,
69+ UseAffectedRows = false ,
70+ } ;
71+ settings . ConnectionString = connectionStringBuilder . ConnectionString ;
6672 }
6773
6874 configureSettings ? . Invoke ( settings ) ;
You can’t perform that action at this time.
0 commit comments