修复bug

This commit is contained in:
18942506660
2023-12-29 14:46:39 +08:00
parent 38f9633191
commit 2e2806c3b0
3 changed files with 6 additions and 4 deletions

View File

@@ -49,6 +49,11 @@ namespace WMS.Web.Repositories.Configuration
{
ent.ToTable("t_wms_movebox_record");
ent.HasKey(x => x.Id);
ent.HasMany(p => p.Details)
.WithOne()
.HasForeignKey(p => p.Fid)
.OnDelete(DeleteBehavior.Cascade);
});
//移箱明细
builder.Entity<MoveBoxRecordDetails>(ent =>

View File

@@ -101,7 +101,7 @@ namespace WMS.Web.Repositories
_transaction.Commit();
return true;
}
catch
catch(Exception ex)
{
if (_transaction != null)
_transaction.Rollback();