public static IUtility Instance(UtilityType type, DBArtifact db) { switch (type) { case UtilityType.Backup: return(new BackupUtility(db)); case UtilityType.Restore: return(new RestoreUtility(db)); default: throw new NotImplementedException(); } }
public RestoreUtility(DBArtifact db) { _db = db; }
public BackupUtility(DBArtifact db) { _db = db; }