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(); }
public void Read(MySqlDataReader rdr, bool StubOnly = false) { this.TemplateID = rdr.GetInt32("TemplateID"); this.Description = rdr.GetString("Description").Trim(); this.OwnerID = rdr.GetInt32Safe("OwnerID"); if (StubOnly) { return; } this.X = rdr.GetByte("X"); this.Y = rdr.GetByte("Y"); this.Width = rdr.GetByte("Width"); this.Height = rdr.GetByte("Height"); this.Expression = rdr.GetStringNullable("Expression").Trim(); this.URL = rdr.GetStringNullable("URL").Trim(); this.Contents = rdr.GetBytesNullable("Contents"); this.IsContainer = rdr.GetBoolean("IsContainer"); this.IsRepeatingItem = rdr.GetBoolean("IsRepeatingItem"); this.CanExpand = rdr.GetBoolean("CanExpand"); this.StickToTop = rdr.GetBoolean("StickToTop"); this.StickToBottom = rdr.GetBoolean("StickToBottom"); this.ContinuedOver = rdr.GetBoolean("ContinuedOver"); this.ContinuedFrom = rdr.GetBoolean("ContinuedFrom"); this.MinOrphanWidowRows = rdr.GetByte("MinOrphanWidowRows"); this.NotContinuedOver = rdr.GetBoolean("NotContinuedOver"); this.NotContinuedFrom = rdr.GetBoolean("NotContinuedFrom"); this.KeepTogether = rdr.GetBoolean("KeepTogether"); this.ConvertContentsFromURL(); }
public void Read(MySqlDataReader rdr, bool StubOnly = false) { this.TeleSoftwareID = rdr.GetInt32("TeleSoftwareID"); this.Key = rdr.GetStringNullable("Key"); this.FileName = rdr.GetStringNullable("FileName"); this.OwnerID = rdr.GetInt32Safe("OwnerID"); if (StubOnly) { return; } this.Contents = rdr.GetBytesNullable("Contents"); }