|
@@ -576,7 +576,7 @@ internal partial class ProfileHandler
|
|
|
|
|
|
db.TransactionRecord.Add(_newTransaction);
|
|
|
|
|
|
- db.SaveChanges();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
t4 = timer.ElapsedMilliseconds;
|
|
|
|
|
|
_transactionId = _newTransaction.Id;
|
|
@@ -713,8 +713,8 @@ internal partial class ProfileHandler
|
|
|
}
|
|
|
|
|
|
|
|
|
- //db.SaveChanges();
|
|
|
- db.SaveChanges();
|
|
|
+ //await db.SaveChangesAsync();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
|
|
|
|
|
|
if (session.IsBilling)
|
|
@@ -903,7 +903,7 @@ internal partial class ProfileHandler
|
|
|
operation.Status = 1;//電樁有回覆
|
|
|
operation.EVSE_Status = (int)_confirm.status;
|
|
|
operation.EVSE_Value = string.IsNullOrEmpty(_confirm.data) ? "" : _confirm.data;
|
|
|
- db.SaveChanges();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
}
|
|
|
|
|
|
if (_request.messageId == "ID_FirmwareVersion")
|
|
@@ -916,7 +916,7 @@ internal partial class ProfileHandler
|
|
|
db.Machine.Attach(machine);
|
|
|
machine.BoardVersions = _confirm.data;
|
|
|
db.Entry(machine).Property(x => x.BoardVersions).IsModified = true;
|
|
|
- db.SaveChanges();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1149,7 +1149,7 @@ internal partial class ProfileHandler
|
|
|
db.Entry(tx).Property(x => x.Receipt).IsModified = true;
|
|
|
db.Entry(tx).Property(x => x.BillingDone).IsModified = true;
|
|
|
|
|
|
- db.SaveChanges();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
|
|
|
await mainDbService.AddServerMessage(
|
|
|
ChargeBoxId: session.ChargeBoxId,
|
|
@@ -1308,7 +1308,7 @@ internal partial class ProfileHandler
|
|
|
operation.Status = 1;//電樁有回覆
|
|
|
operation.EVSE_Status = (int)_confirm.status;
|
|
|
operation.EVSE_Value = _confirm.status.ToString();
|
|
|
- db.SaveChanges();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1329,7 +1329,7 @@ internal partial class ProfileHandler
|
|
|
operation.Status = 1;//電樁有回覆
|
|
|
operation.EVSE_Status = (int)_confirm.status;
|
|
|
operation.EVSE_Value = _confirm.status.ToString();
|
|
|
- db.SaveChanges();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1350,7 +1350,7 @@ internal partial class ProfileHandler
|
|
|
operation.Status = 1;//電樁有回覆
|
|
|
operation.EVSE_Status = (int)_confirm.status;
|
|
|
operation.EVSE_Value = _confirm.status.ToString();
|
|
|
- db.SaveChanges();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1371,7 +1371,7 @@ internal partial class ProfileHandler
|
|
|
operation.Status = 1;//電樁有回覆
|
|
|
operation.EVSE_Status = (int)_confirm.status;
|
|
|
operation.EVSE_Value = _confirm.status.ToString();
|
|
|
- db.SaveChanges();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1392,7 +1392,7 @@ internal partial class ProfileHandler
|
|
|
operation.Status = 1;//電樁有回覆
|
|
|
operation.EVSE_Status = (int)_confirm.status;
|
|
|
operation.EVSE_Value = _confirm.status.ToString();
|
|
|
- db.SaveChanges();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1438,7 +1438,7 @@ internal partial class ProfileHandler
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
- db.SaveChanges();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1532,7 +1532,7 @@ internal partial class ProfileHandler
|
|
|
|
|
|
}
|
|
|
|
|
|
- db.SaveChanges();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -1558,7 +1558,7 @@ internal partial class ProfileHandler
|
|
|
operation.Status = 1;//電樁有回覆
|
|
|
operation.EVSE_Status = (int)_confirm.status;
|
|
|
operation.EVSE_Value = _confirm.status.ToString();
|
|
|
- db.SaveChanges();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1613,7 +1613,7 @@ internal partial class ProfileHandler
|
|
|
operation.Status = 1;//電樁有回覆
|
|
|
operation.EVSE_Status = (int)255;//錯誤
|
|
|
operation.EVSE_Value = errorMsg;
|
|
|
- db.SaveChanges();
|
|
|
+ await db.SaveChangesAsync();
|
|
|
}
|
|
|
|
|
|
}
|