Пример #1
0
        public void Read(MySqlDataReader rdr, bool StubOnly = false)
        {
            this.PageID  = rdr.GetInt32("PageID");
            this.PageNo  = rdr.GetInt32("PageNo");
            this.FrameNo = rdr.GetInt32("FrameNo");
            this.Title   = rdr.GetString("Title").Trim();
            if (string.IsNullOrEmpty(this.Title))
            {
                this.Title = "None";
            }
            decimal toPageFrameNo = rdr.GetDecimal("ToPageFrameNo");

            this.ToPageNo    = Convert.ToInt32(toPageFrameNo);
            this.ToFrameNo   = Convert.ToInt32((toPageFrameNo - this.ToPageNo) * 100);
            this.OwnerID     = rdr.GetInt32Safe("OwnerID");
            this.Updated     = rdr.GetDateTimeNullable("Updated");
            this.UpdatedByID = rdr.GetInt32Safe("UpdatedBy");
            if (StubOnly)
            {
                return;
            }
            this.Contents       = rdr.GetBytesNullable("Contents");
            this.URL            = rdr.GetStringNullable("URL").Trim();
            this.BoxMode        = rdr.GetBoolean("BoxMode");
            this.TeleSoftwareID = rdr.GetInt32Nullable("TeleSoftwareID");
            this.IsCarousel     = rdr.GetBooleanSafe("IsCarousel");
            this.CarouselWait   = rdr.GetInt32Safe("CarouselWait");
            this.ConvertContentsFromURL();
        }