📄 systemdata.designer.cs
字号:
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.tbl_ProductType")]
public partial class ProductTypeInfo : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _ProductTypeID;
private string _ProductTypeCode;
private string _ProductTypeName;
private EntitySet<ProductInfo> _ProductInfos;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnProductTypeIDChanging(int value);
partial void OnProductTypeIDChanged();
partial void OnProductTypeCodeChanging(string value);
partial void OnProductTypeCodeChanged();
partial void OnProductTypeNameChanging(string value);
partial void OnProductTypeNameChanged();
#endregion
public ProductTypeInfo()
{
this._ProductInfos = new EntitySet<ProductInfo>(new Action<ProductInfo>(this.attach_ProductInfos), new Action<ProductInfo>(this.detach_ProductInfos));
OnCreated();
}
[Column(Storage="_ProductTypeID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
public int ProductTypeID
{
get
{
return this._ProductTypeID;
}
set
{
if ((this._ProductTypeID != value))
{
this.OnProductTypeIDChanging(value);
this.SendPropertyChanging();
this._ProductTypeID = value;
this.SendPropertyChanged("ProductTypeID");
this.OnProductTypeIDChanged();
}
}
}
[Column(Storage="_ProductTypeCode", DbType="NChar(15) NOT NULL", CanBeNull=false)]
public string ProductTypeCode
{
get
{
return this._ProductTypeCode;
}
set
{
if ((this._ProductTypeCode != value))
{
this.OnProductTypeCodeChanging(value);
this.SendPropertyChanging();
this._ProductTypeCode = value;
this.SendPropertyChanged("ProductTypeCode");
this.OnProductTypeCodeChanged();
}
}
}
[Column(Storage="_ProductTypeName", DbType="NChar(15) NOT NULL", CanBeNull=false)]
public string ProductTypeName
{
get
{
return this._ProductTypeName;
}
set
{
if ((this._ProductTypeName != value))
{
this.OnProductTypeNameChanging(value);
this.SendPropertyChanging();
this._ProductTypeName = value;
this.SendPropertyChanged("ProductTypeName");
this.OnProductTypeNameChanged();
}
}
}
[Association(Name="ProductTypeInfo_ProductInfo", Storage="_ProductInfos", OtherKey="ProductTypeID")]
public EntitySet<ProductInfo> ProductInfos
{
get
{
return this._ProductInfos;
}
set
{
this._ProductInfos.Assign(value);
}
}
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));
}
}
private void attach_ProductInfos(ProductInfo entity)
{
this.SendPropertyChanging();
entity.ProductTypeInfo = this;
}
private void detach_ProductInfos(ProductInfo entity)
{
this.SendPropertyChanging();
entity.ProductTypeInfo = null;
}
}
[Table(Name="dbo.view_Products")]
public partial class ProductViewInfo
{
private int _ProductTypeID;
private string _ProductTypeCode;
private string _ProductTypeName;
private string _ProductCode;
private string _ProductName;
private string _ProductModule;
private string _ProductColor;
private int _ProductID;
private decimal _ProductPrice;
public ProductViewInfo()
{
}
[Column(Storage="_ProductTypeID", DbType="Int NOT NULL")]
public int ProductTypeID
{
get
{
return this._ProductTypeID;
}
set
{
if ((this._ProductTypeID != value))
{
this._ProductTypeID = value;
}
}
}
[Column(Storage="_ProductTypeCode", DbType="NChar(15) NOT NULL", CanBeNull=false)]
public string ProductTypeCode
{
get
{
return this._ProductTypeCode;
}
set
{
if ((this._ProductTypeCode != value))
{
this._ProductTypeCode = value;
}
}
}
[Column(Storage="_ProductTypeName", DbType="NChar(15) NOT NULL", CanBeNull=false)]
public string ProductTypeName
{
get
{
return this._ProductTypeName;
}
set
{
if ((this._ProductTypeName != value))
{
this._ProductTypeName = value;
}
}
}
[Column(Storage="_ProductCode", DbType="NVarChar(31) NOT NULL", CanBeNull=false)]
public string ProductCode
{
get
{
return this._ProductCode;
}
set
{
if ((this._ProductCode != value))
{
this._ProductCode = value;
}
}
}
[Column(Storage="_ProductName", DbType="NChar(255) NOT NULL", CanBeNull=false)]
public string ProductName
{
get
{
return this._ProductName;
}
set
{
if ((this._ProductName != value))
{
this._ProductName = value;
}
}
}
[Column(Storage="_ProductModule", DbType="NChar(31) NOT NULL", CanBeNull=false)]
public string ProductModule
{
get
{
return this._ProductModule;
}
set
{
if ((this._ProductModule != value))
{
this._ProductModule = value;
}
}
}
[Column(Storage="_ProductColor", DbType="NChar(7) NOT NULL", CanBeNull=false)]
public string ProductColor
{
get
{
return this._ProductColor;
}
set
{
if ((this._ProductColor != value))
{
this._ProductColor = value;
}
}
}
[Column(Storage="_ProductID", DbType="Int NOT NULL")]
public int ProductID
{
get
{
return this._ProductID;
}
set
{
if ((this._ProductID != value))
{
this._ProductID = value;
}
}
}
[Column(Storage="_ProductPrice", DbType="Decimal(18,2) NOT NULL")]
public decimal ProductPrice
{
get
{
return this._ProductPrice;
}
set
{
if ((this._ProductPrice != value))
{
this._ProductPrice = value;
}
}
}
}
}
#pragma warning restore 1591
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -