public FileReleaseInfo(string path, string fileName, Version version, byte[] hash, BundleInfo bundle,
     RegisteredProjectInfo project)
 {
     Path = path;
     FileName = fileName;
     Version = version;
     Hash = hash;
     Bundle = bundle;
     Project = project;
 }
 public ProjectInstallInfo(RegisteredProjectInfo projectInfo, List<BundleInfo> bundlesApplied, List<BundleInfo> possibleBundlesApplied)
 {
     ProjectVersionInfo = projectInfo;
     BundlesApplied = bundlesApplied;
     PossibleBundlesApplied = possibleBundlesApplied;
 }
        internal long InsertProjectRecord(RegisteredProjectInfo project)
        {
            const string PROJECT_INSERT = "INSERT INTO PROJECT " +
                "(NAME, BACKUPFILENAME, MAJORVERSION, MINORVERSION, BUILD, REVISION) " +
                "VALUES('{0}', '{1}', {2}, {3}, {4}, {5})";

            using (var connection = GetOpenConnection())
            {
                ExecuteNonQuery(string.Format(PROJECT_INSERT,
                    project.Name,
                    project.BackupFileName,
                    project.Version.Major,
                    project.Version.Minor,
                    project.Version.Build,
                    project.Version.Revision),
                    connection);

                return GetLastInsertId(connection);
            }
        }