?? addressbook.designer.cs
字號:
[Column(Storage="_FirstName", DbType="NVarChar(64) NOT NULL", CanBeNull=false)]
public string FirstName
{
get
{
return this._FirstName;
}
set
{
if ((this._FirstName != value))
{
this.OnFirstNameChanging(value);
this.SendPropertyChanging();
this._FirstName = value;
this.SendPropertyChanged("FirstName");
this.OnFirstNameChanged();
}
}
}
[Column(Storage="_LastName", DbType="NVarChar(64) NOT NULL", CanBeNull=false)]
public string LastName
{
get
{
return this._LastName;
}
set
{
if ((this._LastName != value))
{
this.OnLastNameChanging(value);
this.SendPropertyChanging();
this._LastName = value;
this.SendPropertyChanged("LastName");
this.OnLastNameChanged();
}
}
}
[Column(Storage="_Company", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
public string Company
{
get
{
return this._Company;
}
set
{
if ((this._Company != value))
{
this.OnCompanyChanging(value);
this.SendPropertyChanging();
this._Company = value;
this.SendPropertyChanged("Company");
this.OnCompanyChanged();
}
}
}
[Column(Storage="_Title", DbType="NVarChar(64) NOT NULL", CanBeNull=false)]
public string Title
{
get
{
return this._Title;
}
set
{
if ((this._Title != value))
{
this.OnTitleChanging(value);
this.SendPropertyChanging();
this._Title = value;
this.SendPropertyChanged("Title");
this.OnTitleChanged();
}
}
}
[Column(Storage="_Address", DbType="NVarChar(128) 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="_City", DbType="NVarChar(64) NOT NULL", CanBeNull=false)]
public string City
{
get
{
return this._City;
}
set
{
if ((this._City != value))
{
this.OnCityChanging(value);
this.SendPropertyChanging();
this._City = value;
this.SendPropertyChanged("City");
this.OnCityChanged();
}
}
}
[Column(Storage="_State", DbType="NVarChar(2) NOT NULL", CanBeNull=false)]
public string State
{
get
{
return this._State;
}
set
{
if ((this._State != value))
{
this.OnStateChanging(value);
this.SendPropertyChanging();
this._State = value;
this.SendPropertyChanged("State");
this.OnStateChanged();
}
}
}
[Column(Storage="_Zip", DbType="NVarChar(10) NOT NULL", CanBeNull=false)]
public string Zip
{
get
{
return this._Zip;
}
set
{
if ((this._Zip != value))
{
this.OnZipChanging(value);
this.SendPropertyChanging();
this._Zip = value;
this.SendPropertyChanged("Zip");
this.OnZipChanged();
}
}
}
[Column(Storage="_HomePhone", DbType="NVarChar(14)")]
public string HomePhone
{
get
{
return this._HomePhone;
}
set
{
if ((this._HomePhone != value))
{
this.OnHomePhoneChanging(value);
this.SendPropertyChanging();
this._HomePhone = value;
this.SendPropertyChanged("HomePhone");
this.OnHomePhoneChanged();
}
}
}
[Column(Storage="_WorkPhone", DbType="NVarChar(14) NOT NULL", CanBeNull=false)]
public string WorkPhone
{
get
{
return this._WorkPhone;
}
set
{
if ((this._WorkPhone != value))
{
this.OnWorkPhoneChanging(value);
this.SendPropertyChanging();
this._WorkPhone = value;
this.SendPropertyChanged("WorkPhone");
this.OnWorkPhoneChanged();
}
}
}
[Column(Storage="_MobilePhone", DbType="NVarChar(14) NOT NULL", CanBeNull=false)]
public string MobilePhone
{
get
{
return this._MobilePhone;
}
set
{
if ((this._MobilePhone != value))
{
this.OnMobilePhoneChanging(value);
this.SendPropertyChanging();
this._MobilePhone = value;
this.SendPropertyChanged("MobilePhone");
this.OnMobilePhoneChanged();
}
}
}
[Column(Storage="_EmailAddress", DbType="NVarChar(128)")]
public string EmailAddress
{
get
{
return this._EmailAddress;
}
set
{
if ((this._EmailAddress != value))
{
this.OnEmailAddressChanging(value);
this.SendPropertyChanging();
this._EmailAddress = value;
this.SendPropertyChanged("EmailAddress");
this.OnEmailAddressChanged();
}
}
}
[Column(Storage="_WebSite", DbType="NVarChar(128) NOT NULL", CanBeNull=false)]
public string WebSite
{
get
{
return this._WebSite;
}
set
{
if ((this._WebSite != value))
{
this.OnWebSiteChanging(value);
this.SendPropertyChanging();
this._WebSite = value;
this.SendPropertyChanged("WebSite");
this.OnWebSiteChanged();
}
}
}
[Column(Storage="_Birthdate", DbType="DateTime NOT NULL")]
public System.DateTime Birthdate
{
get
{
return this._Birthdate;
}
set
{
if ((this._Birthdate != value))
{
this.OnBirthdateChanging(value);
this.SendPropertyChanging();
this._Birthdate = value;
this.SendPropertyChanged("Birthdate");
this.OnBirthdateChanged();
}
}
}
[Column(Storage="_Anniversary", DbType="DateTime")]
public System.Nullable<System.DateTime> Anniversary
{
get
{
return this._Anniversary;
}
set
{
if ((this._Anniversary != value))
{
this.OnAnniversaryChanging(value);
this.SendPropertyChanging();
this._Anniversary = value;
this.SendPropertyChanged("Anniversary");
this.OnAnniversaryChanged();
}
}
}
[Association(Name="Category_Contact", Storage="_Category", ThisKey="CategoryId", IsForeignKey=true)]
public Category Category
{
get
{
return this._Category.Entity;
}
set
{
Category previousValue = this._Category.Entity;
if (((previousValue != value)
|| (this._Category.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Category.Entity = null;
previousValue.Contacts.Remove(this);
}
this._Category.Entity = value;
if ((value != null))
{
value.Contacts.Add(this);
this._CategoryId = value.CategoryId;
}
else
{
this._CategoryId = default(int);
}
this.SendPropertyChanged("Category");
}
}
}
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));
}
}
}
#pragma warning restore 1591
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -