Client.designer.cs

namespace ProductManager.Model
{
    using System;
    using System.ComponentModel;
    using System.Data.Linq.Mapping;

    [Table(Name = "dbo.Client")]
    public partial class Client : INotifyPropertyChanging, INotifyPropertyChanged
    {

        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);

        private string _ClientID;

        private string _ClientName;

        private string _Linkman;

        private string _LinkPhone;

        private string _Fax;

        private string _Email;

        private string _Address;

        private string _Memo;

        #region Extensibility Method Definitions
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
        partial void OnClientIDChanging(string value);
        partial void OnClientIDChanged();
        partial void OnClientNameChanging(string value);
        partial void OnClientNameChanged();
        partial void OnLinkmanChanging(string value);
        partial void OnLinkmanChanged();
        partial void OnLinkPhoneChanging(string value);
        partial void OnLinkPhoneChanged();
        partial void OnFaxChanging(string value);
        partial void OnFaxChanged();
        partial void OnEmailChanging(string value);
        partial void OnEmailChanged();
        partial void OnAddressChanging(string value);
        partial void OnAddressChanged();
        partial void OnMemoChanging(string value);
        partial void OnMemoChanged();
        #endregion

        public Client()
        {
            OnCreated();
        }

        [Column(Storage = "_ClientID", DbType = "VarChar(10) NOT NULL", CanBeNull = false, IsPrimaryKey = true)]
        public string ClientID
        {
            get
            {
                return this._ClientID;
            }
            set
            {
                if ((this._ClientID != value))
                {
                    this.OnClientIDChanging(value);
                    this.SendPropertyChanging();
                    this._ClientID = value;
                    this.SendPropertyChanged("ClientID");
                    this.OnClientIDChanged();
                }
            }
        }

        [Column(Storage = "_ClientName", DbType = "VarChar(20) NOT NULL", CanBeNull = false)]
        public string ClientName
        {
            get
            {
                return this._ClientName;
            }
            set
            {
                if ((this._ClientName != value))
                {
                    this.OnClientNameChanging(value);
                    this.SendPropertyChanging();
                    this._ClientName = value;
                    this.SendPropertyChanged("ClientName");
                    this.OnClientNameChanged();
                }
            }
        }

        [Column(Storage = "_Linkman", DbType = "VarChar(20) NOT NULL", CanBeNull = false)]
        public string Linkman
        {
            get
            {
                return this._Linkman;
            }
            set
            {
                if ((this._Linkman != value))
                {
                    this.OnLinkmanChanging(value);
                    this.SendPropertyChanging();
                    this._Linkman = value;
                    this.SendPropertyChanged("Linkman");
                    this.OnLinkmanChanged();
                }
            }
        }

        [Column(Storage = "_LinkPhone", DbType = "VarChar(15) NOT NULL", CanBeNull = false)]
        public string LinkPhone
        {
            get
            {
                return this._LinkPhone;
            }
            set
            {
                if ((this._LinkPhone != value))
                {
                    this.OnLinkPhoneChanging(value);
                    this.SendPropertyChanging();
                    this._LinkPhone = value;
                    this.SendPropertyChanged("LinkPhone");
                    this.OnLinkPhoneChanged();
                }
            }
        }

        [Column(Storage = "_Fax", DbType = "VarChar(15)")]
        public string Fax
        {
            get
            {
                return this._Fax;
            }
            set
            {
                if ((this._Fax != value))
                {
                    this.OnFaxChanging(value);
                    this.SendPropertyChanging();
                    this._Fax = value;
                    this.SendPropertyChanged("Fax");
                    this.OnFaxChanged();
                }
            }
        }

        [Column(Storage = "_Email", DbType = "VarChar(30)")]
        public string Email
        {
            get
            {
                return this._Email;
            }
            set
            {
                if ((this._Email != value))
                {
                    this.OnEmailChanging(value);
                    this.SendPropertyChanging();
                    this._Email = value;
                    this.SendPropertyChanged("Email");
                    this.OnEmailChanged();
                }
            }
        }

        [Column(Storage = "_Address", DbType = "NVarChar(100) NOT NULL", CanBeNull = false)]
        public string Address
        {
            get
            {
                return this._Address;
            }
            set
            {
                if ((this._Address != value))
                {
                    this.OnAddressChanging(value);
                    this.SendPropertyChanging();
                    this._Address = value;
                    this.SendPropertyChanged("Address");
                    this.OnAddressChanged();
                }
            }
        }

        [Column(Storage = "_Memo", DbType = "NVarChar(50)")]
        public string Memo
        {
            get
            {
                return this._Memo;
            }
            set
            {
                if ((this._Memo != value))
                {
                    this.OnMemoChanging(value);
                    this.SendPropertyChanging();
                    this._Memo = value;
                    this.SendPropertyChanged("Memo");
                    this.OnMemoChanged();
                }
            }
        }

        public event PropertyChangingEventHandler PropertyChanging;

        public event PropertyChangedEventHandler PropertyChanged;

        protected virtual void SendPropertyChanging()
        {
            if ((this.PropertyChanging != null))
            {
                this.PropertyChanging(this, emptyChangingEventArgs);
            }
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            if ((this.PropertyChanged != null))
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值