Example #1
0
        public Mail AttachBox(DbDataReader reader)
        {
            this.MailID = reader.ReadInt64("MailID");
            string title = reader.ReadString("title");

            title      = HeroesTextHelper.GetMailTitle(title);
            this.Title = title;
            //Content
            this.Text = reader.ReadString("content");
            return(this);
        }
Example #2
0
        public Mail(DbDataReader reader)
        {
            //mailID
            this.MailID = reader.ReadInt64("RowID");
            string title = reader.ReadString("MailTitle");

            title            = HeroesTextHelper.GetMailTitle(title);
            this.Title       = title;
            this.ItemClassEx = reader.ReadString("ItemClassEx");
            //Content
            this.Text  = reader.ReadString("MailContent");
            this.Count = reader.ReadInt32("Count");
        }