public MigrationScheme GetPreviousScheme() { if (File.Exists(PreviousSnapshotFileName)) { var previous_snapshot_string = File.ReadAllText(PreviousSnapshotFileName); return(MigrationScheme.Deserialize(previous_snapshot_string)); } else { return(new MigrationScheme()); // empty configuration } }
public MigrationScheme Clone() { return(MigrationScheme.Deserialize(this.Serialize())); }