public JsonSyncingFeed GetJsonSyncingFeed(long feedId) { var row = SyncingFeeds.Query("WHERE FeedId = " + feedId).FirstOrDefault(); if (row == null) { return(null); } var state = SQLiteJsonConverter.LoadFromJson <JsonSyncingFeed>(row.Json); return(state); }
public int GetObjectVersion(string objectName) { if (!Versions.DoesTableExist()) { return(0); } var row = Versions.Query("WHERE ObjectName = '" + objectName + "'").FirstOrDefault(); if (row == null) { return(0); } return(row.Version); }