public void Save(IReadOnlyList <MigrationRecord> records) { EnsureTable(); foreach (var record in records) { TruncateLogIfRequired(record); var exists = _database.Exists <MigrationRecord>(record.Version); if (exists) { _database.Update(record); } else { _database.Insert(record); } } }
public bool OperationExists(int operationId) { var exists = db.Exists <LatchOperation>(operationId); return(exists); }