增加订阅通知
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user