Пример #1
0
 public static string DeleteQuery(ControlQueue control)
 => $"DELETE FROM `controlqueue` WHERE  `controlQueueId`={control.ControlQueueId};";
Пример #2
0
 public static string UpdateQuery(ControlQueue control)
 => $"UPDATE `controlqueue` SET `value`='{control.Value}', `insertedAt`='{control.InsertedAt.ToString("u")}' WHERE  `controlQueueId`={control.ControlQueueId};";
Пример #3
0
 public static string InsertQuery(ControlQueue control)
 => $"INSERT INTO `controlqueue` (`controlId`, `value`, `insertedAt`) VALUES ('{control.ControlId}', '{control.Value}', '{control.InsertedAt.ToString("u")}');";