topical media & game development

talk show tell print

#mobile-application-08-GravityWorks.DerbyApp.WP7-GravityWorks.DerbyApp.WP7-Service-References-Service-Reference.cs / cs



  //------------------------------------------------------------------------------
  // <auto-generated>
  //     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.
  // </auto-generated>
  //------------------------------------------------------------------------------
  
  // Original file name:
  // Generation date: 4/9/2012 8:57:21 PM
  namespace GravityWorks.DerbyApp.WP7.Service
  {
      
  
<summary> There are no comments for DerbyNamesEntities in the schema. </summary> public partial class DerbyNamesEntities : global::System.Data.Services.Client.DataServiceContext { <summary> Initialize a new DerbyNamesEntities object. </summary> [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<global::System.Type, string>(this.ResolveNameFromType); this.ResolveType = new global::System.Func<string, global::System.Type>(this.ResolveTypeFromName); this.OnContextCreated(); } partial void OnContextCreated(); <summary> 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. </summary> [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; } <summary> 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. </summary> [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; } <summary> There are no comments for DerbyNames in the schema. </summary> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")] public global::System.Data.Services.Client.DataServiceQuery<DerbyName> DerbyNames { get { if ((this._DerbyNames == null)) { this._DerbyNames = base.CreateQuery<DerbyName>("DerbyNames"); } return this._DerbyNames; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")] private global::System.Data.Services.Client.DataServiceQuery<DerbyName> _DerbyNames; <summary> There are no comments for Leagues in the schema. </summary> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")] public global::System.Data.Services.Client.DataServiceQuery<League> Leagues { get { if ((this._Leagues == null)) { this._Leagues = base.CreateQuery<League>("Leagues"); } return this._Leagues; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")] private global::System.Data.Services.Client.DataServiceQuery<League> _Leagues; <summary> There are no comments for DerbyNames in the schema. </summary> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")] public void AddToDerbyNames(DerbyName derbyName) { base.AddObject("DerbyNames", derbyName); } <summary> There are no comments for Leagues in the schema. </summary> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")] public void AddToLeagues(League league) { base.AddObject("Leagues", league); } } <summary> There are no comments for DerbyNamesModel.DerbyName in the schema. </summary> <KeyProperties> DerbyNameId </KeyProperties> [global::System.Data.Services.Common.EntitySetAttribute("DerbyNames")] [global::System.Data.Services.Common.DataServiceKeyAttribute("DerbyNameId")] public partial class DerbyName : global::System.ComponentModel.INotifyPropertyChanged { <summary> Create a new DerbyName object. </summary> <param name="derbyNameId">Initial value of DerbyNameId.</param> [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; } <summary> There are no comments for Property DerbyNameId in the schema. </summary> [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(); <summary> There are no comments for Property Name in the schema. </summary> [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(); <summary> There are no comments for Property Number in the schema. </summary> [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(); <summary> There are no comments for Property DateAdded in the schema. </summary> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")] public global::System.Nullable<global::System.DateTime> 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<global::System.DateTime> _DateAdded; partial void OnDateAddedChanging(global::System.Nullable<global::System.DateTime> value); partial void OnDateAddedChanged(); <summary> There are no comments for Property League in the schema. </summary> [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)); } } } <summary> There are no comments for DerbyNamesModel.League in the schema. </summary> <KeyProperties> LeagueId </KeyProperties> [global::System.Data.Services.Common.EntitySetAttribute("Leagues")] [global::System.Data.Services.Common.DataServiceKeyAttribute("LeagueId")] public partial class League : global::System.ComponentModel.INotifyPropertyChanged { <summary> Create a new League object. </summary> <param name="leagueId">Initial value of LeagueId.</param> <param name="leagueName">Initial value of LeagueName.</param> [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; } <summary> There are no comments for Property LeagueId in the schema. </summary> [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(); <summary> There are no comments for Property LeagueName in the schema. </summary> [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(); <summary> There are no comments for Property URL in the schema. </summary> [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(); <summary> There are no comments for Property StateProvince in the schema. </summary> [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(); <summary> There are no comments for Property CountryCode in the schema. </summary> [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)); } } } }

[] readme course(s) preface I 1 2 II 3 4 III 5 6 7 IV 8 9 10 V 11 12 afterthought(s) appendix reference(s) example(s) resource(s) _

(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-2780434-1"; urchinTracker(); </script>