//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.17379
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
// Original file name:
// Generation date: 4/9/2012 8:57:21 PM
namespace GravityWorks.DerbyApp.WP7.Service
{
///
/// There are no comments for DerbyNamesEntities in the schema.
///
public partial class DerbyNamesEntities : global::System.Data.Services.Client.DataServiceContext
{
///
/// Initialize a new DerbyNamesEntities object.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public DerbyNamesEntities(global::System.Uri serviceRoot) :
base(serviceRoot)
{
this.ResolveName = new global::System.Func(this.ResolveNameFromType);
this.ResolveType = new global::System.Func(this.ResolveTypeFromName);
this.OnContextCreated();
}
partial void OnContextCreated();
///
/// Since the namespace configured for this service reference
/// in Visual Studio is different from the one indicated in the
/// server schema, use type-mappers to map between the two.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected global::System.Type ResolveTypeFromName(string typeName)
{
if (typeName.StartsWith("DerbyNamesModel", global::System.StringComparison.Ordinal))
{
return this.GetType().Assembly.GetType(string.Concat("GravityWorks.DerbyApp.WP7.Service", typeName.Substring(15)), false);
}
return null;
}
///
/// Since the namespace configured for this service reference
/// in Visual Studio is different from the one indicated in the
/// server schema, use type-mappers to map between the two.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected string ResolveNameFromType(global::System.Type clientType)
{
if (clientType.Namespace.Equals("GravityWorks.DerbyApp.WP7.Service", global::System.StringComparison.Ordinal))
{
return string.Concat("DerbyNamesModel.", clientType.Name);
}
return null;
}
///
/// There are no comments for DerbyNames in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceQuery DerbyNames
{
get
{
if ((this._DerbyNames == null))
{
this._DerbyNames = base.CreateQuery("DerbyNames");
}
return this._DerbyNames;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceQuery _DerbyNames;
///
/// There are no comments for Leagues in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Data.Services.Client.DataServiceQuery Leagues
{
get
{
if ((this._Leagues == null))
{
this._Leagues = base.CreateQuery("Leagues");
}
return this._Leagues;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Data.Services.Client.DataServiceQuery _Leagues;
///
/// There are no comments for DerbyNames in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public void AddToDerbyNames(DerbyName derbyName)
{
base.AddObject("DerbyNames", derbyName);
}
///
/// There are no comments for Leagues in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public void AddToLeagues(League league)
{
base.AddObject("Leagues", league);
}
}
///
/// There are no comments for DerbyNamesModel.DerbyName in the schema.
///
///
/// DerbyNameId
///
[global::System.Data.Services.Common.EntitySetAttribute("DerbyNames")]
[global::System.Data.Services.Common.DataServiceKeyAttribute("DerbyNameId")]
public partial class DerbyName : global::System.ComponentModel.INotifyPropertyChanged
{
///
/// Create a new DerbyName object.
///
/// Initial value of DerbyNameId.
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public static DerbyName CreateDerbyName(int derbyNameId)
{
DerbyName derbyName = new DerbyName();
derbyName.DerbyNameId = derbyNameId;
return derbyName;
}
///
/// There are no comments for Property DerbyNameId in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public int DerbyNameId
{
get
{
return this._DerbyNameId;
}
set
{
this.OnDerbyNameIdChanging(value);
this._DerbyNameId = value;
this.OnDerbyNameIdChanged();
this.OnPropertyChanged("DerbyNameId");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private int _DerbyNameId;
partial void OnDerbyNameIdChanging(int value);
partial void OnDerbyNameIdChanged();
///
/// There are no comments for Property Name in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Name
{
get
{
return this._Name;
}
set
{
this.OnNameChanging(value);
this._Name = value;
this.OnNameChanged();
this.OnPropertyChanged("Name");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Name;
partial void OnNameChanging(string value);
partial void OnNameChanged();
///
/// There are no comments for Property Number in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Number
{
get
{
return this._Number;
}
set
{
this.OnNumberChanging(value);
this._Number = value;
this.OnNumberChanged();
this.OnPropertyChanged("Number");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _Number;
partial void OnNumberChanging(string value);
partial void OnNumberChanged();
///
/// There are no comments for Property DateAdded in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public global::System.Nullable DateAdded
{
get
{
return this._DateAdded;
}
set
{
this.OnDateAddedChanging(value);
this._DateAdded = value;
this.OnDateAddedChanged();
this.OnPropertyChanged("DateAdded");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private global::System.Nullable _DateAdded;
partial void OnDateAddedChanging(global::System.Nullable value);
partial void OnDateAddedChanged();
///
/// There are no comments for Property League in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string League
{
get
{
return this._League;
}
set
{
this.OnLeagueChanging(value);
this._League = value;
this.OnLeagueChanged();
this.OnPropertyChanged("League");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _League;
partial void OnLeagueChanging(string value);
partial void OnLeagueChanged();
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
///
/// There are no comments for DerbyNamesModel.League in the schema.
///
///
/// LeagueId
///
[global::System.Data.Services.Common.EntitySetAttribute("Leagues")]
[global::System.Data.Services.Common.DataServiceKeyAttribute("LeagueId")]
public partial class League : global::System.ComponentModel.INotifyPropertyChanged
{
///
/// Create a new League object.
///
/// Initial value of LeagueId.
/// Initial value of LeagueName.
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public static League CreateLeague(int leagueId, string leagueName)
{
League league = new League();
league.LeagueId = leagueId;
league.LeagueName = leagueName;
return league;
}
///
/// There are no comments for Property LeagueId in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public int LeagueId
{
get
{
return this._LeagueId;
}
set
{
this.OnLeagueIdChanging(value);
this._LeagueId = value;
this.OnLeagueIdChanged();
this.OnPropertyChanged("LeagueId");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private int _LeagueId;
partial void OnLeagueIdChanging(int value);
partial void OnLeagueIdChanged();
///
/// There are no comments for Property LeagueName in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string LeagueName
{
get
{
return this._LeagueName;
}
set
{
this.OnLeagueNameChanging(value);
this._LeagueName = value;
this.OnLeagueNameChanged();
this.OnPropertyChanged("LeagueName");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _LeagueName;
partial void OnLeagueNameChanging(string value);
partial void OnLeagueNameChanged();
///
/// There are no comments for Property URL in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string URL
{
get
{
return this._URL;
}
set
{
this.OnURLChanging(value);
this._URL = value;
this.OnURLChanged();
this.OnPropertyChanged("URL");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _URL;
partial void OnURLChanging(string value);
partial void OnURLChanged();
///
/// There are no comments for Property StateProvince in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string StateProvince
{
get
{
return this._StateProvince;
}
set
{
this.OnStateProvinceChanging(value);
this._StateProvince = value;
this.OnStateProvinceChanged();
this.OnPropertyChanged("StateProvince");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _StateProvince;
partial void OnStateProvinceChanging(string value);
partial void OnStateProvinceChanged();
///
/// There are no comments for Property CountryCode in the schema.
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string CountryCode
{
get
{
return this._CountryCode;
}
set
{
this.OnCountryCodeChanging(value);
this._CountryCode = value;
this.OnCountryCodeChanged();
this.OnPropertyChanged("CountryCode");
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
private string _CountryCode;
partial void OnCountryCodeChanging(string value);
partial void OnCountryCodeChanged();
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
protected virtual void OnPropertyChanged(string property)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
}
}
}
}