增加订阅通知

This commit is contained in:
18942506660
2024-03-26 15:32:17 +08:00
parent df821329ef
commit f355f35733
15 changed files with 960 additions and 0 deletions

View File

@@ -375,7 +375,20 @@ namespace WMS.Web.Repositories.Configuration
ent.ToTable("t_wms_materials");
ent.HasKey(x => x.Id);
});
//订阅通知
builder.Entity<SubscribeNotification>(ent =>
{
ent.ToTable("t_wms_subscribe_notification");
ent.HasKey(x => x.Id);
ent.Property(f => f.Telephones).HasConversion(
v => JsonConvert.SerializeObject(v),
v => JsonConvert.DeserializeObject<List<string>>(v));
ent.Property(f => f.Emails).HasConversion(
v => JsonConvert.SerializeObject(v),
v => JsonConvert.DeserializeObject<List<string>>(v));
});
base.OnModelCreating(builder);
}
@@ -413,5 +426,6 @@ namespace WMS.Web.Repositories.Configuration
public DbSet<Box> Box { get; set; }
public DbSet<BoxDetails> BoxDetails { get; set; }
public DbSet<SubscribeNotification> SubscribeNotification { get; set; }
}
}