public void SetServerData(ServerEvents ServerEvents) { if (conn == null) { return; } asc.SetData(ServerEvents, conn); }
private void OutputNotification(ChangeType changeType, ServerEvents entity) { MessageEvent?.Invoke(changeType, entity); }
public void SetData(ServerEvents dbr, SqlConnection conn) { IDbConnection ics = conn; ics.Execute($"INSERT INTO ServerEvents (ServerEventType, ID, Date,Direct,Info) VALUES ('{dbr.ServerEventType}', '{dbr.ID}', '{dbr.Date}', '{dbr.Direct}', '{dbr.Info}')"); }