public void DeleteTopic(int topicId) { Do(c => { var t = c.BeginTransaction(); PayloadHelper.DeleteAll(c, t, topicId); TopicHelper.Delete(c, t, topicId); t.Commit(); }); }
public void DeletePayloads(int topicId) { Do(c => { PayloadHelper.DeleteAll(c, null, topicId); }); }
public void CreatePayload(Payload p) { Do(c => PayloadHelper.Insert(c, p)); }
public Payload GetRecord(int recId) { return(Do(c => PayloadHelper.Select(c, recId))); }
public IEnumerable <Payload> GetPayloads(string topicName, long?startTime, long?stopTime) { return(Do(c => PayloadHelper.SelectAllByTopicAndTimestamp(c, topicName, startTime, stopTime))); }
public Payload GetPayload(string topicName, long?startTime, long?stopTime) { return(Do(c => PayloadHelper.SelectAllByTopicAndTimestampLast(c, topicName, startTime, stopTime))); }