//
// <auto generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1302
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto generated>
//
namespace NET35CsDatacontextSqlMetal {
public partial class ContactDataContext : global::System.Data.Linq.DataContext {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ContactDataContext(string connection) :
base(connection) {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ContactDataContext(global::System.Data.IDbConnection connection) :
base(connection) {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public ContactDataContext() :
base(global::NET35CsDatacontextSqlMetal.Properties.Settings.Default.ContactDBConnectionString) {
}
public global::System.Data.Linq.Table<Contact> Contacts {
get {
return this.GetTable<Contact>();
}
}
}
[global::System.Data.Linq.Table(Name="dbo.Contact")]
public partial class Contact : global::System.Data.Linq.INotifyPropertyChanging, global::System.ComponentModel.INotifyPropertyChanged {
private int _ContactID;
private string _ContactName;
private string _ContactFirstName;
private string _ContactEmail;
private int _ContactTypeID;
private global::System.Nullable<int> _ContactAge;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public Contact() {
this._ContactID = default(int);
}
[global::System.Data.Linq.Column(Storage="_ContactID", Name="ContactID", DBType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDBGenerated=true, CanBeNull=false)]
public int ContactID {
get {
return this._ContactID;
}
}
[global::System.Data.Linq.Column(Storage="_ContactName", Name="ContactName", DBType="Char(100) NOT NULL", CanBeNull=false)]
public string ContactName {
get {
return this._ContactName;
}
set {
if ((this._ContactName != value)) {
this.OnPropertyChanging("ContactName");
this._ContactName = value;
this.OnPropertyChanged("ContactName");
}
}
}
[global::System.Data.Linq.Column(Storage="_ContactFirstName", Name="ContactFirstName", DBType="Char(100) NOT NULL", CanBeNull=false)]
public string ContactFirstName {
get {
return this._ContactFirstName;
}
set {
if ((this._ContactFirstName != value)) {
this.OnPropertyChanging("ContactFirstName");
this._ContactFirstName = value;
this.OnPropertyChanged("ContactFirstName");
}
}
}
[global::System.Data.Linq.Column(Storage="_ContactEmail", Name="ContactEmail", DBType="Char(250)")]
public string ContactEmail {
get {
return this._ContactEmail;
}
set {
if ((this._ContactEmail != value)) {
this.OnPropertyChanging("ContactEmail");
this._ContactEmail = value;
this.OnPropertyChanged("ContactEmail");
}
}
}
[global::System.Data.Linq.Column(Storage="_ContactTypeID", Name="ContactTypeID", DBType="Int NOT NULL", CanBeNull=false)]
public int ContactTypeID {
get {
return this._ContactTypeID;
}
set {
if ((this._ContactTypeID != value)) {
this.OnPropertyChanging("ContactTypeID");
this._ContactTypeID = value;
this.OnPropertyChanged("ContactTypeID");
}
}
}
[global::System.Data.Linq.Column(Storage="_ContactAge", Name="ContactAge", DBType="Int")]
public global::System.Nullable<int> ContactAge {
get {
return this._ContactAge;
}
set {
if ((this._ContactAge != value)) {
this.OnPropertyChanging("ContactAge");
this._ContactAge = value;
this.OnPropertyChanged("ContactAge");
}
}
}
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanging;
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected void OnPropertyChanging(string propertyName) {
if ((this.PropertyChanging != null)) {
this.PropertyChanging(this, new global::System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected void OnPropertyChanged(string propertyName) {
if ((this.PropertyChanged != null)) {
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(propertyName));
}
}
}
}
|