Mini Kabibi Habibi
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17626
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace DevExpress.Web.Demos.Models
{
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="NewsGroups")]
public partial class NewsGroupsDataContext : System.Data.Linq.DataContext
{
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
#region Extensibility Method Definitions
partial void OnCreated();
partial void InsertThread(Thread instance);
partial void UpdateThread(Thread instance);
partial void DeleteThread(Thread instance);
#endregion
public NewsGroupsDataContext() :
base(global::System.Configuration.ConfigurationManager.ConnectionStrings["NewsGroupsConnectionString"].ConnectionString, mappingSource)
{
OnCreated();
}
public NewsGroupsDataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
public NewsGroupsDataContext(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public NewsGroupsDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public NewsGroupsDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public System.Data.Linq.Table<Thread> Threads
{
get
{
return this.GetTable<Thread>();
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Threads")]
public partial class Thread : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _ID;
private System.Nullable<int> _ParentID;
private string _Subject;
private string _From;
private string _Text;
private System.DateTime _Date;
private System.Nullable<bool> _IsNew;
private System.Nullable<bool> _HasAttachment;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnIDChanging(int value);
partial void OnIDChanged();
partial void OnParentIDChanging(System.Nullable<int> value);
partial void OnParentIDChanged();
partial void OnSubjectChanging(string value);
partial void OnSubjectChanged();
partial void OnFromChanging(string value);
partial void OnFromChanged();
partial void OnTextChanging(string value);
partial void OnTextChanged();
partial void OnDateChanging(System.DateTime value);
partial void OnDateChanged();
partial void OnIsNewChanging(System.Nullable<bool> value);
partial void OnIsNewChanged();
partial void OnHasAttachmentChanging(System.Nullable<bool> value);
partial void OnHasAttachmentChanged();
#endregion
public Thread()
{
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true, UpdateCheck=UpdateCheck.Never)]
public int ID
{
get
{
return this._ID;
}
set
{
if ((this._ID != value))
{
this.OnIDChanging(value);
this.SendPropertyChanging();
this._ID = value;
this.SendPropertyChanged("ID");
this.OnIDChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ParentID", DbType="Int", UpdateCheck=UpdateCheck.Never)]
public System.Nullable<int> ParentID
{
get
{
return this._ParentID;
}
set
{
if ((this._ParentID != value))
{
this.OnParentIDChanging(value);
this.SendPropertyChanging();
this._ParentID = value;
this.SendPropertyChanged("ParentID");
this.OnParentIDChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subject", DbType="NVarChar(50)", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
public string Subject
{
get
{
return this._Subject;
}
set
{
if ((this._Subject != value))
{
this.OnSubjectChanging(value);
this.SendPropertyChanging();
this._Subject = value;
this.SendPropertyChanged("Subject");
this.OnSubjectChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="[From]", Storage="_From", DbType="NVarChar(50)", CanBeNull=false, UpdateCheck=UpdateCheck.Never)]
public string From
{
get
{
return this._From;
}
set
{
if ((this._From != value))
{
this.OnFromChanging(value);
this.SendPropertyChanging();
this._From = value;
this.SendPropertyChanged("From");
this.OnFromChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Text", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
public string Text
{
get
{
return this._Text;
}
set
{
if ((this._Text != value))
{
this.OnTextChanging(value);
this.SendPropertyChanging();
this._Text = value;
this.SendPropertyChanged("Text");
this.OnTextChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Date", DbType="DateTime2", UpdateCheck=UpdateCheck.Never)]
public System.DateTime Date
{
get
{
return this._Date;
}
set
{
if ((this._Date != value))
{
this.OnDateChanging(value);
this.SendPropertyChanging();
this._Date = value;
this.SendPropertyChanged("Date");
this.OnDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsNew", DbType="Bit", UpdateCheck=UpdateCheck.Never)]
public System.Nullable<bool> IsNew
{
get
{
return this._IsNew;
}
set
{
if ((this._IsNew != value))
{
this.OnIsNewChanging(value);
this.SendPropertyChanging();
this._IsNew = value;
this.SendPropertyChanged("IsNew");
this.OnIsNewChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HasAttachment", DbType="Bit", UpdateCheck=UpdateCheck.Never)]
public System.Nullable<bool> HasAttachment
{
get
{
return this._HasAttachment;
}
set
{
if ((this._HasAttachment != value))
{
this.OnHasAttachmentChanging(value);
this.SendPropertyChanging();
this._HasAttachment = value;
this.SendPropertyChanged("HasAttachment");
this.OnHasAttachmentChanged();
}
}
}
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