123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451 |
- #pragma warning disable 1591
- 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> Prodykt
- {
- get
- {
- return this.GetTable<Prodykt>();
- }
- }
- }
-
- [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<decimal> _Prais;
-
- private string _Единица_измерения;
-
- private System.Nullable<int> _Размер_макс_скидки;
-
- private string _Поставщик;
-
- private System.Nullable<int> _Действующая_Скидка;
-
- private System.Nullable<int> _Количество_на_складе;
-
- private string _Ctatys;
-
- private System.Nullable<int> _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<decimal> value);
- partial void OnPraisChanged();
- partial void OnЕдиница_измеренияChanging(string value);
- partial void OnЕдиница_измеренияChanged();
- partial void OnРазмер_макс_скидкиChanging(System.Nullable<int> value);
- partial void OnРазмер_макс_скидкиChanged();
- partial void OnПоставщикChanging(string value);
- partial void OnПоставщикChanged();
- partial void OnДействующая_СкидкаChanging(System.Nullable<int> value);
- partial void OnДействующая_СкидкаChanged();
- partial void OnКоличество_на_складеChanging(System.Nullable<int> value);
- partial void OnКоличество_на_складеChanged();
- partial void OnCtatysChanging(string value);
- partial void OnCtatysChanged();
- partial void OnOrderIDChanging(System.Nullable<int> 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<decimal> 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<int> Размер_макс_скидки
- {
- 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<int> Действующая_Скидка
- {
- 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<int> Количество_на_складе
- {
- 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<int> 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
|