#pragma warning disable 1591 //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.Linq; using System.Data.Linq.Mapping; using System.Linq; using System.Linq.Expressions; using System.Reflection; [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="ZaaisterTest1")] public partial class ZaaisterModelDataContext : System.Data.Linq.DataContext { private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); #region Extensibility Method Definitions partial void OnCreated(); partial void InsertCurrentStock(CurrentStock instance); partial void UpdateCurrentStock(CurrentStock instance); partial void DeleteCurrentStock(CurrentStock instance); partial void InsertProduct(Product instance); partial void UpdateProduct(Product instance); partial void DeleteProduct(Product instance); #endregion public ZaaisterModelDataContext() : base(global::System.Configuration.ConfigurationManager.ConnectionStrings["ZaaisterTest1ConnectionString1"].ConnectionString, mappingSource) { OnCreated(); } public ZaaisterModelDataContext(string connection) : base(connection, mappingSource) { OnCreated(); } public ZaaisterModelDataContext(System.Data.IDbConnection connection) : base(connection, mappingSource) { OnCreated(); } public ZaaisterModelDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public ZaaisterModelDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public System.Data.Linq.Table CurrentStocks { get { return this.GetTable(); } } public System.Data.Linq.Table Products { get { return this.GetTable(); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CurrentStock")] public partial class CurrentStock : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _currentstockId; private string _currentstockBestelnr; private string _currentstockAmount; private System.Nullable _currentstockValAmount; private System.Nullable _currentstockDateTime; private string _currentstockAccount; private string _currentstockRemarks; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OncurrentstockIdChanging(System.Guid value); partial void OncurrentstockIdChanged(); partial void OncurrentstockBestelnrChanging(string value); partial void OncurrentstockBestelnrChanged(); partial void OncurrentstockAmountChanging(string value); partial void OncurrentstockAmountChanged(); partial void OncurrentstockValAmountChanging(System.Nullable value); partial void OncurrentstockValAmountChanged(); partial void OncurrentstockDateTimeChanging(System.Nullable value); partial void OncurrentstockDateTimeChanged(); partial void OncurrentstockAccountChanging(string value); partial void OncurrentstockAccountChanged(); partial void OncurrentstockRemarksChanging(string value); partial void OncurrentstockRemarksChanged(); #endregion public CurrentStock() { OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_currentstockId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] public System.Guid currentstockId { get { return this._currentstockId; } set { if ((this._currentstockId != value)) { this.OncurrentstockIdChanging(value); this.SendPropertyChanging(); this._currentstockId = value; this.SendPropertyChanged("currentstockId"); this.OncurrentstockIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_currentstockBestelnr", DbType="VarChar(50)")] public string currentstockBestelnr { get { return this._currentstockBestelnr; } set { if ((this._currentstockBestelnr != value)) { this.OncurrentstockBestelnrChanging(value); this.SendPropertyChanging(); this._currentstockBestelnr = value; this.SendPropertyChanged("currentstockBestelnr"); this.OncurrentstockBestelnrChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_currentstockAmount", DbType="VarChar(50)")] public string currentstockAmount { get { return this._currentstockAmount; } set { if ((this._currentstockAmount != value)) { this.OncurrentstockAmountChanging(value); this.SendPropertyChanging(); this._currentstockAmount = value; this.SendPropertyChanged("currentstockAmount"); this.OncurrentstockAmountChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_currentstockValAmount", DbType="Int")] public System.Nullable currentstockValAmount { get { return this._currentstockValAmount; } set { if ((this._currentstockValAmount != value)) { this.OncurrentstockValAmountChanging(value); this.SendPropertyChanging(); this._currentstockValAmount = value; this.SendPropertyChanged("currentstockValAmount"); this.OncurrentstockValAmountChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_currentstockDateTime", DbType="DateTime")] public System.Nullable currentstockDateTime { get { return this._currentstockDateTime; } set { if ((this._currentstockDateTime != value)) { this.OncurrentstockDateTimeChanging(value); this.SendPropertyChanging(); this._currentstockDateTime = value; this.SendPropertyChanged("currentstockDateTime"); this.OncurrentstockDateTimeChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_currentstockAccount", DbType="VarChar(50)")] public string currentstockAccount { get { return this._currentstockAccount; } set { if ((this._currentstockAccount != value)) { this.OncurrentstockAccountChanging(value); this.SendPropertyChanging(); this._currentstockAccount = value; this.SendPropertyChanged("currentstockAccount"); this.OncurrentstockAccountChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_currentstockRemarks", DbType="VarChar(50)")] public string currentstockRemarks { get { return this._currentstockRemarks; } set { if ((this._currentstockRemarks != value)) { this.OncurrentstockRemarksChanging(value); this.SendPropertyChanging(); this._currentstockRemarks = value; this.SendPropertyChanged("currentstockRemarks"); this.OncurrentstockRemarksChanged(); } } } 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)); } } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Product")] public partial class Product : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); private System.Guid _productId; private int _productBestelnr; private string _productArtikelnr; private string _productSorteernr; private string _productStatus; private string _productOmschrijving; private string _productMerk; private System.Nullable _productAantal; private System.Nullable _productInhoud; private string _productEenheid; private string _productVerpakking; private string _productDeelcolli; private string _productAfdeling; private string _productHoofdindeling; private System.Nullable _productStock; private System.Nullable _productStockNw; private string _productAccount; #region Extensibility Method Definitions partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); partial void OnproductIdChanging(System.Guid value); partial void OnproductIdChanged(); partial void OnproductBestelnrChanging(int value); partial void OnproductBestelnrChanged(); partial void OnproductArtikelnrChanging(string value); partial void OnproductArtikelnrChanged(); partial void OnproductSorteernrChanging(string value); partial void OnproductSorteernrChanged(); partial void OnproductStatusChanging(string value); partial void OnproductStatusChanged(); partial void OnproductOmschrijvingChanging(string value); partial void OnproductOmschrijvingChanged(); partial void OnproductMerkChanging(string value); partial void OnproductMerkChanged(); partial void OnproductAantalChanging(System.Nullable value); partial void OnproductAantalChanged(); partial void OnproductInhoudChanging(System.Nullable value); partial void OnproductInhoudChanged(); partial void OnproductEenheidChanging(string value); partial void OnproductEenheidChanged(); partial void OnproductVerpakkingChanging(string value); partial void OnproductVerpakkingChanged(); partial void OnproductDeelcolliChanging(string value); partial void OnproductDeelcolliChanged(); partial void OnproductAfdelingChanging(string value); partial void OnproductAfdelingChanged(); partial void OnproductHoofdindelingChanging(string value); partial void OnproductHoofdindelingChanged(); partial void OnproductStockChanging(System.Nullable value); partial void OnproductStockChanged(); partial void OnproductStockNwChanging(System.Nullable value); partial void OnproductStockNwChanged(); partial void OnproductAccountChanging(string value); partial void OnproductAccountChanged(); #endregion public Product() { OnCreated(); } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] public System.Guid productId { get { return this._productId; } set { if ((this._productId != value)) { this.OnproductIdChanging(value); this.SendPropertyChanging(); this._productId = value; this.SendPropertyChanged("productId"); this.OnproductIdChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productBestelnr", DbType="Int NOT NULL")] public int productBestelnr { get { return this._productBestelnr; } set { if ((this._productBestelnr != value)) { this.OnproductBestelnrChanging(value); this.SendPropertyChanging(); this._productBestelnr = value; this.SendPropertyChanged("productBestelnr"); this.OnproductBestelnrChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productArtikelnr", DbType="VarChar(50)")] public string productArtikelnr { get { return this._productArtikelnr; } set { if ((this._productArtikelnr != value)) { this.OnproductArtikelnrChanging(value); this.SendPropertyChanging(); this._productArtikelnr = value; this.SendPropertyChanged("productArtikelnr"); this.OnproductArtikelnrChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productSorteernr", DbType="VarChar(50)")] public string productSorteernr { get { return this._productSorteernr; } set { if ((this._productSorteernr != value)) { this.OnproductSorteernrChanging(value); this.SendPropertyChanging(); this._productSorteernr = value; this.SendPropertyChanged("productSorteernr"); this.OnproductSorteernrChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productStatus", DbType="VarChar(50)")] public string productStatus { get { return this._productStatus; } set { if ((this._productStatus != value)) { this.OnproductStatusChanging(value); this.SendPropertyChanging(); this._productStatus = value; this.SendPropertyChanged("productStatus"); this.OnproductStatusChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productOmschrijving", DbType="VarChar(50)")] public string productOmschrijving { get { return this._productOmschrijving; } set { if ((this._productOmschrijving != value)) { this.OnproductOmschrijvingChanging(value); this.SendPropertyChanging(); this._productOmschrijving = value; this.SendPropertyChanged("productOmschrijving"); this.OnproductOmschrijvingChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productMerk", DbType="VarChar(50)")] public string productMerk { get { return this._productMerk; } set { if ((this._productMerk != value)) { this.OnproductMerkChanging(value); this.SendPropertyChanging(); this._productMerk = value; this.SendPropertyChanged("productMerk"); this.OnproductMerkChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productAantal", DbType="Int")] public System.Nullable productAantal { get { return this._productAantal; } set { if ((this._productAantal != value)) { this.OnproductAantalChanging(value); this.SendPropertyChanging(); this._productAantal = value; this.SendPropertyChanged("productAantal"); this.OnproductAantalChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productInhoud", DbType="Int")] public System.Nullable productInhoud { get { return this._productInhoud; } set { if ((this._productInhoud != value)) { this.OnproductInhoudChanging(value); this.SendPropertyChanging(); this._productInhoud = value; this.SendPropertyChanged("productInhoud"); this.OnproductInhoudChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productEenheid", DbType="VarChar(50)")] public string productEenheid { get { return this._productEenheid; } set { if ((this._productEenheid != value)) { this.OnproductEenheidChanging(value); this.SendPropertyChanging(); this._productEenheid = value; this.SendPropertyChanged("productEenheid"); this.OnproductEenheidChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productVerpakking", DbType="VarChar(50)")] public string productVerpakking { get { return this._productVerpakking; } set { if ((this._productVerpakking != value)) { this.OnproductVerpakkingChanging(value); this.SendPropertyChanging(); this._productVerpakking = value; this.SendPropertyChanged("productVerpakking"); this.OnproductVerpakkingChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productDeelcolli", DbType="VarChar(50)")] public string productDeelcolli { get { return this._productDeelcolli; } set { if ((this._productDeelcolli != value)) { this.OnproductDeelcolliChanging(value); this.SendPropertyChanging(); this._productDeelcolli = value; this.SendPropertyChanged("productDeelcolli"); this.OnproductDeelcolliChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productAfdeling", DbType="VarChar(50)")] public string productAfdeling { get { return this._productAfdeling; } set { if ((this._productAfdeling != value)) { this.OnproductAfdelingChanging(value); this.SendPropertyChanging(); this._productAfdeling = value; this.SendPropertyChanged("productAfdeling"); this.OnproductAfdelingChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productHoofdindeling", DbType="VarChar(50)")] public string productHoofdindeling { get { return this._productHoofdindeling; } set { if ((this._productHoofdindeling != value)) { this.OnproductHoofdindelingChanging(value); this.SendPropertyChanging(); this._productHoofdindeling = value; this.SendPropertyChanged("productHoofdindeling"); this.OnproductHoofdindelingChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productStock", DbType="Decimal(18,2)")] public System.Nullable productStock { get { return this._productStock; } set { if ((this._productStock != value)) { this.OnproductStockChanging(value); this.SendPropertyChanging(); this._productStock = value; this.SendPropertyChanged("productStock"); this.OnproductStockChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productStockNw", DbType="Decimal(18,2)")] public System.Nullable productStockNw { get { return this._productStockNw; } set { if ((this._productStockNw != value)) { this.OnproductStockNwChanging(value); this.SendPropertyChanging(); this._productStockNw = value; this.SendPropertyChanged("productStockNw"); this.OnproductStockNwChanged(); } } } [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_productAccount", DbType="VarChar(50)")] public string productAccount { get { return this._productAccount; } set { if ((this._productAccount != value)) { this.OnproductAccountChanging(value); this.SendPropertyChanging(); this._productAccount = value; this.SendPropertyChanged("productAccount"); this.OnproductAccountChanged(); } } } 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