protected override void OnDelete(Entry model) { using (var cn = _db.GetConnection()) { cn.Delete <Entry>(model.Id); } }
public async Task <ImportResult> ExecuteAsync() { using (var cnSource = _sourceDb.GetConnection()) { using (var cnDest = _destDb.GetConnection()) { var sourceEntries = await GetEntriesAsync(cnSource); var destEntries = await GetEntriesAsync(cnDest); return(await ImportEntriesAsync(sourceEntries, destEntries, cnDest)); } } }