📄 products.designer.cs
字号:
{
this.OnStorehouseNoteChanging(value);
this.SendPropertyChanging();
this._StorehouseNote = value;
this.SendPropertyChanged("StorehouseNote");
this.OnStorehouseNoteChanged();
}
}
}
[Column(Storage="_Carrier", DbType="NVarChar(50)")]
public string Carrier
{
get
{
return this._Carrier;
}
set
{
if ((this._Carrier != value))
{
this.OnCarrierChanging(value);
this.SendPropertyChanging();
this._Carrier = value;
this.SendPropertyChanged("Carrier");
this.OnCarrierChanged();
}
}
}
[Column(Storage="_TransportOrderID", DbType="Int")]
public System.Nullable<int> TransportOrderID
{
get
{
return this._TransportOrderID;
}
set
{
if ((this._TransportOrderID != value))
{
this.OnTransportOrderIDChanging(value);
this.SendPropertyChanging();
this._TransportOrderID = value;
this.SendPropertyChanged("TransportOrderID");
this.OnTransportOrderIDChanged();
}
}
}
[Column(Storage="_TransportDate", DbType="DateTime")]
public System.Nullable<System.DateTime> TransportDate
{
get
{
return this._TransportDate;
}
set
{
if ((this._TransportDate != value))
{
this.OnTransportDateChanging(value);
this.SendPropertyChanging();
this._TransportDate = value;
this.SendPropertyChanged("TransportDate");
this.OnTransportDateChanged();
}
}
}
[Column(Storage="_TransportNote", DbType="Text", UpdateCheck=UpdateCheck.Never)]
public string TransportNote
{
get
{
return this._TransportNote;
}
set
{
if ((this._TransportNote != value))
{
this.OnTransportNoteChanging(value);
this.SendPropertyChanging();
this._TransportNote = value;
this.SendPropertyChanged("TransportNote");
this.OnTransportNoteChanged();
}
}
}
[Column(Storage="_TransportInfoInputerID", DbType="Int")]
public System.Nullable<int> TransportInfoInputerID
{
get
{
return this._TransportInfoInputerID;
}
set
{
if ((this._TransportInfoInputerID != value))
{
this.OnTransportInfoInputerIDChanging(value);
this.SendPropertyChanging();
this._TransportInfoInputerID = value;
this.SendPropertyChanged("TransportInfoInputerID");
this.OnTransportInfoInputerIDChanged();
}
}
}
[Column(Storage="_ArrivalDate", DbType="DateTime")]
public System.Nullable<System.DateTime> ArrivalDate
{
get
{
return this._ArrivalDate;
}
set
{
if ((this._ArrivalDate != value))
{
this.OnArrivalDateChanging(value);
this.SendPropertyChanging();
this._ArrivalDate = value;
this.SendPropertyChanged("ArrivalDate");
this.OnArrivalDateChanged();
}
}
}
[Column(Storage="_Receiver", DbType="NVarChar(50)")]
public string Receiver
{
get
{
return this._Receiver;
}
set
{
if ((this._Receiver != value))
{
this.OnReceiverChanging(value);
this.SendPropertyChanging();
this._Receiver = value;
this.SendPropertyChanged("Receiver");
this.OnReceiverChanged();
}
}
}
[Column(Storage="_ReceiveNote", DbType="Text", UpdateCheck=UpdateCheck.Never)]
public string ReceiveNote
{
get
{
return this._ReceiveNote;
}
set
{
if ((this._ReceiveNote != value))
{
this.OnReceiveNoteChanging(value);
this.SendPropertyChanging();
this._ReceiveNote = value;
this.SendPropertyChanged("ReceiveNote");
this.OnReceiveNoteChanged();
}
}
}
[Column(Storage="_ReceiveInfoInputerID", DbType="Int")]
public System.Nullable<int> ReceiveInfoInputerID
{
get
{
return this._ReceiveInfoInputerID;
}
set
{
if ((this._ReceiveInfoInputerID != value))
{
this.OnReceiveInfoInputerIDChanging(value);
this.SendPropertyChanging();
this._ReceiveInfoInputerID = value;
this.SendPropertyChanged("ReceiveInfoInputerID");
this.OnReceiveInfoInputerIDChanged();
}
}
}
[Column(Storage="_OrderCloseDate", DbType="DateTime")]
public System.Nullable<System.DateTime> OrderCloseDate
{
get
{
return this._OrderCloseDate;
}
set
{
if ((this._OrderCloseDate != value))
{
this.OnOrderCloseDateChanging(value);
this.SendPropertyChanging();
this._OrderCloseDate = value;
this.SendPropertyChanged("OrderCloseDate");
this.OnOrderCloseDateChanged();
}
}
}
[Column(Storage="_OrderCloseAccepterID", DbType="Int")]
public System.Nullable<int> OrderCloseAccepterID
{
get
{
return this._OrderCloseAccepterID;
}
set
{
if ((this._OrderCloseAccepterID != value))
{
this.OnOrderCloseAccepterIDChanging(value);
this.SendPropertyChanging();
this._OrderCloseAccepterID = value;
this.SendPropertyChanged("OrderCloseAccepterID");
this.OnOrderCloseAccepterIDChanged();
}
}
}
[Column(Storage="_OrgID", DbType="Int NOT NULL")]
public int OrgID
{
get
{
return this._OrgID;
}
set
{
if ((this._OrgID != value))
{
this.OnOrgIDChanging(value);
this.SendPropertyChanging();
this._OrgID = value;
this.SendPropertyChanged("OrgID");
this.OnOrgIDChanged();
}
}
}
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));
}
}
}
[Table(Name="dbo.Products")]
public partial class Products : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _ProductID;
private string _ProductName;
private int _SupplierID;
private int _CategoryID;
private string _QuantityPerUnit;
private System.Nullable<decimal> _UnitPrice;
private System.Nullable<int> _UnitsInStock;
private System.Nullable<int> _UnitsOnOrder;
private System.Nullable<int> _ReorderLevel;
private int _IsActive;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnProductIDChanging(int value);
partial void OnProductIDChanged();
partial void OnProductNameChanging(string value);
partial void OnProductNameChanged();
partial void OnSupplierIDChanging(int value);
partial void OnSupplierIDChanged();
partial void OnCategoryIDChanging(int value);
partial void OnCategoryIDChanged();
partial void OnQuantityPerUnitChanging(string value);
partial void OnQuantityPerUnitChanged();
partial void OnUnitPriceChanging(System.Nullable<decimal> value);
partial void OnUnitPriceChanged();
partial void OnUnitsInStockChanging(System.Nullable<int> value);
partial void OnUnitsInStockChanged();
partial void OnUnitsOnOrderChanging(System.Nullable<int> value);
partial void OnUnitsOnOrderChanged();
partial void OnReorderLevelChanging(System.Nullable<int> value);
partial void OnReorderLevelChanged();
partial void OnIsActiveChanging(int value);
partial void OnIsActiveChanged();
#endregion
public Products()
{
OnCreated();
}
[Column(Storage="_ProductID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
public int ProductID
{
get
{
return this._ProductID;
}
set
{
if ((this._ProductID != value))
{
this.OnProductIDChanging(value);
this.SendPropertyChanging();
this._ProductID = value;
this.SendPropertyChanged("ProductID");
this.OnProductIDChanged();
}
}
}
[Column(Storage="_ProductName", DbType="NVarChar(40) NOT NULL", CanBeNull=false)]
public string ProductName
{
get
{
return this._ProductName;
}
set
{
if ((this._ProductName != value))
{
this.OnProductNameChanging(value);
this.SendPropertyChanging();
this._ProductName = value;
this.SendPropertyChanged("ProductName");
this.OnProductNameChanged();
}
}
}
[Column(Storage="_SupplierID", DbType="Int NOT NULL")]
public int SupplierID
{
get
{
return this._SupplierID;
}
set
{
if ((this._SupplierID != value))
{
this.OnSupplierIDChanging(value);
this.SendPropertyChanging();
this._SupplierID = value;
this.SendPropertyChanged("SupplierID");
this.OnSupplierIDChanged();
}
}
}
[Column(Storage="_CategoryID", DbType="Int NOT NULL")]
public int CategoryID
{
get
{
return this._CategoryID;
}
set
{
if ((this._CategoryID != value))
{
this.OnCategoryIDChanging(value);
this.SendPropertyChanging();
this._CategoryID = value;
this.SendPropertyChanged("CategoryID");
this.OnCategoryIDChanged();
}
}
}
[Column(Storage="_QuantityPerUnit", DbType="NVarChar(20)")]
public string QuantityPerUnit
{
get
{
return this._QuantityPerUnit;
}
set
{
if ((this._QuantityPerUnit != value))
{
this.OnQuantityPerUnitChanging(value);
this.SendPropertyChanging();
this._QuantityPerUnit = value;
this.SendPropertyChanged("QuantityPerUnit");
this.OnQuantityPerUnitChanged();
}
}
}
[Column(Storage="_UnitPrice", DbType="Money")]
public System.Nullable<decimal> UnitPrice
{
get
{
return this._UnitPrice;
}
set
{
if ((this._UnitPrice != value))
{
this.OnUnitPriceChanging(value);
this.SendPropertyChanging();
this._UnitPrice = value;
this.SendPropertyChanged("UnitPrice");
this.OnUnitPriceChanged();
}
}
}
[Column(Storage="_UnitsInStock", DbType="Int")]
public System.Nullable<int> UnitsInStock
{
get
{
return this._UnitsInStock;
}
set
{
if ((this._UnitsInStock != value))
{
this.OnUnitsInStockChanging(value);
this.SendPropertyChanging();
this._UnitsInStock = value;
this.SendPropertyChanged("UnitsInStock");
this.OnUnitsInStockChanged();
}
}
}
[Column(Storage="_UnitsOnOrder", DbType="Int")]
public System.Nullable<int> UnitsOnOrder
{
get
{
return this._UnitsOnOrder;
}
set
{
if ((this._UnitsOnOrder != value))
{
this.OnUnitsOnOrderChanging(value);
this.SendPropertyChanging();
this._UnitsOnOrder = value;
this.SendPropertyChanged("UnitsOnOrder");
this.OnUnitsOnOrderChanged();
}
}
}
[Column(Storage="_ReorderLevel", DbType="Int")]
public System.Nullable<int> ReorderLevel
{
get
{
return this._ReorderLevel;
}
set
{
if ((this._ReorderLevel != value))
{
this.OnReorderLevelChanging(value);
this.SendPropertyChanging();
this._ReorderLevel = value;
this.SendPropertyChanged("ReorderLevel");
this.OnReorderLevelChanged();
}
}
}
[Column(Storage="_IsActive", DbType="Int NOT NULL")]
public int IsActive
{
get
{
return this._IsActive;
}
set
{
if ((this._IsActive != value))
{
this.OnIsActiveChanging(value);
this.SendPropertyChanging();
this._IsActive = value;
this.SendPropertyChanged("IsActive");
this.OnIsActiveChanged();
}
}
}
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 + -