This commit is contained in:
tongfei
2024-04-19 09:40:08 +08:00
parent 19a98126a0
commit 07836e4ec6

View File

@@ -275,6 +275,13 @@ namespace WMS.Web.Repositories.Configuration
{
ent.ToTable("t_erp_instock_task_box_details");
ent.HasKey(x => x.Id);
ent.Property(f => f.SerialNumbers).HasConversion(
v => JsonConvert.SerializeObject(v),
v => JsonConvert.DeserializeObject<List<string>>(v),
new ValueComparer<List<string>>(
(c1, c2) => c1.SequenceEqual(c2),
c => c.Aggregate(0, (a, v) => HashCode.Combine(a, v.GetHashCode())),
c => (List<string>)c.ToList()));
});
#endregion