Ejemplo n.º 1
0
        public GPackageClass(GDataSet.GPackageRow row, GGenreClass parent)
            : this()
        {
            this.packageKey = row.PackageKey;
            this.genreKey = row.IsGenreKeyNull() ? (int?)null : row.GenreKey;
            this.packageTitle = row.IsPackageTitleNull() ? null : row.PackageTitle;
            this.packageCatch = row.IsPackageCatchNull() ? null : row.PackageCatch;
            this.packageText = row.IsPackageTextNull() ? null : row.PackageText;
            this.created = row.Created;
            this.lastModified = row.LastModified;

            this.parent = parent;
        }
Ejemplo n.º 2
0
        public GContentClass(GDataSet.GContentRow row, GPackageClass parentPackage, GGenreClass grandparentGenre)
            : this()
        {
            this.contentKey = row.ContentKey;
            this.packageKey = row.IsPackageKeyNull() ? (int?)null : row.PackageKey;
            this.genreKey = row.IsGenreKeyNull() ? (int?)null : row.GenreKey;
            this.title = row.IsTitleNull() ? null : row.Title;
            this.seriesNumber = row.IsSeriesNumberNull() ? null : row.SeriesNumber;
            this.subtitle = row.IsSubtitleNull() ? null : row.Subtitle;
            this.summaryHtml = row.IsSummaryHtmlNull() ? null : row.SummaryHtml;
            this.durationValue = row.IsDurationValueNull() ? (TimeSpan?)null : row.DurationValue;
            this.deadlineText = row.IsDeadlineTextNull() ? null : row.DeadlineText;
            this.created = row.Created;
            this.lastModified = row.LastModified;

            this.parentPackage = parentPackage;
            this.grandparentGenre = grandparentGenre;
        }
Ejemplo n.º 3
0
 private GGenreClass GetCachedGenre(GDataSet.GContentRow crow)
 {
     if (crow.IsGenreKeyNull()) return null;
     else return this.GetCachedGenre(crow.GenreKey);
 }
Ejemplo n.º 4
0
 private GGenreClass GetCachedGenre(GDataSet.GPackageRow prow)
 {
     if (prow.IsGenreKeyNull()) return null;
     else return this.GetCachedGenre(prow.GenreKey);
 }