Exemplo n.º 1
0
 /// <summary>
 /// CopyValue 方法
 /// </summary>
 public virtual void CopyValue(SystemShortMessageBase obj)
 {
     obj.ShortMessageTitle      = this._shortmessage_title;
     obj.ShortMessageCategory   = this._shortmessage_category;
     obj.ShortMessageContent    = this._shortmessage_content;
     obj.ShortMessageSender     = this._shortmessage_sender;
     obj.ShortMessageSendDate   = this._shortmessage_send_date;
     obj.ShortMessageReceiverID = this._shortmessage_receiver_id;
     obj.ShortMessageIsRead     = this._shortmessage_isread;
 }
Exemplo n.º 2
0
        /// <summary>
        /// local implementation of Equals based on unique value members
        /// </summary>
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if ((obj == null) || (obj.GetType() != this.GetType()))
            {
                return(false);
            }
            SystemShortMessageBase castObj = (SystemShortMessageBase)obj;

            return((castObj != null) &&
                   (this._shortmessage_id == castObj.ShortMessageID));
        }
Exemplo n.º 3
0
 /// <summary>
 /// CopyValue 方法
 /// </summary>
 public virtual void CopyValue( SystemShortMessageBase obj )
 {
     obj.ShortMessageTitle = this._shortmessage_title;
     obj.ShortMessageCategory = this._shortmessage_category;
     obj.ShortMessageContent = this._shortmessage_content;
     obj.ShortMessageSender = this._shortmessage_sender;
     obj.ShortMessageSendDate = this._shortmessage_send_date;
     obj.ShortMessageReceiverID = this._shortmessage_receiver_id;
     obj.ShortMessageIsRead = this._shortmessage_isread;
 }