#pragma warning disable 1591
//------------------------------------------------------------------------------
//
// Этот код создан программой.
// Исполняемая версия:4.0.30319.42000
//
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
// повторной генерации кода.
//
//------------------------------------------------------------------------------
namespace WindowsFormsApp3
{
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;
[global::System.Data.Linq.Mapping.DatabaseAttribute(Name="12gk")]
public partial class DataClasses1DataContext : System.Data.Linq.DataContext
{
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
#region Определения метода расширяемости
partial void OnCreated();
partial void InsertProdykt(Prodykt instance);
partial void UpdateProdykt(Prodykt instance);
partial void DeleteProdykt(Prodykt instance);
#endregion
public DataClasses1DataContext() :
base(global::WindowsFormsApp3.Properties.Settings.Default._12gkConnectionString, mappingSource)
{
OnCreated();
}
public DataClasses1DataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
public DataClasses1DataContext(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public DataClasses1DataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public DataClasses1DataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public System.Data.Linq.Table Prodykt
{
get
{
return this.GetTable();
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Prodykt")]
public partial class Prodykt : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ArticleNumber;
private string _Name;
private string _Description;
private string _Category;
private System.Data.Linq.Binary _Photo;
private string _Manufacturer;
private System.Nullable _Prais;
private string _Единица_измерения;
private System.Nullable _Размер_макс_скидки;
private string _Поставщик;
private System.Nullable _Действующая_Скидка;
private System.Nullable _Количество_на_складе;
private string _Ctatys;
private System.Nullable _OrderID;
#region Определения метода расширяемости
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnArticleNumberChanging(string value);
partial void OnArticleNumberChanged();
partial void OnNameChanging(string value);
partial void OnNameChanged();
partial void OnDescriptionChanging(string value);
partial void OnDescriptionChanged();
partial void OnCategoryChanging(string value);
partial void OnCategoryChanged();
partial void OnPhotoChanging(System.Data.Linq.Binary value);
partial void OnPhotoChanged();
partial void OnManufacturerChanging(string value);
partial void OnManufacturerChanged();
partial void OnPraisChanging(System.Nullable value);
partial void OnPraisChanged();
partial void OnЕдиница_измеренияChanging(string value);
partial void OnЕдиница_измеренияChanged();
partial void OnРазмер_макс_скидкиChanging(System.Nullable value);
partial void OnРазмер_макс_скидкиChanged();
partial void OnПоставщикChanging(string value);
partial void OnПоставщикChanged();
partial void OnДействующая_СкидкаChanging(System.Nullable value);
partial void OnДействующая_СкидкаChanged();
partial void OnКоличество_на_складеChanging(System.Nullable value);
partial void OnКоличество_на_складеChanged();
partial void OnCtatysChanging(string value);
partial void OnCtatysChanged();
partial void OnOrderIDChanging(System.Nullable value);
partial void OnOrderIDChanged();
#endregion
public Prodykt()
{
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ArticleNumber", DbType="NVarChar(100) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string ArticleNumber
{
get
{
return this._ArticleNumber;
}
set
{
if ((this._ArticleNumber != value))
{
this.OnArticleNumberChanging(value);
this.SendPropertyChanging();
this._ArticleNumber = value;
this.SendPropertyChanged("ArticleNumber");
this.OnArticleNumberChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(MAX)")]
public string Name
{
get
{
return this._Name;
}
set
{
if ((this._Name != value))
{
this.OnNameChanging(value);
this.SendPropertyChanging();
this._Name = value;
this.SendPropertyChanged("Name");
this.OnNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(MAX)")]
public string Description
{
get
{
return this._Description;
}
set
{
if ((this._Description != value))
{
this.OnDescriptionChanging(value);
this.SendPropertyChanging();
this._Description = value;
this.SendPropertyChanged("Description");
this.OnDescriptionChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Category", DbType="NVarChar(MAX)")]
public string Category
{
get
{
return this._Category;
}
set
{
if ((this._Category != value))
{
this.OnCategoryChanging(value);
this.SendPropertyChanging();
this._Category = value;
this.SendPropertyChanged("Category");
this.OnCategoryChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Photo", DbType="Image", UpdateCheck=UpdateCheck.Never)]
public System.Data.Linq.Binary Photo
{
get
{
return this._Photo;
}
set
{
if ((this._Photo != value))
{
this.OnPhotoChanging(value);
this.SendPropertyChanging();
this._Photo = value;
this.SendPropertyChanged("Photo");
this.OnPhotoChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Manufacturer", DbType="NVarChar(MAX)")]
public string Manufacturer
{
get
{
return this._Manufacturer;
}
set
{
if ((this._Manufacturer != value))
{
this.OnManufacturerChanging(value);
this.SendPropertyChanging();
this._Manufacturer = value;
this.SendPropertyChanged("Manufacturer");
this.OnManufacturerChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Prais", DbType="Money")]
public System.Nullable Prais
{
get
{
return this._Prais;
}
set
{
if ((this._Prais != value))
{
this.OnPraisChanging(value);
this.SendPropertyChanging();
this._Prais = value;
this.SendPropertyChanged("Prais");
this.OnPraisChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Единица_измерения", DbType="NVarChar(50)")]
public string Единица_измерения
{
get
{
return this._Единица_измерения;
}
set
{
if ((this._Единица_измерения != value))
{
this.OnЕдиница_измеренияChanging(value);
this.SendPropertyChanging();
this._Единица_измерения = value;
this.SendPropertyChanged("Единица_измерения");
this.OnЕдиница_измеренияChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Размер_макс_скидки", DbType="Int")]
public System.Nullable Размер_макс_скидки
{
get
{
return this._Размер_макс_скидки;
}
set
{
if ((this._Размер_макс_скидки != value))
{
this.OnРазмер_макс_скидкиChanging(value);
this.SendPropertyChanging();
this._Размер_макс_скидки = value;
this.SendPropertyChanged("Размер_макс_скидки");
this.OnРазмер_макс_скидкиChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Поставщик", DbType="NVarChar(50)")]
public string Поставщик
{
get
{
return this._Поставщик;
}
set
{
if ((this._Поставщик != value))
{
this.OnПоставщикChanging(value);
this.SendPropertyChanging();
this._Поставщик = value;
this.SendPropertyChanged("Поставщик");
this.OnПоставщикChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Действующая_Скидка", DbType="Int")]
public System.Nullable Действующая_Скидка
{
get
{
return this._Действующая_Скидка;
}
set
{
if ((this._Действующая_Скидка != value))
{
this.OnДействующая_СкидкаChanging(value);
this.SendPropertyChanging();
this._Действующая_Скидка = value;
this.SendPropertyChanged("Действующая_Скидка");
this.OnДействующая_СкидкаChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Количество_на_складе", DbType="Int")]
public System.Nullable Количество_на_складе
{
get
{
return this._Количество_на_складе;
}
set
{
if ((this._Количество_на_складе != value))
{
this.OnКоличество_на_складеChanging(value);
this.SendPropertyChanging();
this._Количество_на_складе = value;
this.SendPropertyChanged("Количество_на_складе");
this.OnКоличество_на_складеChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Ctatys", DbType="NVarChar(MAX)")]
public string Ctatys
{
get
{
return this._Ctatys;
}
set
{
if ((this._Ctatys != value))
{
this.OnCtatysChanging(value);
this.SendPropertyChanging();
this._Ctatys = value;
this.SendPropertyChanged("Ctatys");
this.OnCtatysChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderID", DbType="Int")]
public System.Nullable OrderID
{
get
{
return this._OrderID;
}
set
{
if ((this._OrderID != value))
{
this.OnOrderIDChanging(value);
this.SendPropertyChanging();
this._OrderID = value;
this.SendPropertyChanged("OrderID");
this.OnOrderIDChanged();
}
}
}
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