using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RFramework;

namespace RFrameGenerate.Model
{
    public partial class T_WX_WeChatMenu : EntityBase<T_WX_WeChatMenu>, ICloneable
    {
        public Guid WeChatMenuGuid{ get;set; }
        public string name1{ get;set; }
        public string value1{ get;set; }
        public string name1_1{ get;set; }
        public string value1_1{ get;set; }
        public string name1_2{ get;set; }
        public string value1_2{ get;set; }
        public string name1_3{ get;set; }
        public string value1_3{ get;set; }
        public string name1_4{ get;set; }
        public string value1_4{ get;set; }
        public string name1_5{ get;set; }
        public string value1_5{ get;set; }
        public string name2{ get;set; }
        public string value2{ get;set; }
        public string name2_1{ get;set; }
        public string value2_1{ get;set; }
        public string name2_2{ get;set; }
        public string value2_2{ get;set; }
        public string name2_3{ get;set; }
        public string value2_3{ get;set; }
        public string name2_4{ get;set; }
        public string value2_4{ get;set; }
        public string name2_5{ get;set; }
        public string value2_5{ get;set; }
        public string name3{ get;set; }
        public string value3{ get;set; }
        public string name3_1{ get;set; }
        public string value3_1{ get;set; }
        public string name3_2{ get;set; }
        public string value3_2{ get;set; }
        public string name3_3{ get;set; }
        public string value3_3{ get;set; }
        public string name3_4{ get;set; }
        public string value3_4{ get;set; }
        public string name3_5{ get;set; }
        public string value3_5{ get;set; }
        public Guid? SMerchantGuid{ get;set; }   
        
        public override string ToString()
        {
            StringBuilder sb = this.EntityToGetKeyValue();
            if (sb == null)
                return base.ToString();
            else
            {
                return sb.ToString();
            }
        }
        
        #region 创建副本
        /// <summary>
        /// 创建当前 System.Object 的浅表副本
        /// </summary>
        /// <returns>返回当前实例的浅表副本,(如果当前实例中有引用对象,引用对象的地址还是指向原来的地址)</returns>
        public object Clone()
        {
            return this.MemberwiseClone();
        }
        /// <summary>
        /// 创建当前 System.Object 的深表副本
        /// </summary>
        /// <returns>返回当前实例的深表副本,(如果当前实例中有引用对象,引用对象的地址还是指向原来的地址)</returns>
        public T_WX_WeChatMenu DeepClone()
        {
            using (System.IO.Stream objectStream = new System.IO.MemoryStream())
            {
                System.Runtime.Serialization.IFormatter formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
                formatter.Serialize(objectStream, this);
                objectStream.Seek(0, System.IO.SeekOrigin.Begin);
                return formatter.Deserialize(objectStream) as T_WX_WeChatMenu;
            }
        }
        /// <summary>
        /// 创建当前 System.Object 的浅表副本
        /// </summary>
        /// <returns>返回当前实例的浅表副本,(如果当前实例中有引用对象,引用对象的地址还是指向原来的地址)</returns>
        public T_WX_WeChatMenu ShallowClone()
        {
            return Clone() as T_WX_WeChatMenu;
        }
        #endregion
        
        #region 实体相互转换
        protected override T_WX_WeChatMenu CurrentEntity()
        {
            return this;
        }
        #endregion
    }
}

