public static DBExport PatchRead(string fileName) { string dbfile = null; DBExport export = null; var path = Path.Combine(Helper.GetDirectory(), Path.GetFileNameWithoutExtension(fileName)); if (Helper.ReadZip(fileName, path)) { var files = Directory.GetFiles(path); foreach (var file in files) { if (file.EndsWith("xml", StringComparison.OrdinalIgnoreCase)) { export = Serialization.Deserialize(file) as DBExport; } if (file.EndsWith("sdb", StringComparison.OrdinalIgnoreCase)) { dbfile = file; } } export.Source.Connection.Host = dbfile; } return(export); }
public DBETableList(DBExport export) { Export = export; }