diff --git a/src/Infrastructure/Masa.Alert.EntityFrameworkCore/EntityTypeConfigurations/AlarmRuleConfiguration.cs b/src/Infrastructure/Masa.Alert.EntityFrameworkCore/EntityTypeConfigurations/AlarmRuleConfiguration.cs index 04f1c5f7..6c2f0980 100644 --- a/src/Infrastructure/Masa.Alert.EntityFrameworkCore/EntityTypeConfigurations/AlarmRuleConfiguration.cs +++ b/src/Infrastructure/Masa.Alert.EntityFrameworkCore/EntityTypeConfigurations/AlarmRuleConfiguration.cs @@ -14,7 +14,7 @@ public void Configure(EntityTypeBuilder builder) builder.Property(x => x.ChartYAxisUnit).HasMaxLength(128); builder.Property(x => x.TotalVariable).HasMaxLength(64); builder.Property(x => x.Source).IsRequired().HasMaxLength(40).HasDefaultValue(string.Empty); - builder.Property(x => x.Show).HasDefaultValue(true).IsRequired(); + builder.Property(x => x.Show).HasDefaultValue(true).IsRequired().ValueGeneratedNever(); builder.OwnsMany(x => x.LogMonitorItems, b => { b.ToTable(AlertConsts.DB_TABLE_PREFIX + "AlarmRuleLogMonitors", AlertConsts.DB_SCHEMA);