Пример #1
0
 public void AddToPackages(PublishedPackage publishedPackage)
 {
     base.AddObject("Packages", publishedPackage);
 }
Пример #2
0
 public static PublishedPackage CreatePublishedPackage(string ID, string version, long packageSize, decimal price, bool requireLicenseAcceptance, bool isLatestVersion, double versionRating, int versionRatingsCount, int versionDownloadCount, global::System.DateTime created, global::System.DateTime lastUpdated, global::System.DateTime published, double rating, int ratingsCount, int downloadCount)
 {
     PublishedPackage publishedPackage = new PublishedPackage();
     publishedPackage.Id = ID;
     publishedPackage.Version = version;
     publishedPackage.PackageSize = packageSize;
     publishedPackage.Price = price;
     publishedPackage.RequireLicenseAcceptance = requireLicenseAcceptance;
     publishedPackage.IsLatestVersion = isLatestVersion;
     publishedPackage.VersionRating = versionRating;
     publishedPackage.VersionRatingsCount = versionRatingsCount;
     publishedPackage.VersionDownloadCount = versionDownloadCount;
     publishedPackage.Created = created;
     publishedPackage.LastUpdated = lastUpdated;
     publishedPackage.Published = published;
     publishedPackage.Rating = rating;
     publishedPackage.RatingsCount = ratingsCount;
     publishedPackage.DownloadCount = downloadCount;
     return publishedPackage;
 }