|
@@ -49,7 +49,7 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
|
|
|
db.SaveChanges();
|
|
|
|
|
|
- var configVaule = db.MachineConfigure.Where(x => x.ChargeBoxId == session.ChargeBoxId && x.ConfigureName == StandardConfiguration.HeartbeatInterval)
|
|
|
+ var configVaule = db.MachineConfiguration.Where(x => x.ChargeBoxId == session.ChargeBoxId && x.ConfigureName == StandardConfiguration.HeartbeatInterval)
|
|
|
.Select(x => x.ConfigureSetting).FirstOrDefault();
|
|
|
|
|
|
if (configVaule != null)
|
|
@@ -499,7 +499,7 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
|
|
|
if (_confirm.status == Packet.Messages.SubTypes.ConfigurationStatus.Accepted || _confirm.status == Packet.Messages.SubTypes.ConfigurationStatus.RebootRequired)
|
|
|
{
|
|
|
- var configure = db.MachineConfigure.Where(x => x.ChargeBoxId == session.ChargeBoxId).ToList();
|
|
|
+ var configure = db.MachineConfiguration.Where(x => x.ChargeBoxId == session.ChargeBoxId).ToList();
|
|
|
|
|
|
var foundConfig = configure.Find(x => x.ConfigureName == _request.key);
|
|
|
if (foundConfig != null)
|
|
@@ -509,7 +509,7 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- db.MachineConfigure.Add(new MachineConfigure()
|
|
|
+ db.MachineConfiguration.Add(new MachineConfiguration()
|
|
|
{
|
|
|
ChargeBoxId = session.ChargeBoxId,
|
|
|
ConfigureName = _request.key,
|
|
@@ -530,7 +530,7 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
|
|
|
using (var db = new MainDBContext())
|
|
|
{
|
|
|
- var configure = db.MachineConfigure.Where(x => x.ChargeBoxId == session.ChargeBoxId).ToList();
|
|
|
+ var configure = db.MachineConfiguration.Where(x => x.ChargeBoxId == session.ChargeBoxId).ToList();
|
|
|
|
|
|
if (_confirm.configurationKey != null)
|
|
|
{
|
|
@@ -544,7 +544,7 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- db.MachineConfigure.Add(new MachineConfigure()
|
|
|
+ db.MachineConfiguration.Add(new MachineConfiguration()
|
|
|
{
|
|
|
ChargeBoxId = session.ChargeBoxId,
|
|
|
ConfigureName = item.key,
|
|
@@ -568,7 +568,7 @@ namespace EVCB_OCPP.WSServer.Message
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- db.MachineConfigure.Add(new MachineConfigure()
|
|
|
+ db.MachineConfiguration.Add(new MachineConfiguration()
|
|
|
{
|
|
|
ChargeBoxId = session.ChargeBoxId,
|
|
|
ConfigureName = item
|