We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e0b1df commit 3d6ee61Copy full SHA for 3d6ee61
vtb.backend/SqlAnalyzer.Api/Dal/DataContext.cs
@@ -40,7 +40,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
40
entity.Property(x => x.ExplainResult)
41
.HasConversion(
42
w => JsonSerializer.Serialize(w, JsonSerializerOptions.Default),
43
- w => JsonSerializer.Deserialize<ExplainRootPlan>(w, JsonSerializerOptions.Default)!)
+ w => string.IsNullOrEmpty(w) ? null : JsonSerializer.Deserialize<ExplainRootPlan?>(w, JsonSerializerOptions.Default))
44
.HasColumnType("text"));
45
46
modelBuilder.Entity<QueryAnalysisResult>(entity =>
0 commit comments