修复bug
This commit is contained in:
@@ -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 =>
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace WMS.Web.Repositories
|
||||
_transaction.Commit();
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
catch(Exception ex)
|
||||
{
|
||||
if (_transaction != null)
|
||||
_transaction.Rollback();
|
||||
|
||||
Reference in New Issue
Block a user