📄 products.designer.cs
字号:
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// このコードはツールによって生成されました。
// ランタイム バージョン:2.0.50727.1433
//
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
// コードが再生成されるときに損失したりします。
// </auto-generated>
//------------------------------------------------------------------------------
namespace VinciDataAccess.Linq
{
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Data;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using System.Linq.Expressions;
using System.ComponentModel;
using System;
[System.Data.Linq.Mapping.DatabaseAttribute(Name="EnterpriseDB")]
public partial class ProductsDataContext : System.Data.Linq.DataContext
{
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
#region Extensibility Method Definitions
partial void OnCreated();
partial void InsertOrder_Details(Order_Details instance);
partial void UpdateOrder_Details(Order_Details instance);
partial void DeleteOrder_Details(Order_Details instance);
partial void InsertOrders(Orders instance);
partial void UpdateOrders(Orders instance);
partial void DeleteOrders(Orders instance);
partial void InsertProducts(Products instance);
partial void UpdateProducts(Products instance);
partial void DeleteProducts(Products instance);
#endregion
public ProductsDataContext() :
base(global::VinciDataAccess.Properties.Settings.Default.EnterpriseDBConnectionString, mappingSource)
{
OnCreated();
}
public ProductsDataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
public ProductsDataContext(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public ProductsDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public ProductsDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public System.Data.Linq.Table<Order_Details> Order_Details
{
get
{
return this.GetTable<Order_Details>();
}
}
public System.Data.Linq.Table<Orders> Orders
{
get
{
return this.GetTable<Orders>();
}
}
public System.Data.Linq.Table<Products> Products
{
get
{
return this.GetTable<Products>();
}
}
}
[Table(Name="dbo.[Order Details]")]
public partial class Order_Details : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _OrderID;
private int _ProductID;
private decimal _UnitPrice;
private int _Quantity;
private System.Nullable<double> _Discount;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnOrderIDChanging(int value);
partial void OnOrderIDChanged();
partial void OnProductIDChanging(int value);
partial void OnProductIDChanged();
partial void OnUnitPriceChanging(decimal value);
partial void OnUnitPriceChanged();
partial void OnQuantityChanging(int value);
partial void OnQuantityChanged();
partial void OnDiscountChanging(System.Nullable<double> value);
partial void OnDiscountChanged();
#endregion
public Order_Details()
{
OnCreated();
}
[Column(Storage="_OrderID", DbType="Int NOT NULL", IsPrimaryKey=true)]
public int OrderID
{
get
{
return this._OrderID;
}
set
{
if ((this._OrderID != value))
{
this.OnOrderIDChanging(value);
this.SendPropertyChanging();
this._OrderID = value;
this.SendPropertyChanged("OrderID");
this.OnOrderIDChanged();
}
}
}
[Column(Storage="_ProductID", DbType="Int NOT NULL", IsPrimaryKey=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="_UnitPrice", DbType="Money NOT NULL")]
public 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="_Quantity", DbType="Int NOT NULL")]
public int Quantity
{
get
{
return this._Quantity;
}
set
{
if ((this._Quantity != value))
{
this.OnQuantityChanging(value);
this.SendPropertyChanging();
this._Quantity = value;
this.SendPropertyChanged("Quantity");
this.OnQuantityChanged();
}
}
}
[Column(Storage="_Discount", DbType="Float")]
public System.Nullable<double> Discount
{
get
{
return this._Discount;
}
set
{
if ((this._Discount != value))
{
this.OnDiscountChanging(value);
this.SendPropertyChanging();
this._Discount = value;
this.SendPropertyChanged("Discount");
this.OnDiscountChanged();
}
}
}
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.Orders")]
public partial class Orders : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _OrderID;
private int _CustomerID;
private int _EmployeeID;
private System.Nullable<System.DateTime> _OrderDate;
private System.Nullable<System.DateTime> _RequireDate;
private string _OrderNote;
private System.Nullable<int> _OrderCreaterID;
private System.Nullable<System.DateTime> _StorehouseReadyDate;
private System.Nullable<int> _StorehouseAccepterID;
private string _StorehouseNote;
private string _Carrier;
private System.Nullable<int> _TransportOrderID;
private System.Nullable<System.DateTime> _TransportDate;
private string _TransportNote;
private System.Nullable<int> _TransportInfoInputerID;
private System.Nullable<System.DateTime> _ArrivalDate;
private string _Receiver;
private string _ReceiveNote;
private System.Nullable<int> _ReceiveInfoInputerID;
private System.Nullable<System.DateTime> _OrderCloseDate;
private System.Nullable<int> _OrderCloseAccepterID;
private int _OrgID;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnOrderIDChanging(int value);
partial void OnOrderIDChanged();
partial void OnCustomerIDChanging(int value);
partial void OnCustomerIDChanged();
partial void OnEmployeeIDChanging(int value);
partial void OnEmployeeIDChanged();
partial void OnOrderDateChanging(System.Nullable<System.DateTime> value);
partial void OnOrderDateChanged();
partial void OnRequireDateChanging(System.Nullable<System.DateTime> value);
partial void OnRequireDateChanged();
partial void OnOrderNoteChanging(string value);
partial void OnOrderNoteChanged();
partial void OnOrderCreaterIDChanging(System.Nullable<int> value);
partial void OnOrderCreaterIDChanged();
partial void OnStorehouseReadyDateChanging(System.Nullable<System.DateTime> value);
partial void OnStorehouseReadyDateChanged();
partial void OnStorehouseAccepterIDChanging(System.Nullable<int> value);
partial void OnStorehouseAccepterIDChanged();
partial void OnStorehouseNoteChanging(string value);
partial void OnStorehouseNoteChanged();
partial void OnCarrierChanging(string value);
partial void OnCarrierChanged();
partial void OnTransportOrderIDChanging(System.Nullable<int> value);
partial void OnTransportOrderIDChanged();
partial void OnTransportDateChanging(System.Nullable<System.DateTime> value);
partial void OnTransportDateChanged();
partial void OnTransportNoteChanging(string value);
partial void OnTransportNoteChanged();
partial void OnTransportInfoInputerIDChanging(System.Nullable<int> value);
partial void OnTransportInfoInputerIDChanged();
partial void OnArrivalDateChanging(System.Nullable<System.DateTime> value);
partial void OnArrivalDateChanged();
partial void OnReceiverChanging(string value);
partial void OnReceiverChanged();
partial void OnReceiveNoteChanging(string value);
partial void OnReceiveNoteChanged();
partial void OnReceiveInfoInputerIDChanging(System.Nullable<int> value);
partial void OnReceiveInfoInputerIDChanged();
partial void OnOrderCloseDateChanging(System.Nullable<System.DateTime> value);
partial void OnOrderCloseDateChanged();
partial void OnOrderCloseAccepterIDChanging(System.Nullable<int> value);
partial void OnOrderCloseAccepterIDChanged();
partial void OnOrgIDChanging(int value);
partial void OnOrgIDChanged();
#endregion
public Orders()
{
OnCreated();
}
[Column(Storage="_OrderID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
public int OrderID
{
get
{
return this._OrderID;
}
set
{
if ((this._OrderID != value))
{
this.OnOrderIDChanging(value);
this.SendPropertyChanging();
this._OrderID = value;
this.SendPropertyChanged("OrderID");
this.OnOrderIDChanged();
}
}
}
[Column(Storage="_CustomerID", DbType="Int NOT NULL")]
public int CustomerID
{
get
{
return this._CustomerID;
}
set
{
if ((this._CustomerID != value))
{
this.OnCustomerIDChanging(value);
this.SendPropertyChanging();
this._CustomerID = value;
this.SendPropertyChanged("CustomerID");
this.OnCustomerIDChanged();
}
}
}
[Column(Storage="_EmployeeID", DbType="Int NOT NULL")]
public int EmployeeID
{
get
{
return this._EmployeeID;
}
set
{
if ((this._EmployeeID != value))
{
this.OnEmployeeIDChanging(value);
this.SendPropertyChanging();
this._EmployeeID = value;
this.SendPropertyChanged("EmployeeID");
this.OnEmployeeIDChanged();
}
}
}
[Column(Storage="_OrderDate", DbType="DateTime")]
public System.Nullable<System.DateTime> OrderDate
{
get
{
return this._OrderDate;
}
set
{
if ((this._OrderDate != value))
{
this.OnOrderDateChanging(value);
this.SendPropertyChanging();
this._OrderDate = value;
this.SendPropertyChanged("OrderDate");
this.OnOrderDateChanged();
}
}
}
[Column(Storage="_RequireDate", DbType="DateTime")]
public System.Nullable<System.DateTime> RequireDate
{
get
{
return this._RequireDate;
}
set
{
if ((this._RequireDate != value))
{
this.OnRequireDateChanging(value);
this.SendPropertyChanging();
this._RequireDate = value;
this.SendPropertyChanged("RequireDate");
this.OnRequireDateChanged();
}
}
}
[Column(Storage="_OrderNote", DbType="Text", UpdateCheck=UpdateCheck.Never)]
public string OrderNote
{
get
{
return this._OrderNote;
}
set
{
if ((this._OrderNote != value))
{
this.OnOrderNoteChanging(value);
this.SendPropertyChanging();
this._OrderNote = value;
this.SendPropertyChanged("OrderNote");
this.OnOrderNoteChanged();
}
}
}
[Column(Storage="_OrderCreaterID", DbType="Int")]
public System.Nullable<int> OrderCreaterID
{
get
{
return this._OrderCreaterID;
}
set
{
if ((this._OrderCreaterID != value))
{
this.OnOrderCreaterIDChanging(value);
this.SendPropertyChanging();
this._OrderCreaterID = value;
this.SendPropertyChanged("OrderCreaterID");
this.OnOrderCreaterIDChanged();
}
}
}
[Column(Storage="_StorehouseReadyDate", DbType="DateTime")]
public System.Nullable<System.DateTime> StorehouseReadyDate
{
get
{
return this._StorehouseReadyDate;
}
set
{
if ((this._StorehouseReadyDate != value))
{
this.OnStorehouseReadyDateChanging(value);
this.SendPropertyChanging();
this._StorehouseReadyDate = value;
this.SendPropertyChanged("StorehouseReadyDate");
this.OnStorehouseReadyDateChanged();
}
}
}
[Column(Storage="_StorehouseAccepterID", DbType="Int")]
public System.Nullable<int> StorehouseAccepterID
{
get
{
return this._StorehouseAccepterID;
}
set
{
if ((this._StorehouseAccepterID != value))
{
this.OnStorehouseAccepterIDChanging(value);
this.SendPropertyChanging();
this._StorehouseAccepterID = value;
this.SendPropertyChanged("StorehouseAccepterID");
this.OnStorehouseAccepterIDChanged();
}
}
}
[Column(Storage="_StorehouseNote", DbType="Text", UpdateCheck=UpdateCheck.Never)]
public string StorehouseNote
{
get
{
return this._StorehouseNote;
}
set
{
if ((this._StorehouseNote != value))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -