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

namespace RFrameGenerate.Model
{
    public partial class T_ST_CrowdParticipateListView: EntityBase<T_ST_CrowdParticipateListView>, ICloneable
    { 
        public Guid? ProductCrowdGuid{ get;set; }   
        public string ProductName{ get;set; }
        public string ProductImage4{ get;set; }
        public string ProductImage3{ get;set; }
        public string ProductImage2{ get;set; }
        public string ProductImage1{ get;set; }
        public string ProductImage{ get;set; }
        public Guid? SMerchantGuid{ get;set; }   
        public Guid? ProductCrowdPeriodGuid{ get;set; }   
        public int? CrowdPeriods{ get;set; }   
        public int? TotalTime{ get;set; }   
        public int? RemainTime{ get;set; }   
        public int? BuyTime{ get;set; }   
        public DateTime? JoinDate{ get;set; }   
        public DateTime? OpenDate{ get;set; }   
        public string Formula{ get;set; }
        public Guid CrowdParticipateGuid{ get;set; }   
        public Guid? MemberGuid{ get;set; }   
        public int CrowdState{ get;set; }   
        public int JoinTime{ get;set; }   
        public Guid? CrowdWinningGuid{ get;set; }   
        public int? WinBuyTime{ get;set; }   
        public string AllLuckyNum{ get;set; }
        public string LuckyNum{ get;set; }
        public DateTime? DeliveryTime{ get;set; }   
        public Guid? LogisticrGuid{ get;set; }   
        public Guid? RecieverAddressGuid{ get;set; }   
        public string MemberNickName{ get;set; }
        public string HeadImgUrl{ get;set; }
        public string City{ get;set; }
        public string Reciever{ get;set; }
        public string Province{ get;set; }
        public string RecieverCity{ get;set; }
        public string RecieverArea{ get;set; }
        public string RecieverAddress{ get;set; }
        public string RecieverTelephone{ get;set; }
        public string RecieverZip{ get;set; }
        public string ExpressNumber{ get;set; }
        public string ExpressCompany{ 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_ST_CrowdParticipateListView 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_ST_CrowdParticipateListView;
            }
        }
        /// <summary>
        /// 创建当前 System.Object 的浅表副本
        /// </summary>
        /// <returns>返回当前实例的浅表副本,(如果当前实例中有引用对象,引用对象的地址还是指向原来的地址)</returns>
        public T_ST_CrowdParticipateListView ShallowClone()
        {
            return Clone() as T_ST_CrowdParticipateListView;
        }

        #endregion
        
        #region 实体相互转换        
        protected override T_ST_CrowdParticipateListView CurrentEntity()
        {
            return this;
        }
        #endregion
    }
}

