private static DataSourceVersion GetSourceVersion(Stream versionFileStream) { using (var versionReader = new DataSourceVersionReader(versionFileStream)) { var version = versionReader.GetVersion(); return(version); } }
public static DataSourceVersion GetSourceVersion(string versionFileName) { if (!File.Exists(versionFileName)) { throw new FileNotFoundException(versionFileName); } using (var versionReader = new DataSourceVersionReader(versionFileName)) { var version = versionReader.GetVersion(); return(version); } }