File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/EFCore.MySql.Json.Microsoft/Storage/ValueConversion/Internal Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -9,17 +9,17 @@ namespace Pomelo.EntityFrameworkCore.MySql.Json.Microsoft.Storage.ValueConversio
99{
1010 public class MySqlJsonMicrosoftPocoValueConverter < T > : ValueConverter < T , string >
1111 {
12- public MySqlJsonMicrosoftPocoValueConverter ( )
12+ public MySqlJsonMicrosoftPocoValueConverter ( JsonSerializerOptions jsonSerializerOptions )
1313 : base (
14- v => ConvertToProviderCore ( v ) ,
15- v => ConvertFromProviderCore ( v ) )
14+ v => ConvertToProviderCore ( v , jsonSerializerOptions ) ,
15+ v => ConvertFromProviderCore ( v , jsonSerializerOptions ) )
1616 {
1717 }
1818
19- private static string ConvertToProviderCore ( T v )
20- => JsonSerializer . Serialize ( v ) ;
19+ private static string ConvertToProviderCore ( T v , JsonSerializerOptions jsonSerializerOptions )
20+ => JsonSerializer . Serialize ( v , jsonSerializerOptions ) ;
2121
22- private static T ConvertFromProviderCore ( string v )
23- => JsonSerializer . Deserialize < T > ( v ) ;
22+ private static T ConvertFromProviderCore ( string v , JsonSerializerOptions jsonSerializerOptions )
23+ => JsonSerializer . Deserialize < T > ( v , jsonSerializerOptions ) ;
2424 }
2525}
You can’t perform that action at this time.
0 commit comments