Вы находитесь на странице: 1из 180

//-----------------------------------------------------------------------------// <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.

1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-----------------------------------------------------------------------------namespace { using using using using using using using using using Sabre System; System.Collections.Generic; System.ComponentModel; System.ComponentModel.DataAnnotations; System.Linq; System.ServiceModel.DomainServices; System.ServiceModel.DomainServices.Client; System.ServiceModel.DomainServices.Client.ApplicationServices; Sabre.Web;

/// <summary> /// Context for the RIA application. /// </summary> /// <remarks> /// This context extends the base to make application services and types ava ilable /// for consumption from code and xaml. /// </remarks> public sealed partial class WebContext : WebContextBase { #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); #endregion /// <summary> /// Initializes a new instance of the WebContext class. /// </summary> public WebContext() { this.OnCreated(); } /// <summary> /// Gets the context that is registered as a lifetime object with the cu rrent application. /// </summary> /// <exception cref="InvalidOperationException"> is thrown if there is n o current application,

/// no contexts have been added, or more than one context has been added . /// </exception> /// <seealso cref="System.Windows.Application.ApplicationLifetimeObjects "/> public new static WebContext Current { get { return ((WebContext)(WebContextBase.Current)); } } /// <summary> /// Gets a user representing the authenticated identity. /// </summary> public new AppUser User { get { return ((AppUser)(base.User)); } } } } namespace { using using using using using using using using using using using using using using Sabre.Web System; System.Collections.Generic; System.ComponentModel; System.ComponentModel.DataAnnotations; System.Linq; System.Runtime.Serialization; System.ServiceModel; System.ServiceModel.DomainServices; System.ServiceModel.DomainServices.Client; System.ServiceModel.DomainServices.Client.ApplicationServices; System.ServiceModel.Web; System.Xml.Serialization; Sabre.Web.Models; Sabre.Web.Resources;

/// <summary> /// The 'AppUser' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class AppUser : Entity, global::System.Security.Princi pal.IIdentity, global::System.Security.Principal.IPrincipal { private string _friendlyName; private string _name = string.Empty; private IEnumerable<string> _roles; #region Extensibility Method Definitions

/// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnFriendlyNameChanging(string value); partial void OnFriendlyNameChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); partial void OnRolesChanging(IEnumerable<string> value); partial void OnRolesChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="AppUser"/> class. /// </summary> public AppUser() { this.OnCreated(); } /// <summary> /// Gets or sets the 'FriendlyName' value. /// </summary> [DataMember()] public string FriendlyName { get { return this._friendlyName; } set { if ((this._friendlyName != value)) { this.OnFriendlyNameChanging(value); this.RaiseDataMemberChanging("FriendlyName"); this.ValidateProperty("FriendlyName", value); this._friendlyName = value; this.RaiseDataMemberChanged("FriendlyName"); this.OnFriendlyNameChanged(); } } } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public string Name { get { return this._name;

} set { if ((this._name != value)) { this.OnNameChanging(value); this.ValidateProperty("Name", value); this._name = value; this.RaisePropertyChanged("Name"); this.OnNameChanged(); this.RaisePropertyChanged("IsAuthenticated"); } } } /// <summary> /// Gets or sets the 'Roles' value. /// </summary> [DataMember()] [Editable(false)] public IEnumerable<string> Roles { get { return this._roles; } set { if ((this._roles != value)) { this.OnRolesChanging(value); this.ValidateProperty("Roles", value); this._roles = value; this.RaisePropertyChanged("Roles"); this.OnRolesChanged(); } } } string global::System.Security.Principal.IIdentity.AuthenticationType { get { return string.Empty; } } /// /// /// /// /// r empty. /// </remarks> public bool IsAuthenticated { get { return (true != string.IsNullOrEmpty(this.Name)); } <summary> Gets a value indicating whether the identity is authenticated. </summary> <remarks> This value is <c>true</c> if <see cref="Name"/> is not <c>null</c> o

} string global::System.Security.Principal.IIdentity.Name { get { return this.Name; } } global::System.Security.Principal.IIdentity global::System.Security.Prin cipal.IPrincipal.Identity { get { return this; } } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._name; } /// <summary> /// Return whether the principal is in the role. /// </summary> /// <remarks> /// Returns whether the specified role is contained in the roles. /// This implementation is case sensitive. /// </remarks> /// <param name="role">The name of the role for which to check membershi p.</param> /// <returns>Whether the principal is in the role.</returns> public bool IsInRole(string role) { if ((this.Roles == null)) { return false; } return global::System.Linq.Enumerable.Contains(this.Roles, role); } } /// <summary> /// The domain context corresponding to the 'AuthenticationService' domain s ervice. /// </summary> public sealed partial class AuthenticationContext : global::System.ServiceMo del.DomainServices.Client.ApplicationServices.AuthenticationDomainContextBase { #region Extensibility Method Definitions

/// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); #endregion /// <summary> /// Initializes a new instance of the <see cref="AuthenticationContext"/ > class. /// </summary> public AuthenticationContext() : this(new WebDomainClient<IAuthenticationServiceContract>(new Uri ("Sabre-Web-AuthenticationService.svc", UriKind.Relative))) { } /// <summary> /// Initializes a new instance of the <see cref="AuthenticationContext"/ > class with the specified service URI. /// </summary> /// <param name="serviceUri">The AuthenticationService service URI.</par am> public AuthenticationContext(Uri serviceUri) : this(new WebDomainClient<IAuthenticationServiceContract>(service Uri)) { } /// <summary> /// Initializes a new instance of the <see cref="AuthenticationContext"/ > class with the specified <paramref name="domainClient"/>. /// </summary> /// <param name="domainClient">The DomainClient instance to use for this domain context.</param> public AuthenticationContext(DomainClient domainClient) : base(domainClient) { this.OnCreated(); } /// <summary> /// Gets the set of <see cref="AppUser"/> entities that have been loaded into this <see cref="AuthenticationContext"/> instance. /// </summary> public EntitySet<AppUser> AppUsers { get { return base.EntityContainer.GetEntitySet<AppUser>(); } } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="App User"/> entities using the 'GetUser' query. /// </summary>

/// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ap pUser"/> entities.</returns> public EntityQuery<AppUser> GetUserQuery() { this.ValidateMethod("GetUserQuery", null); return base.CreateQuery<AppUser>("GetUser", null, false, false); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="App User"/> entities using the 'Login' query. /// </summary> /// <param name="userName">The value for the 'userName' parameter of the query.</param> /// <param name="password">The value for the 'password' parameter of the query.</param> /// <param name="isPersistent">The value for the 'isPersistent' paramete r of the query.</param> /// <param name="customData">The value for the 'customData' parameter of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ap pUser"/> entities.</returns> public EntityQuery<AppUser> LoginQuery(string userName, string password, bool isPersistent, string customData) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("userName", userName); parameters.Add("password", password); parameters.Add("isPersistent", isPersistent); parameters.Add("customData", customData); this.ValidateMethod("LoginQuery", parameters); return base.CreateQuery<AppUser>("Login", parameters, true, false); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="App User"/> entities using the 'Logout' query. /// </summary> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ap pUser"/> entities.</returns> public EntityQuery<AppUser> LogoutQuery() { this.ValidateMethod("LogoutQuery", null); return base.CreateQuery<AppUser>("Logout", null, true, false); } /// <summary> /// Creates a new entity container for this domain context's entity sets . /// </summary> /// <returns>A new container instance.</returns> protected override EntityContainer CreateEntityContainer() { return new AuthenticationContextEntityContainer(); } /// <summary> /// Service contract for the 'AuthenticationService' domain service. /// </summary>

[ServiceContract()] public interface IAuthenticationServiceContract { /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/AuthenticationService/GetUserDomainServiceFault", Name="DomainServiceFault", N amespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Aut henticationService/GetUser", ReplyAction="http://tempuri.org/AuthenticationServi ce/GetUserResponse")] [WebGet()] IAsyncResult BeginGetUser(AsyncCallback callback, object asyncState) ; /// /// /// /// r'.</param> /// <returns>The 'QueryResult' returned from the 'GetUser' operation .</returns> QueryResult<AppUser> EndGetUser(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'Login' operation. /// </summary> /// <param name="userName">The value for the 'userName' parameter of this action.</param> /// <param name="password">The value for the 'password' parameter of this action.</param> /// <param name="isPersistent">The value for the 'isPersistent' para meter of this action.</param> /// <param name="customData">The value for the 'customData' paramete r of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/AuthenticationService/LoginDomainServiceFault", Name="DomainServiceFault", Nam espace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Aut henticationService/Login", ReplyAction="http://tempuri.org/AuthenticationService /LoginResponse")] IAsyncResult BeginLogin(string userName, string password, bool isPer sistent, string customData, AsyncCallback callback, object asyncState); /// /// /// /// .</param> /// <returns>The 'QueryResult' returned from the 'Login' operation.< <summary> Completes the asynchronous operation begun by 'BeginLogin'. </summary> <param name="result">The IAsyncResult returned from 'BeginLogin' <summary> Completes the asynchronous operation begun by 'BeginGetUser'. </summary> <param name="result">The IAsyncResult returned from 'BeginGetUse <summary> Asynchronously invokes the 'GetUser' operation. </summary> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request

/returns> QueryResult<AppUser> EndLogin(IAsyncResult result); /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/AuthenticationService/LogoutDomainServiceFault", Name="DomainServiceFault", Na mespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Aut henticationService/Logout", ReplyAction="http://tempuri.org/AuthenticationServic e/LogoutResponse")] IAsyncResult BeginLogout(AsyncCallback callback, object asyncState); /// /// /// /// '.</param> /// <returns>The 'QueryResult' returned from the 'Logout' operation. </returns> QueryResult<AppUser> EndLogout(IAsyncResult result); /// /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/AuthenticationService/SubmitChangesDomainServiceFault", Name="DomainServiceFau lt", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Aut henticationService/SubmitChanges", ReplyAction="http://tempuri.org/Authenticatio nService/SubmitChangesResponse")] IAsyncResult BeginSubmitChanges(IEnumerable<ChangeSetEntry> changeSe t, AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginSubmitChange s'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginSubmit Changes'.</param> /// <returns>The collection of change-set entry elements returned fr om 'SubmitChanges'.</returns> IEnumerable<ChangeSetEntry> EndSubmitChanges(IAsyncResult result); } internal sealed class AuthenticationContextEntityContainer : EntityConta iner { public AuthenticationContextEntityContainer() <summary> Asynchronously invokes the 'SubmitChanges' operation. </summary> <param name="changeSet">The change-set to submit.</param> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request <summary> Completes the asynchronous operation begun by 'BeginLogout'. </summary> <param name="result">The IAsyncResult returned from 'BeginLogout <summary> Asynchronously invokes the 'Logout' operation. </summary> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request

{ this.CreateEntitySet<AppUser>(EntitySetOperations.Edit); } } } /// <summary> /// The 'Channel' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class Channel : Entity { private int _channelId; private int _displaySequenceNum; private EntityRef<Game> _game; private int _gameId; private string _name; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnChannelIdChanging(int value); partial void OnChannelIdChanged(); partial void OnDisplaySequenceNumChanging(int value); partial void OnDisplaySequenceNumChanged(); partial void OnGameIdChanging(int value); partial void OnGameIdChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="Channel"/> class. /// </summary> public Channel() { this.OnCreated(); } /// <summary> /// Gets or sets the 'ChannelId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int ChannelId

{ get { return this._channelId; } set { if ((this._channelId != value)) { this.OnChannelIdChanging(value); this.ValidateProperty("ChannelId", value); this._channelId = value; this.RaisePropertyChanged("ChannelId"); this.OnChannelIdChanged(); } } } /// <summary> /// Gets or sets the 'DisplaySequenceNum' value. /// </summary> [DataMember()] public int DisplaySequenceNum { get { return this._displaySequenceNum; } set { if ((this._displaySequenceNum != value)) { this.OnDisplaySequenceNumChanging(value); this.RaiseDataMemberChanging("DisplaySequenceNum"); this.ValidateProperty("DisplaySequenceNum", value); this._displaySequenceNum = value; this.RaiseDataMemberChanged("DisplaySequenceNum"); this.OnDisplaySequenceNumChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="Game"/> entity. /// </summary> [Association("Game_Channel", "GameId", "GameId", IsForeignKey=true)] [XmlIgnore()] public Game Game { get { if ((this._game == null)) { this._game = new EntityRef<Game>(this, "Game", this.FilterGa me); } return this._game.Entity; } set {

Game previous = this.Game; if ((previous != value)) { this.ValidateProperty("Game", value); if ((previous != null)) { this._game.Entity = null; previous.Channels.Remove(this); } if ((value != null)) { this.GameId = value.GameId; } else { this.GameId = default(int); } this._game.Entity = value; if ((value != null)) { value.Channels.Add(this); } this.RaisePropertyChanged("Game"); } } } /// <summary> /// Gets or sets the 'GameId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int GameId { get { return this._gameId; } set { if ((this._gameId != value)) { this.OnGameIdChanging(value); this.RaiseDataMemberChanging("GameId"); this.ValidateProperty("GameId", value); this._gameId = value; this.RaiseDataMemberChanged("GameId"); this.OnGameIdChanged(); } } } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] [Required()] [StringLength(50)] public string Name {

get { return this._name; } set { if ((this._name != value)) { this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value); this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } } private bool FilterGame(Game entity) { return (entity.GameId == this.GameId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._channelId; } } /// <summary> /// The 'Company' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class Company : Entity { private int _companyId; private int _displaySequenceNum; private EntityRef<Game> _game; private int _gameId; private EntityCollection<MarketIntel> _marketIntels; private string _name; private EntityCollection<Team> _teams; #region Extensibility Method Definitions /// <summary>

/// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnCompanyIdChanging(int value); partial void OnCompanyIdChanged(); partial void OnDisplaySequenceNumChanging(int value); partial void OnDisplaySequenceNumChanged(); partial void OnGameIdChanging(int value); partial void OnGameIdChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="Company"/> class. /// </summary> public Company() { this.OnCreated(); } /// <summary> /// Gets or sets the 'CompanyId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int CompanyId { get { return this._companyId; } set { if ((this._companyId != value)) { this.OnCompanyIdChanging(value); this.ValidateProperty("CompanyId", value); this._companyId = value; this.RaisePropertyChanged("CompanyId"); this.OnCompanyIdChanged(); } } } /// <summary> /// Gets or sets the 'DisplaySequenceNum' value. /// </summary> [DataMember()] public int DisplaySequenceNum { get { return this._displaySequenceNum;

} set { if ((this._displaySequenceNum != value)) { this.OnDisplaySequenceNumChanging(value); this.RaiseDataMemberChanging("DisplaySequenceNum"); this.ValidateProperty("DisplaySequenceNum", value); this._displaySequenceNum = value; this.RaiseDataMemberChanged("DisplaySequenceNum"); this.OnDisplaySequenceNumChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="Game"/> entity. /// </summary> [Association("Game_Company", "GameId", "GameId", IsForeignKey=true)] [XmlIgnore()] public Game Game { get { if ((this._game == null)) { this._game = new EntityRef<Game>(this, "Game", this.FilterGa me); } return this._game.Entity; } set { Game previous = this.Game; if ((previous != value)) { this.ValidateProperty("Game", value); if ((previous != null)) { this._game.Entity = null; previous.Companies.Remove(this); } if ((value != null)) { this.GameId = value.GameId; } else { this.GameId = default(int); } this._game.Entity = value; if ((value != null)) { value.Companies.Add(this); } this.RaisePropertyChanged("Game"); } } }

/// <summary> /// Gets or sets the 'GameId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int GameId { get { return this._gameId; } set { if ((this._gameId != value)) { this.OnGameIdChanging(value); this.RaiseDataMemberChanging("GameId"); this.ValidateProperty("GameId", value); this._gameId = value; this.RaiseDataMemberChanged("GameId"); this.OnGameIdChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="MarketIntel"/> entities . /// </summary> [Association("Company_MarketIntel", "CompanyId", "CompanyId")] [XmlIgnore()] public EntityCollection<MarketIntel> MarketIntels { get { if ((this._marketIntels == null)) { this._marketIntels = new EntityCollection<MarketIntel>(this, "MarketIntels", this.FilterMarketIntels, this.AttachMarketIntels, this.DetachMa rketIntels); } return this._marketIntels; } } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] [Required()] [StringLength(50)] public string Name { get { return this._name; } set { if ((this._name != value))

{ this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value); this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="Team"/> entities. /// </summary> [Association("Company_Team", "CompanyId", "CompanyId")] [XmlIgnore()] public EntityCollection<Team> Teams { get { if ((this._teams == null)) { this._teams = new EntityCollection<Team>(this, "Teams", this .FilterTeams, this.AttachTeams, this.DetachTeams); } return this._teams; } } private bool FilterGame(Game entity) { return (entity.GameId == this.GameId); } private void AttachMarketIntels(MarketIntel entity) { entity.Company = this; } private void DetachMarketIntels(MarketIntel entity) { entity.Company = null; } private bool FilterMarketIntels(MarketIntel entity) { return (entity.CompanyId == this.CompanyId); } private void AttachTeams(Team entity) { entity.Company = this; } private void DetachTeams(Team entity) { entity.Company = null; } private bool FilterTeams(Team entity)

{ return (entity.CompanyId == this.CompanyId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._companyId; } } public enum CreateUserStatus { Success = 0, InvalidUserName = 1, InvalidPassword = 2, InvalidQuestion = 3, InvalidAnswer = 4, InvalidEmail = 5, DuplicateUserName = 6, DuplicateEmail = 7, Failure = 8, } /// <summary> /// The 'DecisionSet' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class DecisionSet : Entity { private Nullable<decimal> _budgetRemainingAmount; private int _decisionSetId; private EntityCollection<DecisionSetProduct> _decisionSetProducts; private string _description; private DateTime _lastUpdatedDateTime; private int _recordedByUserId; private EntityRef<TeamPeriod> _teamPeriod;

private int _teamPeriodId; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnBudgetRemainingAmountChanging(Nullable<decimal> value); partial void OnBudgetRemainingAmountChanged(); partial void OnDecisionSetIdChanging(int value); partial void OnDecisionSetIdChanged(); partial void OnDescriptionChanging(string value); partial void OnDescriptionChanged(); partial void OnLastUpdatedDateTimeChanging(DateTime value); partial void OnLastUpdatedDateTimeChanged(); partial void OnRecordedByUserIdChanging(int value); partial void OnRecordedByUserIdChanged(); partial void OnTeamPeriodIdChanging(int value); partial void OnTeamPeriodIdChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="DecisionSet"/> class. /// </summary> public DecisionSet() { this.OnCreated(); } /// <summary> /// Gets or sets the 'BudgetRemainingAmount' value. /// </summary> [DataMember()] public Nullable<decimal> BudgetRemainingAmount { get { return this._budgetRemainingAmount; } set { if ((this._budgetRemainingAmount != value)) { this.OnBudgetRemainingAmountChanging(value); this.RaiseDataMemberChanging("BudgetRemainingAmount"); this.ValidateProperty("BudgetRemainingAmount", value); this._budgetRemainingAmount = value; this.RaiseDataMemberChanged("BudgetRemainingAmount"); this.OnBudgetRemainingAmountChanged(); } } } /// <summary> /// Gets or sets the 'DecisionSetId' value.

/// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int DecisionSetId { get { return this._decisionSetId; } set { if ((this._decisionSetId != value)) { this.OnDecisionSetIdChanging(value); this.ValidateProperty("DecisionSetId", value); this._decisionSetId = value; this.RaisePropertyChanged("DecisionSetId"); this.OnDecisionSetIdChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="DecisionSetProduct"/> e ntities. /// </summary> [Association("DecisionSet_DecisionSetProduct", "DecisionSetId", "Decisio nSetId")] [XmlIgnore()] public EntityCollection<DecisionSetProduct> DecisionSetProducts { get { if ((this._decisionSetProducts == null)) { this._decisionSetProducts = new EntityCollection<DecisionSet Product>(this, "DecisionSetProducts", this.FilterDecisionSetProducts, this.Attac hDecisionSetProducts, this.DetachDecisionSetProducts); } return this._decisionSetProducts; } } /// <summary> /// Gets or sets the 'Description' value. /// </summary> [DataMember()] [StringLength(50)] public string Description { get { return this._description; } set { if ((this._description != value)) {

this.OnDescriptionChanging(value); this.RaiseDataMemberChanging("Description"); this.ValidateProperty("Description", value); this._description = value; this.RaiseDataMemberChanged("Description"); this.OnDescriptionChanged(); } } } /// <summary> /// Gets or sets the 'LastUpdatedDateTime' value. /// </summary> [DataMember()] public DateTime LastUpdatedDateTime { get { return this._lastUpdatedDateTime; } set { if ((this._lastUpdatedDateTime != value)) { this.OnLastUpdatedDateTimeChanging(value); this.RaiseDataMemberChanging("LastUpdatedDateTime"); this.ValidateProperty("LastUpdatedDateTime", value); this._lastUpdatedDateTime = value; this.RaiseDataMemberChanged("LastUpdatedDateTime"); this.OnLastUpdatedDateTimeChanged(); } } } /// <summary> /// Gets or sets the 'RecordedByUserId' value. /// </summary> [DataMember()] public int RecordedByUserId { get { return this._recordedByUserId; } set { if ((this._recordedByUserId != value)) { this.OnRecordedByUserIdChanging(value); this.RaiseDataMemberChanging("RecordedByUserId"); this.ValidateProperty("RecordedByUserId", value); this._recordedByUserId = value; this.RaiseDataMemberChanged("RecordedByUserId"); this.OnRecordedByUserIdChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="TeamPeriod"/> entity.

/// </summary> [Association("TeamPeriod_DecisionSet", "TeamPeriodId", "TeamPeriodId", I sForeignKey=true)] [XmlIgnore()] public TeamPeriod TeamPeriod { get { if ((this._teamPeriod == null)) { this._teamPeriod = new EntityRef<TeamPeriod>(this, "TeamPeri od", this.FilterTeamPeriod); } return this._teamPeriod.Entity; } set { TeamPeriod previous = this.TeamPeriod; if ((previous != value)) { this.ValidateProperty("TeamPeriod", value); if ((previous != null)) { this._teamPeriod.Entity = null; previous.DecisionSets.Remove(this); } if ((value != null)) { this.TeamPeriodId = value.TeamPeriodId; } else { this.TeamPeriodId = default(int); } this._teamPeriod.Entity = value; if ((value != null)) { value.DecisionSets.Add(this); } this.RaisePropertyChanged("TeamPeriod"); } } } /// <summary> /// Gets or sets the 'TeamPeriodId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int TeamPeriodId { get { return this._teamPeriodId; } set { if ((this._teamPeriodId != value)) { this.OnTeamPeriodIdChanging(value);

this.RaiseDataMemberChanging("TeamPeriodId"); this.ValidateProperty("TeamPeriodId", value); this._teamPeriodId = value; this.RaiseDataMemberChanged("TeamPeriodId"); this.OnTeamPeriodIdChanged(); } } } private void AttachDecisionSetProducts(DecisionSetProduct entity) { entity.DecisionSet = this; } private void DetachDecisionSetProducts(DecisionSetProduct entity) { entity.DecisionSet = null; } private bool FilterDecisionSetProducts(DecisionSetProduct entity) { return (entity.DecisionSetId == this.DecisionSetId); } private bool FilterTeamPeriod(TeamPeriod entity) { return (entity.TeamPeriodId == this.TeamPeriodId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._decisionSetId; } } /// <summary> /// The 'DecisionSetProduct' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class DecisionSetProduct : Entity { private Nullable<decimal> _advertisingAmount; private Nullable<decimal> _advertisingCreativeDesignAmount; private EntityRef<DecisionSet> _decisionSet; private int _decisionSetId; private int _decisionSetProductId; private string _decisionType;

private Nullable<int> _existingProductId; private Nullable<decimal> _finalRetailPrice; private Nullable<int> _inventoryDisposalQuantity; private string _newProductName; private Nullable<int> _newRDProjectId; private Nullable<int> _productionQuantity; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnAdvertisingAmountChanging(Nullable<decimal> value); partial void OnAdvertisingAmountChanged(); partial void OnAdvertisingCreativeDesignAmountChanging(Nullable<decimal> value); partial void OnAdvertisingCreativeDesignAmountChanged(); partial void OnDecisionSetIdChanging(int value); partial void OnDecisionSetIdChanged(); partial void OnDecisionSetProductIdChanging(int value); partial void OnDecisionSetProductIdChanged(); partial void OnDecisionTypeChanging(string value); partial void OnDecisionTypeChanged(); partial void OnExistingProductIdChanging(Nullable<int> value); partial void OnExistingProductIdChanged(); partial void OnFinalRetailPriceChanging(Nullable<decimal> value); partial void OnFinalRetailPriceChanged(); partial void OnInventoryDisposalQuantityChanging(Nullable<int> value); partial void OnInventoryDisposalQuantityChanged(); partial void OnNewProductNameChanging(string value); partial void OnNewProductNameChanged(); partial void OnNewRDProjectIdChanging(Nullable<int> value); partial void OnNewRDProjectIdChanged(); partial void OnProductionQuantityChanging(Nullable<int> value); partial void OnProductionQuantityChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="DecisionSetProduct"/> c lass. /// </summary> public DecisionSetProduct() { this.OnCreated(); } /// <summary> /// Gets or sets the 'AdvertisingAmount' value. /// </summary>

[DataMember()] public Nullable<decimal> AdvertisingAmount { get { return this._advertisingAmount; } set { if ((this._advertisingAmount != value)) { this.OnAdvertisingAmountChanging(value); this.RaiseDataMemberChanging("AdvertisingAmount"); this.ValidateProperty("AdvertisingAmount", value); this._advertisingAmount = value; this.RaiseDataMemberChanged("AdvertisingAmount"); this.OnAdvertisingAmountChanged(); } } } /// <summary> /// Gets or sets the 'AdvertisingCreativeDesignAmount' value. /// </summary> [DataMember()] public Nullable<decimal> AdvertisingCreativeDesignAmount { get { return this._advertisingCreativeDesignAmount; } set { if ((this._advertisingCreativeDesignAmount != value)) { this.OnAdvertisingCreativeDesignAmountChanging(value); this.RaiseDataMemberChanging("AdvertisingCreativeDesignAmoun t"); this.ValidateProperty("AdvertisingCreativeDesignAmount", val ue); this._advertisingCreativeDesignAmount = value; this.RaiseDataMemberChanged("AdvertisingCreativeDesignAmount "); this.OnAdvertisingCreativeDesignAmountChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="DecisionSet"/> entity. /// </summary> [Association("DecisionSet_DecisionSetProduct", "DecisionSetId", "Decisio nSetId", IsForeignKey=true)] [XmlIgnore()] public DecisionSet DecisionSet { get { if ((this._decisionSet == null)) {

this._decisionSet = new EntityRef<DecisionSet>(this, "Decisi onSet", this.FilterDecisionSet); } return this._decisionSet.Entity; } set { DecisionSet previous = this.DecisionSet; if ((previous != value)) { this.ValidateProperty("DecisionSet", value); if ((previous != null)) { this._decisionSet.Entity = null; previous.DecisionSetProducts.Remove(this); } if ((value != null)) { this.DecisionSetId = value.DecisionSetId; } else { this.DecisionSetId = default(int); } this._decisionSet.Entity = value; if ((value != null)) { value.DecisionSetProducts.Add(this); } this.RaisePropertyChanged("DecisionSet"); } } } /// <summary> /// Gets or sets the 'DecisionSetId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int DecisionSetId { get { return this._decisionSetId; } set { if ((this._decisionSetId != value)) { this.OnDecisionSetIdChanging(value); this.RaiseDataMemberChanging("DecisionSetId"); this.ValidateProperty("DecisionSetId", value); this._decisionSetId = value; this.RaiseDataMemberChanged("DecisionSetId"); this.OnDecisionSetIdChanged(); } } } /// <summary>

/// Gets or sets the 'DecisionSetProductId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int DecisionSetProductId { get { return this._decisionSetProductId; } set { if ((this._decisionSetProductId != value)) { this.OnDecisionSetProductIdChanging(value); this.ValidateProperty("DecisionSetProductId", value); this._decisionSetProductId = value; this.RaisePropertyChanged("DecisionSetProductId"); this.OnDecisionSetProductIdChanged(); } } } /// <summary> /// Gets or sets the 'DecisionType' value. /// </summary> [DataMember()] [Required()] [StringLength(1)] public string DecisionType { get { return this._decisionType; } set { if ((this._decisionType != value)) { this.OnDecisionTypeChanging(value); this.RaiseDataMemberChanging("DecisionType"); this.ValidateProperty("DecisionType", value); this._decisionType = value; this.RaiseDataMemberChanged("DecisionType"); this.OnDecisionTypeChanged(); } } } /// <summary> /// Gets or sets the 'ExistingProductId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public Nullable<int> ExistingProductId { get {

return this._existingProductId; } set { if ((this._existingProductId != value)) { this.OnExistingProductIdChanging(value); this.RaiseDataMemberChanging("ExistingProductId"); this.ValidateProperty("ExistingProductId", value); this._existingProductId = value; this.RaiseDataMemberChanged("ExistingProductId"); this.OnExistingProductIdChanged(); } } } /// <summary> /// Gets or sets the 'FinalRetailPrice' value. /// </summary> [DataMember()] public Nullable<decimal> FinalRetailPrice { get { return this._finalRetailPrice; } set { if ((this._finalRetailPrice != value)) { this.OnFinalRetailPriceChanging(value); this.RaiseDataMemberChanging("FinalRetailPrice"); this.ValidateProperty("FinalRetailPrice", value); this._finalRetailPrice = value; this.RaiseDataMemberChanged("FinalRetailPrice"); this.OnFinalRetailPriceChanged(); } } } /// <summary> /// Gets or sets the 'InventoryDisposalQuantity' value. /// </summary> [DataMember()] public Nullable<int> InventoryDisposalQuantity { get { return this._inventoryDisposalQuantity; } set { if ((this._inventoryDisposalQuantity != value)) { this.OnInventoryDisposalQuantityChanging(value); this.RaiseDataMemberChanging("InventoryDisposalQuantity"); this.ValidateProperty("InventoryDisposalQuantity", value); this._inventoryDisposalQuantity = value; this.RaiseDataMemberChanged("InventoryDisposalQuantity"); this.OnInventoryDisposalQuantityChanged();

} } } /// <summary> /// Gets or sets the 'NewProductName' value. /// </summary> [DataMember()] [Required()] [StringLength(8)] public string NewProductName { get { return this._newProductName; } set { if ((this._newProductName != value)) { this.OnNewProductNameChanging(value); this.RaiseDataMemberChanging("NewProductName"); this.ValidateProperty("NewProductName", value); this._newProductName = value; this.RaiseDataMemberChanged("NewProductName"); this.OnNewProductNameChanged(); } } } /// <summary> /// Gets or sets the 'NewRDProjectId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public Nullable<int> NewRDProjectId { get { return this._newRDProjectId; } set { if ((this._newRDProjectId != value)) { this.OnNewRDProjectIdChanging(value); this.RaiseDataMemberChanging("NewRDProjectId"); this.ValidateProperty("NewRDProjectId", value); this._newRDProjectId = value; this.RaiseDataMemberChanged("NewRDProjectId"); this.OnNewRDProjectIdChanged(); } } } /// <summary> /// Gets or sets the 'ProductionQuantity' value. /// </summary> [DataMember()] public Nullable<int> ProductionQuantity

{ get { return this._productionQuantity; } set { if ((this._productionQuantity != value)) { this.OnProductionQuantityChanging(value); this.RaiseDataMemberChanging("ProductionQuantity"); this.ValidateProperty("ProductionQuantity", value); this._productionQuantity = value; this.RaiseDataMemberChanged("ProductionQuantity"); this.OnProductionQuantityChanged(); } } } private bool FilterDecisionSet(DecisionSet entity) { return (entity.DecisionSetId == this.DecisionSetId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._decisionSetProductId; } } /// <summary> /// The 'Game' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class Game : Entity { private EntityCollection<Channel> _channels; private EntityCollection<Company> _companies; private Guid _gameGUID; private int _gameId; private Nullable<bool> _gameIsSuspended; private EntityCollection<GamePeriod> _gamePeriods; private int _gameStatusId; private EntityCollection<MarketIntel> _marketIntels;

private EntityCollection<MarketIntelType> _marketIntelTypes; private EntityCollection<Market> _markets; private EntityCollection<MediaType> _mediaTypes; private string _name; private string _simulationPasswordCode; private EntityCollection<UserGameRole> _userGameRoles; private EntityCollection<World> _worlds; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnGameGUIDChanging(Guid value); partial void OnGameGUIDChanged(); partial void OnGameIdChanging(int value); partial void OnGameIdChanged(); partial void OnGameIsSuspendedChanging(Nullable<bool> value); partial void OnGameIsSuspendedChanged(); partial void OnGameStatusIdChanging(int value); partial void OnGameStatusIdChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); partial void OnSimulationPasswordCodeChanging(string value); partial void OnSimulationPasswordCodeChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="Game"/> class. /// </summary> public Game() { this.OnCreated(); } /// <summary> /// Gets the collection of associated <see cref="Channel"/> entities. /// </summary> [Association("Game_Channel", "GameId", "GameId")] [XmlIgnore()] public EntityCollection<Channel> Channels { get { if ((this._channels == null)) { this._channels = new EntityCollection<Channel>(this, "Channe ls", this.FilterChannels, this.AttachChannels, this.DetachChannels); }

return this._channels; } } /// <summary> /// Gets the collection of associated <see cref="Company"/> entities. /// </summary> [Association("Game_Company", "GameId", "GameId")] [XmlIgnore()] public EntityCollection<Company> Companies { get { if ((this._companies == null)) { this._companies = new EntityCollection<Company>(this, "Compa nies", this.FilterCompanies, this.AttachCompanies, this.DetachCompanies); } return this._companies; } } /// <summary> /// Gets or sets the 'GameGUID' value. /// </summary> [DataMember()] public Guid GameGUID { get { return this._gameGUID; } set { if ((this._gameGUID != value)) { this.OnGameGUIDChanging(value); this.RaiseDataMemberChanging("GameGUID"); this.ValidateProperty("GameGUID", value); this._gameGUID = value; this.RaiseDataMemberChanged("GameGUID"); this.OnGameGUIDChanged(); } } } /// <summary> /// Gets or sets the 'GameId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int GameId { get { return this._gameId; } set

{ if ((this._gameId != value)) { this.OnGameIdChanging(value); this.ValidateProperty("GameId", value); this._gameId = value; this.RaisePropertyChanged("GameId"); this.OnGameIdChanged(); } } } /// <summary> /// Gets or sets the 'GameIsSuspended' value. /// </summary> [DataMember()] public Nullable<bool> GameIsSuspended { get { return this._gameIsSuspended; } set { if ((this._gameIsSuspended != value)) { this.OnGameIsSuspendedChanging(value); this.RaiseDataMemberChanging("GameIsSuspended"); this.ValidateProperty("GameIsSuspended", value); this._gameIsSuspended = value; this.RaiseDataMemberChanged("GameIsSuspended"); this.OnGameIsSuspendedChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="GamePeriod"/> entities. /// </summary> [Association("Game_GamePeriod", "GameId", "GameId")] [XmlIgnore()] public EntityCollection<GamePeriod> GamePeriods { get { if ((this._gamePeriods == null)) { this._gamePeriods = new EntityCollection<GamePeriod>(this, " GamePeriods", this.FilterGamePeriods, this.AttachGamePeriods, this.DetachGamePer iods); } return this._gamePeriods; } } /// <summary> /// Gets or sets the 'GameStatusId' value. /// </summary> [DataMember()] [RoundtripOriginal()]

public int GameStatusId { get { return this._gameStatusId; } set { if ((this._gameStatusId != value)) { this.OnGameStatusIdChanging(value); this.RaiseDataMemberChanging("GameStatusId"); this.ValidateProperty("GameStatusId", value); this._gameStatusId = value; this.RaiseDataMemberChanged("GameStatusId"); this.OnGameStatusIdChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="MarketIntel"/> entities . /// </summary> [Association("Game_MarketIntel", "GameId", "GameId")] [XmlIgnore()] public EntityCollection<MarketIntel> MarketIntels { get { if ((this._marketIntels == null)) { this._marketIntels = new EntityCollection<MarketIntel>(this, "MarketIntels", this.FilterMarketIntels, this.AttachMarketIntels, this.DetachMa rketIntels); } return this._marketIntels; } } /// <summary> /// Gets the collection of associated <see cref="MarketIntelType"/> enti ties. /// </summary> [Association("Game_MarketIntelType", "GameId", "GameId")] [XmlIgnore()] public EntityCollection<MarketIntelType> MarketIntelTypes { get { if ((this._marketIntelTypes == null)) { this._marketIntelTypes = new EntityCollection<MarketIntelTyp e>(this, "MarketIntelTypes", this.FilterMarketIntelTypes, this.AttachMarketIntel Types, this.DetachMarketIntelTypes); } return this._marketIntelTypes; } }

/// <summary> /// Gets the collection of associated <see cref="Market"/> entities. /// </summary> [Association("Game_Market", "GameId", "GameId")] [XmlIgnore()] public EntityCollection<Market> Markets { get { if ((this._markets == null)) { this._markets = new EntityCollection<Market>(this, "Markets" , this.FilterMarkets, this.AttachMarkets, this.DetachMarkets); } return this._markets; } } /// <summary> /// Gets the collection of associated <see cref="MediaType"/> entities. /// </summary> [Association("Game_MediaType", "GameId", "GameId")] [XmlIgnore()] public EntityCollection<MediaType> MediaTypes { get { if ((this._mediaTypes == null)) { this._mediaTypes = new EntityCollection<MediaType>(this, "Me diaTypes", this.FilterMediaTypes, this.AttachMediaTypes, this.DetachMediaTypes); } return this._mediaTypes; } } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] [StringLength(50)] public string Name { get { return this._name; } set { if ((this._name != value)) { this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value); this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } }

/// <summary> /// Gets or sets the 'SimulationPasswordCode' value. /// </summary> [DataMember()] [StringLength(15)] public string SimulationPasswordCode { get { return this._simulationPasswordCode; } set { if ((this._simulationPasswordCode != value)) { this.OnSimulationPasswordCodeChanging(value); this.RaiseDataMemberChanging("SimulationPasswordCode"); this.ValidateProperty("SimulationPasswordCode", value); this._simulationPasswordCode = value; this.RaiseDataMemberChanged("SimulationPasswordCode"); this.OnSimulationPasswordCodeChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="UserGameRole"/> entitie s. /// </summary> [Association("Game_UserGameRole", "GameId", "GameId")] [XmlIgnore()] public EntityCollection<UserGameRole> UserGameRoles { get { if ((this._userGameRoles == null)) { this._userGameRoles = new EntityCollection<UserGameRole>(thi s, "UserGameRoles", this.FilterUserGameRoles, this.AttachUserGameRoles, this.Det achUserGameRoles); } return this._userGameRoles; } } /// <summary> /// Gets the collection of associated <see cref="World"/> entities. /// </summary> [Association("Game_World", "GameId", "GameId")] [XmlIgnore()] public EntityCollection<World> Worlds { get { if ((this._worlds == null)) { this._worlds = new EntityCollection<World>(this, "Worlds", t his.FilterWorlds, this.AttachWorlds, this.DetachWorlds); }

return this._worlds; } } private void AttachChannels(Channel entity) { entity.Game = this; } private void DetachChannels(Channel entity) { entity.Game = null; } private bool FilterChannels(Channel entity) { return (entity.GameId == this.GameId); } private void AttachCompanies(Company entity) { entity.Game = this; } private void DetachCompanies(Company entity) { entity.Game = null; } private bool FilterCompanies(Company entity) { return (entity.GameId == this.GameId); } private void AttachGamePeriods(GamePeriod entity) { entity.Game = this; } private void DetachGamePeriods(GamePeriod entity) { entity.Game = null; } private bool FilterGamePeriods(GamePeriod entity) { return (entity.GameId == this.GameId); } private void AttachMarketIntels(MarketIntel entity) { entity.Game = this; } private void DetachMarketIntels(MarketIntel entity) { entity.Game = null; } private bool FilterMarketIntels(MarketIntel entity)

{ return (entity.GameId == this.GameId); } private void AttachMarketIntelTypes(MarketIntelType entity) { entity.Game = this; } private void DetachMarketIntelTypes(MarketIntelType entity) { entity.Game = null; } private bool FilterMarketIntelTypes(MarketIntelType entity) { return (entity.GameId == this.GameId); } private void AttachMarkets(Market entity) { entity.Game = this; } private void DetachMarkets(Market entity) { entity.Game = null; } private bool FilterMarkets(Market entity) { return (entity.GameId == this.GameId); } private void AttachMediaTypes(MediaType entity) { entity.Game = this; } private void DetachMediaTypes(MediaType entity) { entity.Game = null; } private bool FilterMediaTypes(MediaType entity) { return (entity.GameId == this.GameId); } private void AttachUserGameRoles(UserGameRole entity) { entity.Game = this; } private void DetachUserGameRoles(UserGameRole entity) { entity.Game = null; } private bool FilterUserGameRoles(UserGameRole entity)

{ return (entity.GameId == this.GameId); } private void AttachWorlds(World entity) { entity.Game = this; } private void DetachWorlds(World entity) { entity.Game = null; } private bool FilterWorlds(World entity) { return (entity.GameId == this.GameId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._gameId; } } /// <summary> /// The 'GamePeriod' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class GamePeriod : Entity { private bool _canDesignNewRDProjects; private bool _canFundRDProjects; private bool _canLaunchNewProducts; private bool _canRelaunchProducts; private Nullable<DateTime> _dueDate; private EntityRef<Game> _game; private int _gameId; private int _gamePeriodId; private bool _isCurrentPeriod; private EntityCollection<MarketIntel> _marketIntels; private int _periodNumber;

private EntityCollection<ProductPeriodMarketAttribute> _productPeriodMar ketAttributes; private EntityCollection<TeamPeriod> _teamPeriods; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnCanDesignNewRDProjectsChanging(bool value); partial void OnCanDesignNewRDProjectsChanged(); partial void OnCanFundRDProjectsChanging(bool value); partial void OnCanFundRDProjectsChanged(); partial void OnCanLaunchNewProductsChanging(bool value); partial void OnCanLaunchNewProductsChanged(); partial void OnCanRelaunchProductsChanging(bool value); partial void OnCanRelaunchProductsChanged(); partial void OnDueDateChanging(Nullable<DateTime> value); partial void OnDueDateChanged(); partial void OnGameIdChanging(int value); partial void OnGameIdChanged(); partial void OnGamePeriodIdChanging(int value); partial void OnGamePeriodIdChanged(); partial void OnIsCurrentPeriodChanging(bool value); partial void OnIsCurrentPeriodChanged(); partial void OnPeriodNumberChanging(int value); partial void OnPeriodNumberChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="GamePeriod"/> class. /// </summary> public GamePeriod() { this.OnCreated(); } /// <summary> /// Gets or sets the 'CanDesignNewRDProjects' value. /// </summary> [DataMember()] public bool CanDesignNewRDProjects { get { return this._canDesignNewRDProjects; } set { if ((this._canDesignNewRDProjects != value)) { this.OnCanDesignNewRDProjectsChanging(value); this.RaiseDataMemberChanging("CanDesignNewRDProjects");

this.ValidateProperty("CanDesignNewRDProjects", value); this._canDesignNewRDProjects = value; this.RaiseDataMemberChanged("CanDesignNewRDProjects"); this.OnCanDesignNewRDProjectsChanged(); } } } /// <summary> /// Gets or sets the 'CanFundRDProjects' value. /// </summary> [DataMember()] public bool CanFundRDProjects { get { return this._canFundRDProjects; } set { if ((this._canFundRDProjects != value)) { this.OnCanFundRDProjectsChanging(value); this.RaiseDataMemberChanging("CanFundRDProjects"); this.ValidateProperty("CanFundRDProjects", value); this._canFundRDProjects = value; this.RaiseDataMemberChanged("CanFundRDProjects"); this.OnCanFundRDProjectsChanged(); } } } /// <summary> /// Gets or sets the 'CanLaunchNewProducts' value. /// </summary> [DataMember()] public bool CanLaunchNewProducts { get { return this._canLaunchNewProducts; } set { if ((this._canLaunchNewProducts != value)) { this.OnCanLaunchNewProductsChanging(value); this.RaiseDataMemberChanging("CanLaunchNewProducts"); this.ValidateProperty("CanLaunchNewProducts", value); this._canLaunchNewProducts = value; this.RaiseDataMemberChanged("CanLaunchNewProducts"); this.OnCanLaunchNewProductsChanged(); } } } /// <summary> /// Gets or sets the 'CanRelaunchProducts' value. /// </summary> [DataMember()]

public bool CanRelaunchProducts { get { return this._canRelaunchProducts; } set { if ((this._canRelaunchProducts != value)) { this.OnCanRelaunchProductsChanging(value); this.RaiseDataMemberChanging("CanRelaunchProducts"); this.ValidateProperty("CanRelaunchProducts", value); this._canRelaunchProducts = value; this.RaiseDataMemberChanged("CanRelaunchProducts"); this.OnCanRelaunchProductsChanged(); } } } /// <summary> /// Gets or sets the 'DueDate' value. /// </summary> [DataMember()] public Nullable<DateTime> DueDate { get { return this._dueDate; } set { if ((this._dueDate != value)) { this.OnDueDateChanging(value); this.RaiseDataMemberChanging("DueDate"); this.ValidateProperty("DueDate", value); this._dueDate = value; this.RaiseDataMemberChanged("DueDate"); this.OnDueDateChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="Game"/> entity. /// </summary> [Association("Game_GamePeriod", "GameId", "GameId", IsForeignKey=true)] [XmlIgnore()] public Game Game { get { if ((this._game == null)) { this._game = new EntityRef<Game>(this, "Game", this.FilterGa me); } return this._game.Entity; }

set { Game previous = this.Game; if ((previous != value)) { this.ValidateProperty("Game", value); if ((previous != null)) { this._game.Entity = null; previous.GamePeriods.Remove(this); } if ((value != null)) { this.GameId = value.GameId; } else { this.GameId = default(int); } this._game.Entity = value; if ((value != null)) { value.GamePeriods.Add(this); } this.RaisePropertyChanged("Game"); } } } /// <summary> /// Gets or sets the 'GameId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int GameId { get { return this._gameId; } set { if ((this._gameId != value)) { this.OnGameIdChanging(value); this.RaiseDataMemberChanging("GameId"); this.ValidateProperty("GameId", value); this._gameId = value; this.RaiseDataMemberChanged("GameId"); this.OnGameIdChanged(); } } } /// <summary> /// Gets or sets the 'GamePeriodId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()]

[RoundtripOriginal()] public int GamePeriodId { get { return this._gamePeriodId; } set { if ((this._gamePeriodId != value)) { this.OnGamePeriodIdChanging(value); this.ValidateProperty("GamePeriodId", value); this._gamePeriodId = value; this.RaisePropertyChanged("GamePeriodId"); this.OnGamePeriodIdChanged(); } } } /// <summary> /// Gets or sets the 'IsCurrentPeriod' value. /// </summary> [DataMember()] public bool IsCurrentPeriod { get { return this._isCurrentPeriod; } set { if ((this._isCurrentPeriod != value)) { this.OnIsCurrentPeriodChanging(value); this.RaiseDataMemberChanging("IsCurrentPeriod"); this.ValidateProperty("IsCurrentPeriod", value); this._isCurrentPeriod = value; this.RaiseDataMemberChanged("IsCurrentPeriod"); this.OnIsCurrentPeriodChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="MarketIntel"/> entities . /// </summary> [Association("GamePeriod_MarketIntel", "GamePeriodId", "GamePeriodId")] [XmlIgnore()] public EntityCollection<MarketIntel> MarketIntels { get { if ((this._marketIntels == null)) { this._marketIntels = new EntityCollection<MarketIntel>(this, "MarketIntels", this.FilterMarketIntels, this.AttachMarketIntels, this.DetachMa rketIntels); }

return this._marketIntels; } } /// <summary> /// Gets or sets the 'PeriodNumber' value. /// </summary> [DataMember()] public int PeriodNumber { get { return this._periodNumber; } set { if ((this._periodNumber != value)) { this.OnPeriodNumberChanging(value); this.RaiseDataMemberChanging("PeriodNumber"); this.ValidateProperty("PeriodNumber", value); this._periodNumber = value; this.RaiseDataMemberChanged("PeriodNumber"); this.OnPeriodNumberChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="ProductPeriodMarketAttr ibute"/> entities. /// </summary> [Association("GamePeriod_ProductPeriodMarketAttribute", "GamePeriodId", "GamePeriodId")] [XmlIgnore()] public EntityCollection<ProductPeriodMarketAttribute> ProductPeriodMarke tAttributes { get { if ((this._productPeriodMarketAttributes == null)) { this._productPeriodMarketAttributes = new EntityCollection<P roductPeriodMarketAttribute>(this, "ProductPeriodMarketAttributes", this.FilterP roductPeriodMarketAttributes, this.AttachProductPeriodMarketAttributes, this.Det achProductPeriodMarketAttributes); } return this._productPeriodMarketAttributes; } } /// <summary> /// Gets the collection of associated <see cref="TeamPeriod"/> entities. /// </summary> [Association("GamePeriod_TeamPeriod", "GamePeriodId", "GamePeriodId")] [XmlIgnore()] public EntityCollection<TeamPeriod> TeamPeriods { get {

if ((this._teamPeriods == null)) { this._teamPeriods = new EntityCollection<TeamPeriod>(this, " TeamPeriods", this.FilterTeamPeriods, this.AttachTeamPeriods, this.DetachTeamPer iods); } return this._teamPeriods; } } private bool FilterGame(Game entity) { return (entity.GameId == this.GameId); } private void AttachMarketIntels(MarketIntel entity) { entity.GamePeriod = this; } private void DetachMarketIntels(MarketIntel entity) { entity.GamePeriod = null; } private bool FilterMarketIntels(MarketIntel entity) { return (entity.GamePeriodId == this.GamePeriodId); } private void AttachProductPeriodMarketAttributes(ProductPeriodMarketAttr ibute entity) { entity.GamePeriod = this; } private void DetachProductPeriodMarketAttributes(ProductPeriodMarketAttr ibute entity) { entity.GamePeriod = null; } private bool FilterProductPeriodMarketAttributes(ProductPeriodMarketAttr ibute entity) { return (entity.GamePeriodId == this.GamePeriodId); } private void AttachTeamPeriods(TeamPeriod entity) { entity.GamePeriod = this; } private void DetachTeamPeriods(TeamPeriod entity) { entity.GamePeriod = null; } private bool FilterTeamPeriods(TeamPeriod entity) {

return (entity.GamePeriodId == this.GamePeriodId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._gamePeriodId; } } /// <summary> /// The 'Market' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class Market : Entity { private int _displaySequenceNum; private EntityRef<Game> _game; private int _gameId; private Nullable<bool> _isCloudDisplayed; private EntityCollection<MarketAttribute> _marketAttributes; private int _marketId; private EntityCollection<MarketIntel> _marketIntels; private EntityCollection<MarketSegment> _marketSegments; private string _name; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnDisplaySequenceNumChanging(int value); partial void OnDisplaySequenceNumChanged(); partial void OnGameIdChanging(int value); partial void OnGameIdChanged(); partial void OnIsCloudDisplayedChanging(Nullable<bool> value); partial void OnIsCloudDisplayedChanged(); partial void OnMarketIdChanging(int value); partial void OnMarketIdChanged(); partial void OnNameChanging(string value); partial void OnNameChanged();

#endregion /// <summary> /// Initializes a new instance of the <see cref="Market"/> class. /// </summary> public Market() { this.OnCreated(); } /// <summary> /// Gets or sets the 'DisplaySequenceNum' value. /// </summary> [DataMember()] public int DisplaySequenceNum { get { return this._displaySequenceNum; } set { if ((this._displaySequenceNum != value)) { this.OnDisplaySequenceNumChanging(value); this.RaiseDataMemberChanging("DisplaySequenceNum"); this.ValidateProperty("DisplaySequenceNum", value); this._displaySequenceNum = value; this.RaiseDataMemberChanged("DisplaySequenceNum"); this.OnDisplaySequenceNumChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="Game"/> entity. /// </summary> [Association("Game_Market", "GameId", "GameId", IsForeignKey=true)] [XmlIgnore()] public Game Game { get { if ((this._game == null)) { this._game = new EntityRef<Game>(this, "Game", this.FilterGa me); } return this._game.Entity; } set { Game previous = this.Game; if ((previous != value)) { this.ValidateProperty("Game", value); if ((previous != null)) { this._game.Entity = null;

previous.Markets.Remove(this); } if ((value != null)) { this.GameId = value.GameId; } else { this.GameId = default(int); } this._game.Entity = value; if ((value != null)) { value.Markets.Add(this); } this.RaisePropertyChanged("Game"); } } } /// <summary> /// Gets or sets the 'GameId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int GameId { get { return this._gameId; } set { if ((this._gameId != value)) { this.OnGameIdChanging(value); this.RaiseDataMemberChanging("GameId"); this.ValidateProperty("GameId", value); this._gameId = value; this.RaiseDataMemberChanged("GameId"); this.OnGameIdChanged(); } } } /// <summary> /// Gets or sets the 'IsCloudDisplayed' value. /// </summary> [DataMember()] public Nullable<bool> IsCloudDisplayed { get { return this._isCloudDisplayed; } set { if ((this._isCloudDisplayed != value)) { this.OnIsCloudDisplayedChanging(value);

this.RaiseDataMemberChanging("IsCloudDisplayed"); this.ValidateProperty("IsCloudDisplayed", value); this._isCloudDisplayed = value; this.RaiseDataMemberChanged("IsCloudDisplayed"); this.OnIsCloudDisplayedChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="MarketAttribute"/> enti ties. /// </summary> [Association("Market_MarketAttribute", "MarketId", "MarketId")] [XmlIgnore()] public EntityCollection<MarketAttribute> MarketAttributes { get { if ((this._marketAttributes == null)) { this._marketAttributes = new EntityCollection<MarketAttribut e>(this, "MarketAttributes", this.FilterMarketAttributes, this.AttachMarketAttri butes, this.DetachMarketAttributes); } return this._marketAttributes; } } /// <summary> /// Gets or sets the 'MarketId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int MarketId { get { return this._marketId; } set { if ((this._marketId != value)) { this.OnMarketIdChanging(value); this.ValidateProperty("MarketId", value); this._marketId = value; this.RaisePropertyChanged("MarketId"); this.OnMarketIdChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="MarketIntel"/> entities . /// </summary> [Association("Market_MarketIntel", "MarketId", "MarketId")]

[XmlIgnore()] public EntityCollection<MarketIntel> MarketIntels { get { if ((this._marketIntels == null)) { this._marketIntels = new EntityCollection<MarketIntel>(this, "MarketIntels", this.FilterMarketIntels, this.AttachMarketIntels, this.DetachMa rketIntels); } return this._marketIntels; } } /// <summary> /// Gets the collection of associated <see cref="MarketSegment"/> entiti es. /// </summary> [Association("Market_MarketSegment", "MarketId", "MarketId")] [XmlIgnore()] public EntityCollection<MarketSegment> MarketSegments { get { if ((this._marketSegments == null)) { this._marketSegments = new EntityCollection<MarketSegment>(t his, "MarketSegments", this.FilterMarketSegments, this.AttachMarketSegments, thi s.DetachMarketSegments); } return this._marketSegments; } } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] [Required()] [StringLength(50)] public string Name { get { return this._name; } set { if ((this._name != value)) { this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value); this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } }

private bool FilterGame(Game entity) { return (entity.GameId == this.GameId); } private void AttachMarketAttributes(MarketAttribute entity) { entity.Market = this; } private void DetachMarketAttributes(MarketAttribute entity) { entity.Market = null; } private bool FilterMarketAttributes(MarketAttribute entity) { return (entity.MarketId == this.MarketId); } private void AttachMarketIntels(MarketIntel entity) { entity.Market = this; } private void DetachMarketIntels(MarketIntel entity) { entity.Market = null; } private bool FilterMarketIntels(MarketIntel entity) { return (entity.MarketId == this.MarketId); } private void AttachMarketSegments(MarketSegment entity) { entity.Market = this; } private void DetachMarketSegments(MarketSegment entity) { entity.Market = null; } private bool FilterMarketSegments(MarketSegment entity) { return (entity.MarketId == this.MarketId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._marketId;

} } /// <summary> /// The 'MarketAttribute' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class MarketAttribute : Entity { private Nullable<decimal> _attributeSensitivityPercent; private int _displaySequenceNum; private bool _forInstructorsOnly; private Nullable<bool> _isXAxisDefault; private Nullable<bool> _isYAxisDefault; private EntityRef<Market> _market; private int _marketAttributeId; private int _marketId; private decimal _maximumValue; private decimal _minimumValue; private string _name; private EntityCollection<PerceptualMapSegmentAttribute> _perceptualMapSe gmentAttributes; private EntityCollection<ProductPeriodMarketAttribute> _productPeriodMar ketAttributes; private string _unitDescription; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnAttributeSensitivityPercentChanging(Nullable<decimal> val ue); partial void OnAttributeSensitivityPercentChanged(); partial void OnDisplaySequenceNumChanging(int value); partial void OnDisplaySequenceNumChanged(); partial void OnForInstructorsOnlyChanging(bool value); partial void OnForInstructorsOnlyChanged(); partial void OnIsXAxisDefaultChanging(Nullable<bool> value); partial void OnIsXAxisDefaultChanged(); partial void OnIsYAxisDefaultChanging(Nullable<bool> value); partial void OnIsYAxisDefaultChanged();

partial partial partial partial partial partial partial partial partial partial partial partial

void void void void void void void void void void void void

OnMarketAttributeIdChanging(int value); OnMarketAttributeIdChanged(); OnMarketIdChanging(int value); OnMarketIdChanged(); OnMaximumValueChanging(decimal value); OnMaximumValueChanged(); OnMinimumValueChanging(decimal value); OnMinimumValueChanged(); OnNameChanging(string value); OnNameChanged(); OnUnitDescriptionChanging(string value); OnUnitDescriptionChanged();

#endregion /// <summary> /// Initializes a new instance of the <see cref="MarketAttribute"/> clas s. /// </summary> public MarketAttribute() { this.OnCreated(); } /// <summary> /// Gets or sets the 'AttributeSensitivityPercent' value. /// </summary> [DataMember()] public Nullable<decimal> AttributeSensitivityPercent { get { return this._attributeSensitivityPercent; } set { if ((this._attributeSensitivityPercent != value)) { this.OnAttributeSensitivityPercentChanging(value); this.RaiseDataMemberChanging("AttributeSensitivityPercent"); this.ValidateProperty("AttributeSensitivityPercent", value); this._attributeSensitivityPercent = value; this.RaiseDataMemberChanged("AttributeSensitivityPercent"); this.OnAttributeSensitivityPercentChanged(); } } } /// <summary> /// Gets or sets the 'DisplaySequenceNum' value. /// </summary> [DataMember()] public int DisplaySequenceNum { get { return this._displaySequenceNum; } set

{ if ((this._displaySequenceNum != value)) { this.OnDisplaySequenceNumChanging(value); this.RaiseDataMemberChanging("DisplaySequenceNum"); this.ValidateProperty("DisplaySequenceNum", value); this._displaySequenceNum = value; this.RaiseDataMemberChanged("DisplaySequenceNum"); this.OnDisplaySequenceNumChanged(); } } } /// <summary> /// Gets or sets the 'ForInstructorsOnly' value. /// </summary> [DataMember()] public bool ForInstructorsOnly { get { return this._forInstructorsOnly; } set { if ((this._forInstructorsOnly != value)) { this.OnForInstructorsOnlyChanging(value); this.RaiseDataMemberChanging("ForInstructorsOnly"); this.ValidateProperty("ForInstructorsOnly", value); this._forInstructorsOnly = value; this.RaiseDataMemberChanged("ForInstructorsOnly"); this.OnForInstructorsOnlyChanged(); } } } /// <summary> /// Gets or sets the 'IsXAxisDefault' value. /// </summary> [DataMember()] public Nullable<bool> IsXAxisDefault { get { return this._isXAxisDefault; } set { if ((this._isXAxisDefault != value)) { this.OnIsXAxisDefaultChanging(value); this.RaiseDataMemberChanging("IsXAxisDefault"); this.ValidateProperty("IsXAxisDefault", value); this._isXAxisDefault = value; this.RaiseDataMemberChanged("IsXAxisDefault"); this.OnIsXAxisDefaultChanged(); } } }

/// <summary> /// Gets or sets the 'IsYAxisDefault' value. /// </summary> [DataMember()] public Nullable<bool> IsYAxisDefault { get { return this._isYAxisDefault; } set { if ((this._isYAxisDefault != value)) { this.OnIsYAxisDefaultChanging(value); this.RaiseDataMemberChanging("IsYAxisDefault"); this.ValidateProperty("IsYAxisDefault", value); this._isYAxisDefault = value; this.RaiseDataMemberChanged("IsYAxisDefault"); this.OnIsYAxisDefaultChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="Market"/> entity. /// </summary> [Association("Market_MarketAttribute", "MarketId", "MarketId", IsForeign Key=true)] [XmlIgnore()] public Market Market { get { if ((this._market == null)) { this._market = new EntityRef<Market>(this, "Market", this.Fi lterMarket); } return this._market.Entity; } set { Market previous = this.Market; if ((previous != value)) { this.ValidateProperty("Market", value); if ((previous != null)) { this._market.Entity = null; previous.MarketAttributes.Remove(this); } if ((value != null)) { this.MarketId = value.MarketId; } else { this.MarketId = default(int);

} this._market.Entity = value; if ((value != null)) { value.MarketAttributes.Add(this); } this.RaisePropertyChanged("Market"); } } } /// <summary> /// Gets or sets the 'MarketAttributeId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int MarketAttributeId { get { return this._marketAttributeId; } set { if ((this._marketAttributeId != value)) { this.OnMarketAttributeIdChanging(value); this.ValidateProperty("MarketAttributeId", value); this._marketAttributeId = value; this.RaisePropertyChanged("MarketAttributeId"); this.OnMarketAttributeIdChanged(); } } } /// <summary> /// Gets or sets the 'MarketId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int MarketId { get { return this._marketId; } set { if ((this._marketId != value)) { this.OnMarketIdChanging(value); this.RaiseDataMemberChanging("MarketId"); this.ValidateProperty("MarketId", value); this._marketId = value; this.RaiseDataMemberChanged("MarketId"); this.OnMarketIdChanged(); } }

} /// <summary> /// Gets or sets the 'MaximumValue' value. /// </summary> [DataMember()] public decimal MaximumValue { get { return this._maximumValue; } set { if ((this._maximumValue != value)) { this.OnMaximumValueChanging(value); this.RaiseDataMemberChanging("MaximumValue"); this.ValidateProperty("MaximumValue", value); this._maximumValue = value; this.RaiseDataMemberChanged("MaximumValue"); this.OnMaximumValueChanged(); } } } /// <summary> /// Gets or sets the 'MinimumValue' value. /// </summary> [DataMember()] public decimal MinimumValue { get { return this._minimumValue; } set { if ((this._minimumValue != value)) { this.OnMinimumValueChanging(value); this.RaiseDataMemberChanging("MinimumValue"); this.ValidateProperty("MinimumValue", value); this._minimumValue = value; this.RaiseDataMemberChanged("MinimumValue"); this.OnMinimumValueChanged(); } } } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] [Required()] [StringLength(50)] public string Name { get {

return this._name; } set { if ((this._name != value)) { this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value); this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="PerceptualMapSegmentAtt ribute"/> entities. /// </summary> [Association("MarketAttribute_PerceptualMapSegmentAttribute", "MarketAtt ributeId", "MarketAttributeId")] [XmlIgnore()] public EntityCollection<PerceptualMapSegmentAttribute> PerceptualMapSegm entAttributes { get { if ((this._perceptualMapSegmentAttributes == null)) { this._perceptualMapSegmentAttributes = new EntityCollection< PerceptualMapSegmentAttribute>(this, "PerceptualMapSegmentAttributes", this.Filt erPerceptualMapSegmentAttributes, this.AttachPerceptualMapSegmentAttributes, thi s.DetachPerceptualMapSegmentAttributes); } return this._perceptualMapSegmentAttributes; } } /// <summary> /// Gets the collection of associated <see cref="ProductPeriodMarketAttr ibute"/> entities. /// </summary> [Association("MarketAttribute_ProductPeriodMarketAttribute", "MarketAttr ibuteId", "MarketAttributeId")] [XmlIgnore()] public EntityCollection<ProductPeriodMarketAttribute> ProductPeriodMarke tAttributes { get { if ((this._productPeriodMarketAttributes == null)) { this._productPeriodMarketAttributes = new EntityCollection<P roductPeriodMarketAttribute>(this, "ProductPeriodMarketAttributes", this.FilterP roductPeriodMarketAttributes, this.AttachProductPeriodMarketAttributes, this.Det achProductPeriodMarketAttributes); } return this._productPeriodMarketAttributes; }

} /// <summary> /// Gets or sets the 'UnitDescription' value. /// </summary> [DataMember()] [Required()] [StringLength(20)] public string UnitDescription { get { return this._unitDescription; } set { if ((this._unitDescription != value)) { this.OnUnitDescriptionChanging(value); this.RaiseDataMemberChanging("UnitDescription"); this.ValidateProperty("UnitDescription", value); this._unitDescription = value; this.RaiseDataMemberChanged("UnitDescription"); this.OnUnitDescriptionChanged(); } } } private bool FilterMarket(Market entity) { return (entity.MarketId == this.MarketId); } private void AttachPerceptualMapSegmentAttributes(PerceptualMapSegmentAt tribute entity) { entity.MarketAttribute = this; } private void DetachPerceptualMapSegmentAttributes(PerceptualMapSegmentAt tribute entity) { entity.MarketAttribute = null; } private bool FilterPerceptualMapSegmentAttributes(PerceptualMapSegmentAt tribute entity) { return (entity.MarketAttributeId == this.MarketAttributeId); } private void AttachProductPeriodMarketAttributes(ProductPeriodMarketAttr ibute entity) { entity.MarketAttribute = this; } private void DetachProductPeriodMarketAttributes(ProductPeriodMarketAttr ibute entity) {

entity.MarketAttribute = null; } private bool FilterProductPeriodMarketAttributes(ProductPeriodMarketAttr ibute entity) { return (entity.MarketAttributeId == this.MarketAttributeId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._marketAttributeId; } } /// <summary> /// The 'MarketIntel' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class MarketIntel : Entity { private EntityRef<Company> _company; private Nullable<int> _companyId; private EntityRef<Game> _game; private int _gameId; public Boolean _isSelected; private EntityRef<GamePeriod> _gamePeriod; private int _gamePeriodId; private Nullable<bool> _isInstructorVersion; private EntityRef<Market> _market; private Nullable<int> _marketId; private EntityCollection<MarketIntelAccessible> _marketIntelAccessibles; private int _marketIntelId; private EntityRef<MarketIntelType> _marketIntelType; private int _marketIntelTypeId; private EntityCollection<PerceptualMapSegment> _perceptualMapSegments; private string _reportContentHTML; private EntityRef<World> _world;

private int _worldId; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnCompanyIdChanging(Nullable<int> value); partial void OnCompanyIdChanged(); partial void OnGameIdChanging(int value); partial void OnGameIdChanged(); partial void OnGamePeriodIdChanging(int value); partial void OnGamePeriodIdChanged(); partial void OnIsInstructorVersionChanging(Nullable<bool> value); partial void OnIsInstructorVersionChanged(); partial void OnMarketIdChanging(Nullable<int> value); partial void OnMarketIdChanged(); partial void OnMarketIntelIdChanging(int value); partial void OnMarketIntelIdChanged(); partial void OnMarketIntelTypeIdChanging(int value); partial void OnMarketIntelTypeIdChanged(); partial void OnReportContentHTMLChanging(string value); partial void OnReportContentHTMLChanged(); partial void OnWorldIdChanging(int value); partial void OnWorldIdChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="MarketIntel"/> class. /// </summary> public MarketIntel() { this.OnCreated(); } /// <summary> /// Gets or sets the associated <see cref="Company"/> entity. /// </summary> [Association("Company_MarketIntel", "CompanyId", "CompanyId", IsForeignK ey=true)] [XmlIgnore()] public Company Company { get { if ((this._company == null)) { this._company = new EntityRef<Company>(this, "Company", this .FilterCompany); } return this._company.Entity; } set { Company previous = this.Company;

if ((previous != value)) { this.ValidateProperty("Company", value); if ((previous != null)) { this._company.Entity = null; previous.MarketIntels.Remove(this); } if ((value != null)) { this.CompanyId = value.CompanyId; } else { this.CompanyId = default(Nullable<int>); } this._company.Entity = value; if ((value != null)) { value.MarketIntels.Add(this); } this.RaisePropertyChanged("Company"); } } } /// <summary> /// Gets or sets the 'CompanyId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public Nullable<int> CompanyId { get { return this._companyId; } set { if ((this._companyId != value)) { this.OnCompanyIdChanging(value); this.RaiseDataMemberChanging("CompanyId"); this.ValidateProperty("CompanyId", value); this._companyId = value; this.RaiseDataMemberChanged("CompanyId"); this.OnCompanyIdChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="Game"/> entity. /// </summary> [Association("Game_MarketIntel", "GameId", "GameId", IsForeignKey=true)] [XmlIgnore()] public Game Game { get {

if ((this._game == null)) { this._game = new EntityRef<Game>(this, "Game", this.FilterGa me); } return this._game.Entity; } set { Game previous = this.Game; if ((previous != value)) { this.ValidateProperty("Game", value); if ((previous != null)) { this._game.Entity = null; previous.MarketIntels.Remove(this); } if ((value != null)) { this.GameId = value.GameId; } else { this.GameId = default(int); } this._game.Entity = value; if ((value != null)) { value.MarketIntels.Add(this); } this.RaisePropertyChanged("Game"); } } } /// <summary> /// Gets or sets the 'GameId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int GameId { get { return this._gameId; } set { if ((this._gameId != value)) { this.OnGameIdChanging(value); this.RaiseDataMemberChanging("GameId"); this.ValidateProperty("GameId", value); this._gameId = value; this.RaiseDataMemberChanged("GameId"); this.OnGameIdChanged(); } } }

/// <summary> /// Gets or sets the associated <see cref="GamePeriod"/> entity. /// </summary> [Association("GamePeriod_MarketIntel", "GamePeriodId", "GamePeriodId", I sForeignKey=true)] [XmlIgnore()] public GamePeriod GamePeriod { get { if ((this._gamePeriod == null)) { this._gamePeriod = new EntityRef<GamePeriod>(this, "GamePeri od", this.FilterGamePeriod); } return this._gamePeriod.Entity; } set { GamePeriod previous = this.GamePeriod; if ((previous != value)) { this.ValidateProperty("GamePeriod", value); if ((previous != null)) { this._gamePeriod.Entity = null; previous.MarketIntels.Remove(this); } if ((value != null)) { this.GamePeriodId = value.GamePeriodId; } else { this.GamePeriodId = default(int); } this._gamePeriod.Entity = value; if ((value != null)) { value.MarketIntels.Add(this); } this.RaisePropertyChanged("GamePeriod"); } } } /// <summary> /// Gets or sets the 'GamePeriodId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int GamePeriodId { get { return this._gamePeriodId; } set {

if ((this._gamePeriodId != value)) { this.OnGamePeriodIdChanging(value); this.RaiseDataMemberChanging("GamePeriodId"); this.ValidateProperty("GamePeriodId", value); this._gamePeriodId = value; this.RaiseDataMemberChanged("GamePeriodId"); this.OnGamePeriodIdChanged(); } } } /// <summary> /// Gets or sets the 'IsInstructorVersion' value. /// </summary> [DataMember()] public Nullable<bool> IsInstructorVersion { get { return this._isInstructorVersion; } set { if ((this._isInstructorVersion != value)) { this.OnIsInstructorVersionChanging(value); this.RaiseDataMemberChanging("IsInstructorVersion"); this.ValidateProperty("IsInstructorVersion", value); this._isInstructorVersion = value; this.RaiseDataMemberChanged("IsInstructorVersion"); this.OnIsInstructorVersionChanged(); } } } [DataMember()] public Nullable<bool> IsSelected { get { return this._isSelected; } set { if ((this._isSelected != value)) { // this.OnIsInstructorVersionChanging(value); this.RaisePropertyChanged("IsSelected"); //this.ValidateProperty("IsInstructorVersion", value); // this._isInstructorVersion = value; // this.RaiseDataMemberChanged("IsSelected"); //his.OnIsInstructorVersionChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="Market"/> entity. /// </summary> [Association("Market_MarketIntel", "MarketId", "MarketId", IsForeignKey=

true)] [XmlIgnore()] public Market Market { get { if ((this._market == null)) { this._market = new EntityRef<Market>(this, "Market", this.Fi lterMarket); } return this._market.Entity; } set { Market previous = this.Market; if ((previous != value)) { this.ValidateProperty("Market", value); if ((previous != null)) { this._market.Entity = null; previous.MarketIntels.Remove(this); } if ((value != null)) { this.MarketId = value.MarketId; } else { this.MarketId = default(Nullable<int>); } this._market.Entity = value; if ((value != null)) { value.MarketIntels.Add(this); } this.RaisePropertyChanged("Market"); } } } /// <summary> /// Gets or sets the 'MarketId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public Nullable<int> MarketId { get { return this._marketId; } set { if ((this._marketId != value)) { this.OnMarketIdChanging(value); this.RaiseDataMemberChanging("MarketId"); this.ValidateProperty("MarketId", value);

this._marketId = value; this.RaiseDataMemberChanged("MarketId"); this.OnMarketIdChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="MarketIntelAccessible"/ > entities. /// </summary> [Association("MarketIntel_MarketIntelAccessible", "MarketIntelId", "Mark etIntelId")] [XmlIgnore()] public EntityCollection<MarketIntelAccessible> MarketIntelAccessibles { get { if ((this._marketIntelAccessibles == null)) { this._marketIntelAccessibles = new EntityCollection<MarketIn telAccessible>(this, "MarketIntelAccessibles", this.FilterMarketIntelAccessibles , this.AttachMarketIntelAccessibles, this.DetachMarketIntelAccessibles); } return this._marketIntelAccessibles; } } /// <summary> /// Gets or sets the 'MarketIntelId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int MarketIntelId { get { return this._marketIntelId; } set { if ((this._marketIntelId != value)) { this.OnMarketIntelIdChanging(value); this.ValidateProperty("MarketIntelId", value); this._marketIntelId = value; this.RaisePropertyChanged("MarketIntelId"); this.OnMarketIntelIdChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="MarketIntelType"/> entity. /// </summary> [Association("MarketIntelType_MarketIntel", "MarketIntelTypeId", "Market IntelTypeId", IsForeignKey=true)] [XmlIgnore()]

public MarketIntelType MarketIntelType { get { if ((this._marketIntelType == null)) { this._marketIntelType = new EntityRef<MarketIntelType>(this, "MarketIntelType", this.FilterMarketIntelType); } return this._marketIntelType.Entity; } set { MarketIntelType previous = this.MarketIntelType; if ((previous != value)) { this.ValidateProperty("MarketIntelType", value); if ((previous != null)) { this._marketIntelType.Entity = null; previous.MarketIntels.Remove(this); } if ((value != null)) { this.MarketIntelTypeId = value.MarketIntelTypeId; } else { this.MarketIntelTypeId = default(int); } this._marketIntelType.Entity = value; if ((value != null)) { value.MarketIntels.Add(this); } this.RaisePropertyChanged("MarketIntelType"); } } } /// <summary> /// Gets or sets the 'MarketIntelTypeId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int MarketIntelTypeId { get { return this._marketIntelTypeId; } set { if ((this._marketIntelTypeId != value)) { this.OnMarketIntelTypeIdChanging(value); this.RaiseDataMemberChanging("MarketIntelTypeId"); this.ValidateProperty("MarketIntelTypeId", value); this._marketIntelTypeId = value; this.RaiseDataMemberChanged("MarketIntelTypeId");

this.OnMarketIntelTypeIdChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="PerceptualMapSegment"/> entities. /// </summary> [Association("MarketIntel_PerceptualMapSegment", "MarketIntelId", "Marke tIntelId")] [XmlIgnore()] public EntityCollection<PerceptualMapSegment> PerceptualMapSegments { get { if ((this._perceptualMapSegments == null)) { this._perceptualMapSegments = new EntityCollection<Perceptua lMapSegment>(this, "PerceptualMapSegments", this.FilterPerceptualMapSegments, th is.AttachPerceptualMapSegments, this.DetachPerceptualMapSegments); } return this._perceptualMapSegments; } } /// <summary> /// Gets or sets the 'ReportContentHTML' value. /// </summary> [DataMember()] [StringLength(8000)] public string ReportContentHTML { get { return this._reportContentHTML; } set { if ((this._reportContentHTML != value)) { this.OnReportContentHTMLChanging(value); this.RaiseDataMemberChanging("ReportContentHTML"); this.ValidateProperty("ReportContentHTML", value); this._reportContentHTML = value; this.RaiseDataMemberChanged("ReportContentHTML"); this.OnReportContentHTMLChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="World"/> entity. /// </summary> [Association("World_MarketIntel", "WorldId", "WorldId", IsForeignKey=tru e)] [XmlIgnore()] public World World { get

{ if ((this._world == null)) { this._world = new EntityRef<World>(this, "World", this.Filte rWorld); } return this._world.Entity; } set { World previous = this.World; if ((previous != value)) { this.ValidateProperty("World", value); if ((previous != null)) { this._world.Entity = null; previous.MarketIntels.Remove(this); } if ((value != null)) { this.WorldId = value.WorldId; } else { this.WorldId = default(int); } this._world.Entity = value; if ((value != null)) { value.MarketIntels.Add(this); } this.RaisePropertyChanged("World"); } } } /// <summary> /// Gets or sets the 'WorldId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int WorldId { get { return this._worldId; } set { if ((this._worldId != value)) { this.OnWorldIdChanging(value); this.RaiseDataMemberChanging("WorldId"); this.ValidateProperty("WorldId", value); this._worldId = value; this.RaiseDataMemberChanged("WorldId"); this.OnWorldIdChanged(); } }

} private bool FilterCompany(Company entity) { return (entity.CompanyId == this.CompanyId); } private bool FilterGame(Game entity) { return (entity.GameId == this.GameId); } private bool FilterGamePeriod(GamePeriod entity) { return (entity.GamePeriodId == this.GamePeriodId); } private bool FilterMarket(Market entity) { return (entity.MarketId == this.MarketId); } private void AttachMarketIntelAccessibles(MarketIntelAccessible entity) { entity.MarketIntel = this; } private void DetachMarketIntelAccessibles(MarketIntelAccessible entity) { entity.MarketIntel = null; } private bool FilterMarketIntelAccessibles(MarketIntelAccessible entity) { return (entity.MarketIntelId == this.MarketIntelId); } private bool FilterMarketIntelType(MarketIntelType entity) { return (entity.MarketIntelTypeId == this.MarketIntelTypeId); } private void AttachPerceptualMapSegments(PerceptualMapSegment entity) { entity.MarketIntel = this; } private void DetachPerceptualMapSegments(PerceptualMapSegment entity) { entity.MarketIntel = null; } private bool FilterPerceptualMapSegments(PerceptualMapSegment entity) { return (entity.MarketIntelId == this.MarketIntelId); } private bool FilterWorld(World entity) { return (entity.WorldId == this.WorldId);

} /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._marketIntelId; } } /// <summary> /// The 'MarketIntelAccessible' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class MarketIntelAccessible : Entity { private EntityRef<MarketIntel> _marketIntel; private int _marketIntelAccessibleId; private int _marketIntelId; private EntityRef<Team> _team; private int _teamId; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnMarketIntelAccessibleIdChanging(int value); partial void OnMarketIntelAccessibleIdChanged(); partial void OnMarketIntelIdChanging(int value); partial void OnMarketIntelIdChanged(); partial void OnTeamIdChanging(int value); partial void OnTeamIdChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="MarketIntelAccessible"/ > class. /// </summary> public MarketIntelAccessible() { this.OnCreated(); } /// <summary>

/// Gets or sets the associated <see cref="MarketIntel"/> entity. /// </summary> [Association("MarketIntel_MarketIntelAccessible", "MarketIntelId", "Mark etIntelId", IsForeignKey=true)] [XmlIgnore()] public MarketIntel MarketIntel { get { if ((this._marketIntel == null)) { this._marketIntel = new EntityRef<MarketIntel>(this, "Market Intel", this.FilterMarketIntel); } return this._marketIntel.Entity; } set { MarketIntel previous = this.MarketIntel; if ((previous != value)) { this.ValidateProperty("MarketIntel", value); if ((previous != null)) { this._marketIntel.Entity = null; previous.MarketIntelAccessibles.Remove(this); } if ((value != null)) { this.MarketIntelId = value.MarketIntelId; } else { this.MarketIntelId = default(int); } this._marketIntel.Entity = value; if ((value != null)) { value.MarketIntelAccessibles.Add(this); } this.RaisePropertyChanged("MarketIntel"); } } } /// <summary> /// Gets or sets the 'MarketIntelAccessibleId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int MarketIntelAccessibleId { get { return this._marketIntelAccessibleId; } set {

if ((this._marketIntelAccessibleId != value)) { this.OnMarketIntelAccessibleIdChanging(value); this.ValidateProperty("MarketIntelAccessibleId", value); this._marketIntelAccessibleId = value; this.RaisePropertyChanged("MarketIntelAccessibleId"); this.OnMarketIntelAccessibleIdChanged(); } } } /// <summary> /// Gets or sets the 'MarketIntelId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int MarketIntelId { get { return this._marketIntelId; } set { if ((this._marketIntelId != value)) { this.OnMarketIntelIdChanging(value); this.RaiseDataMemberChanging("MarketIntelId"); this.ValidateProperty("MarketIntelId", value); this._marketIntelId = value; this.RaiseDataMemberChanged("MarketIntelId"); this.OnMarketIntelIdChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="Team"/> entity. /// </summary> [Association("Team_MarketIntelAccessible", "TeamId", "TeamId", IsForeign Key=true)] [XmlIgnore()] public Team Team { get { if ((this._team == null)) { this._team = new EntityRef<Team>(this, "Team", this.FilterTe am); } return this._team.Entity; } set { Team previous = this.Team; if ((previous != value)) { this.ValidateProperty("Team", value); if ((previous != null))

{ this._team.Entity = null; previous.MarketIntelAccessibles.Remove(this); } if ((value != null)) { this.TeamId = value.TeamId; } else { this.TeamId = default(int); } this._team.Entity = value; if ((value != null)) { value.MarketIntelAccessibles.Add(this); } this.RaisePropertyChanged("Team"); } } } /// <summary> /// Gets or sets the 'TeamId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int TeamId { get { return this._teamId; } set { if ((this._teamId != value)) { this.OnTeamIdChanging(value); this.RaiseDataMemberChanging("TeamId"); this.ValidateProperty("TeamId", value); this._teamId = value; this.RaiseDataMemberChanged("TeamId"); this.OnTeamIdChanged(); } } } private bool FilterMarketIntel(MarketIntel entity) { return (entity.MarketIntelId == this.MarketIntelId); } private bool FilterTeam(Team entity) { return (entity.TeamId == this.TeamId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance.

/// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._marketIntelAccessibleId; } } /// <summary> /// The 'MarketIntelType' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class MarketIntelType : Entity { private string _aboutText; private bool _companySelectionApplies; private int _displaySequenceNum; private EntityRef<Game> _game; private int _gameId; private int _marketIntelCategoryId; private EntityCollection<MarketIntel> _marketIntels; private int _marketIntelTypeId; private bool _marketSelectionApplies; private string _name; private string _presentationType; private int _sabreXMLId; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnAboutTextChanging(string value); partial void OnAboutTextChanged(); partial void OnCompanySelectionAppliesChanging(bool value); partial void OnCompanySelectionAppliesChanged(); partial void OnDisplaySequenceNumChanging(int value); partial void OnDisplaySequenceNumChanged(); partial void OnGameIdChanging(int value); partial void OnGameIdChanged(); partial void OnMarketIntelCategoryIdChanging(int value); partial void OnMarketIntelCategoryIdChanged(); partial void OnMarketIntelTypeIdChanging(int value);

partial partial partial partial partial partial partial partial partial

void void void void void void void void void

OnMarketIntelTypeIdChanged(); OnMarketSelectionAppliesChanging(bool value); OnMarketSelectionAppliesChanged(); OnNameChanging(string value); OnNameChanged(); OnPresentationTypeChanging(string value); OnPresentationTypeChanged(); OnSabreXMLIdChanging(int value); OnSabreXMLIdChanged();

#endregion /// <summary> /// Initializes a new instance of the <see cref="MarketIntelType"/> clas s. /// </summary> public MarketIntelType() { this.OnCreated(); } /// <summary> /// Gets or sets the 'AboutText' value. /// </summary> [DataMember()] [StringLength(255)] public string AboutText { get { return this._aboutText; } set { if ((this._aboutText != value)) { this.OnAboutTextChanging(value); this.RaiseDataMemberChanging("AboutText"); this.ValidateProperty("AboutText", value); this._aboutText = value; this.RaiseDataMemberChanged("AboutText"); this.OnAboutTextChanged(); } } } /// <summary> /// Gets or sets the 'CompanySelectionApplies' value. /// </summary> [DataMember()] public bool CompanySelectionApplies { get { return this._companySelectionApplies; } set { if ((this._companySelectionApplies != value))

{ this.OnCompanySelectionAppliesChanging(value); this.RaiseDataMemberChanging("CompanySelectionApplies"); this.ValidateProperty("CompanySelectionApplies", value); this._companySelectionApplies = value; this.RaiseDataMemberChanged("CompanySelectionApplies"); this.OnCompanySelectionAppliesChanged(); } } } /// <summary> /// Gets or sets the 'DisplaySequenceNum' value. /// </summary> [DataMember()] public int DisplaySequenceNum { get { return this._displaySequenceNum; } set { if ((this._displaySequenceNum != value)) { this.OnDisplaySequenceNumChanging(value); this.RaiseDataMemberChanging("DisplaySequenceNum"); this.ValidateProperty("DisplaySequenceNum", value); this._displaySequenceNum = value; this.RaiseDataMemberChanged("DisplaySequenceNum"); this.OnDisplaySequenceNumChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="Game"/> entity. /// </summary> [Association("Game_MarketIntelType", "GameId", "GameId", IsForeignKey=tr ue)] [XmlIgnore()] public Game Game { get { if ((this._game == null)) { this._game = new EntityRef<Game>(this, "Game", this.FilterGa me); } return this._game.Entity; } set { Game previous = this.Game; if ((previous != value)) { this.ValidateProperty("Game", value); if ((previous != null)) {

this._game.Entity = null; previous.MarketIntelTypes.Remove(this); } if ((value != null)) { this.GameId = value.GameId; } else { this.GameId = default(int); } this._game.Entity = value; if ((value != null)) { value.MarketIntelTypes.Add(this); } this.RaisePropertyChanged("Game"); } } } /// <summary> /// Gets or sets the 'GameId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int GameId { get { return this._gameId; } set { if ((this._gameId != value)) { this.OnGameIdChanging(value); this.RaiseDataMemberChanging("GameId"); this.ValidateProperty("GameId", value); this._gameId = value; this.RaiseDataMemberChanged("GameId"); this.OnGameIdChanged(); } } } /// <summary> /// Gets or sets the 'MarketIntelCategoryId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int MarketIntelCategoryId { get { return this._marketIntelCategoryId; } set { if ((this._marketIntelCategoryId != value))

{ this.OnMarketIntelCategoryIdChanging(value); this.RaiseDataMemberChanging("MarketIntelCategoryId"); this.ValidateProperty("MarketIntelCategoryId", value); this._marketIntelCategoryId = value; this.RaiseDataMemberChanged("MarketIntelCategoryId"); this.OnMarketIntelCategoryIdChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="MarketIntel"/> entities . /// </summary> [Association("MarketIntelType_MarketIntel", "MarketIntelTypeId", "Market IntelTypeId")] [XmlIgnore()] public EntityCollection<MarketIntel> MarketIntels { get { if ((this._marketIntels == null)) { this._marketIntels = new EntityCollection<MarketIntel>(this, "MarketIntels", this.FilterMarketIntels, this.AttachMarketIntels, this.DetachMa rketIntels); } return this._marketIntels; } } /// <summary> /// Gets or sets the 'MarketIntelTypeId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int MarketIntelTypeId { get { return this._marketIntelTypeId; } set { if ((this._marketIntelTypeId != value)) { this.OnMarketIntelTypeIdChanging(value); this.ValidateProperty("MarketIntelTypeId", value); this._marketIntelTypeId = value; this.RaisePropertyChanged("MarketIntelTypeId"); this.OnMarketIntelTypeIdChanged(); } } } /// <summary> /// Gets or sets the 'MarketSelectionApplies' value.

/// </summary> [DataMember()] public bool MarketSelectionApplies { get { return this._marketSelectionApplies; } set { if ((this._marketSelectionApplies != value)) { this.OnMarketSelectionAppliesChanging(value); this.RaiseDataMemberChanging("MarketSelectionApplies"); this.ValidateProperty("MarketSelectionApplies", value); this._marketSelectionApplies = value; this.RaiseDataMemberChanged("MarketSelectionApplies"); this.OnMarketSelectionAppliesChanged(); } } } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] [Required()] [StringLength(50)] public string Name { get { return this._name; } set { if ((this._name != value)) { this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value); this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } } /// <summary> /// Gets or sets the 'PresentationType' value. /// </summary> [DataMember()] [Required()] [StringLength(20)] public string PresentationType { get { return this._presentationType; }

set { if ((this._presentationType != value)) { this.OnPresentationTypeChanging(value); this.RaiseDataMemberChanging("PresentationType"); this.ValidateProperty("PresentationType", value); this._presentationType = value; this.RaiseDataMemberChanged("PresentationType"); this.OnPresentationTypeChanged(); } } } /// <summary> /// Gets or sets the 'SabreXMLId' value. /// </summary> [DataMember()] public int SabreXMLId { get { return this._sabreXMLId; } set { if ((this._sabreXMLId != value)) { this.OnSabreXMLIdChanging(value); this.RaiseDataMemberChanging("SabreXMLId"); this.ValidateProperty("SabreXMLId", value); this._sabreXMLId = value; this.RaiseDataMemberChanged("SabreXMLId"); this.OnSabreXMLIdChanged(); } } } private bool FilterGame(Game entity) { return (entity.GameId == this.GameId); } private void AttachMarketIntels(MarketIntel entity) { entity.MarketIntelType = this; } private void DetachMarketIntels(MarketIntel entity) { entity.MarketIntelType = null; } private bool FilterMarketIntels(MarketIntel entity) { return (entity.MarketIntelTypeId == this.MarketIntelTypeId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e

ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._marketIntelTypeId; } } /// <summary> /// The 'MarketSegment' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class MarketSegment : Entity { private int _displaySequenceNum; private int _initialGamePeriodNumber; private EntityRef<Market> _market; private int _marketId; private int _marketSegmentId; private string _name; private EntityCollection<PerceptualMapSegment> _perceptualMapSegments; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnDisplaySequenceNumChanging(int value); partial void OnDisplaySequenceNumChanged(); partial void OnInitialGamePeriodNumberChanging(int value); partial void OnInitialGamePeriodNumberChanged(); partial void OnMarketIdChanging(int value); partial void OnMarketIdChanged(); partial void OnMarketSegmentIdChanging(int value); partial void OnMarketSegmentIdChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="MarketSegment"/> class. /// </summary> public MarketSegment() { this.OnCreated();

} /// <summary> /// Gets or sets the 'DisplaySequenceNum' value. /// </summary> [DataMember()] public int DisplaySequenceNum { get { return this._displaySequenceNum; } set { if ((this._displaySequenceNum != value)) { this.OnDisplaySequenceNumChanging(value); this.RaiseDataMemberChanging("DisplaySequenceNum"); this.ValidateProperty("DisplaySequenceNum", value); this._displaySequenceNum = value; this.RaiseDataMemberChanged("DisplaySequenceNum"); this.OnDisplaySequenceNumChanged(); } } } /// <summary> /// Gets or sets the 'InitialGamePeriodNumber' value. /// </summary> [DataMember()] public int InitialGamePeriodNumber { get { return this._initialGamePeriodNumber; } set { if ((this._initialGamePeriodNumber != value)) { this.OnInitialGamePeriodNumberChanging(value); this.RaiseDataMemberChanging("InitialGamePeriodNumber"); this.ValidateProperty("InitialGamePeriodNumber", value); this._initialGamePeriodNumber = value; this.RaiseDataMemberChanged("InitialGamePeriodNumber"); this.OnInitialGamePeriodNumberChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="Market"/> entity. /// </summary> [Association("Market_MarketSegment", "MarketId", "MarketId", IsForeignKe y=true)] [XmlIgnore()] public Market Market { get {

if ((this._market == null)) { this._market = new EntityRef<Market>(this, "Market", this.Fi lterMarket); } return this._market.Entity; } set { Market previous = this.Market; if ((previous != value)) { this.ValidateProperty("Market", value); if ((previous != null)) { this._market.Entity = null; previous.MarketSegments.Remove(this); } if ((value != null)) { this.MarketId = value.MarketId; } else { this.MarketId = default(int); } this._market.Entity = value; if ((value != null)) { value.MarketSegments.Add(this); } this.RaisePropertyChanged("Market"); } } } /// <summary> /// Gets or sets the 'MarketId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int MarketId { get { return this._marketId; } set { if ((this._marketId != value)) { this.OnMarketIdChanging(value); this.RaiseDataMemberChanging("MarketId"); this.ValidateProperty("MarketId", value); this._marketId = value; this.RaiseDataMemberChanged("MarketId"); this.OnMarketIdChanged(); } } }

/// <summary> /// Gets or sets the 'MarketSegmentId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int MarketSegmentId { get { return this._marketSegmentId; } set { if ((this._marketSegmentId != value)) { this.OnMarketSegmentIdChanging(value); this.ValidateProperty("MarketSegmentId", value); this._marketSegmentId = value; this.RaisePropertyChanged("MarketSegmentId"); this.OnMarketSegmentIdChanged(); } } } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] [Required()] [StringLength(50)] public string Name { get { return this._name; } set { if ((this._name != value)) { this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value); this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="PerceptualMapSegment"/> entities. /// </summary> [Association("MarketSegment_PerceptualMapSegment", "MarketSegmentId", "M arketSegmentId")] [XmlIgnore()]

public EntityCollection<PerceptualMapSegment> PerceptualMapSegments { get { if ((this._perceptualMapSegments == null)) { this._perceptualMapSegments = new EntityCollection<Perceptua lMapSegment>(this, "PerceptualMapSegments", this.FilterPerceptualMapSegments, th is.AttachPerceptualMapSegments, this.DetachPerceptualMapSegments); } return this._perceptualMapSegments; } } private bool FilterMarket(Market entity) { return (entity.MarketId == this.MarketId); } private void AttachPerceptualMapSegments(PerceptualMapSegment entity) { entity.MarketSegment = this; } private void DetachPerceptualMapSegments(PerceptualMapSegment entity) { entity.MarketSegment = null; } private bool FilterPerceptualMapSegments(PerceptualMapSegment entity) { return (entity.MarketSegmentId == this.MarketSegmentId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._marketSegmentId; } } /// <summary> /// The 'MediaType' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class MediaType : Entity { private int _displaySequenceNum; private EntityRef<Game> _game; private int _gameId;

private int _mediaTypeId; private string _name; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnDisplaySequenceNumChanging(int value); partial void OnDisplaySequenceNumChanged(); partial void OnGameIdChanging(int value); partial void OnGameIdChanged(); partial void OnMediaTypeIdChanging(int value); partial void OnMediaTypeIdChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="MediaType"/> class. /// </summary> public MediaType() { this.OnCreated(); } /// <summary> /// Gets or sets the 'DisplaySequenceNum' value. /// </summary> [DataMember()] public int DisplaySequenceNum { get { return this._displaySequenceNum; } set { if ((this._displaySequenceNum != value)) { this.OnDisplaySequenceNumChanging(value); this.RaiseDataMemberChanging("DisplaySequenceNum"); this.ValidateProperty("DisplaySequenceNum", value); this._displaySequenceNum = value; this.RaiseDataMemberChanged("DisplaySequenceNum"); this.OnDisplaySequenceNumChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="Game"/> entity. /// </summary> [Association("Game_MediaType", "GameId", "GameId", IsForeignKey=true)]

[XmlIgnore()] public Game Game { get { if ((this._game == null)) { this._game = new EntityRef<Game>(this, "Game", this.FilterGa me); } return this._game.Entity; } set { Game previous = this.Game; if ((previous != value)) { this.ValidateProperty("Game", value); if ((previous != null)) { this._game.Entity = null; previous.MediaTypes.Remove(this); } if ((value != null)) { this.GameId = value.GameId; } else { this.GameId = default(int); } this._game.Entity = value; if ((value != null)) { value.MediaTypes.Add(this); } this.RaisePropertyChanged("Game"); } } } /// <summary> /// Gets or sets the 'GameId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int GameId { get { return this._gameId; } set { if ((this._gameId != value)) { this.OnGameIdChanging(value); this.RaiseDataMemberChanging("GameId"); this.ValidateProperty("GameId", value); this._gameId = value;

this.RaiseDataMemberChanged("GameId"); this.OnGameIdChanged(); } } } /// <summary> /// Gets or sets the 'MediaTypeId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int MediaTypeId { get { return this._mediaTypeId; } set { if ((this._mediaTypeId != value)) { this.OnMediaTypeIdChanging(value); this.ValidateProperty("MediaTypeId", value); this._mediaTypeId = value; this.RaisePropertyChanged("MediaTypeId"); this.OnMediaTypeIdChanged(); } } } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] [Required()] [StringLength(50)] public string Name { get { return this._name; } set { if ((this._name != value)) { this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value); this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } } private bool FilterGame(Game entity) {

return (entity.GameId == this.GameId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._mediaTypeId; } } /// <summary> /// The 'PerceptualMapSegment' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class PerceptualMapSegment : Entity { private int _dotsCount; private EntityRef<MarketIntel> _marketIntel; private int _marketIntelId; private EntityRef<MarketSegment> _marketSegment; private int _marketSegmentId; private EntityCollection<PerceptualMapSegmentAttribute> _perceptualMapSe gmentAttributes; private int _perceptualMapSegmentId; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnDotsCountChanging(int value); partial void OnDotsCountChanged(); partial void OnMarketIntelIdChanging(int value); partial void OnMarketIntelIdChanged(); partial void OnMarketSegmentIdChanging(int value); partial void OnMarketSegmentIdChanged(); partial void OnPerceptualMapSegmentIdChanging(int value); partial void OnPerceptualMapSegmentIdChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="PerceptualMapSegment"/>

class. /// </summary> public PerceptualMapSegment() { this.OnCreated(); } /// <summary> /// Gets or sets the 'DotsCount' value. /// </summary> [DataMember()] public int DotsCount { get { return this._dotsCount; } set { if ((this._dotsCount != value)) { this.OnDotsCountChanging(value); this.RaiseDataMemberChanging("DotsCount"); this.ValidateProperty("DotsCount", value); this._dotsCount = value; this.RaiseDataMemberChanged("DotsCount"); this.OnDotsCountChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="MarketIntel"/> entity. /// </summary> [Association("MarketIntel_PerceptualMapSegment", "MarketIntelId", "Marke tIntelId", IsForeignKey=true)] [XmlIgnore()] public MarketIntel MarketIntel { get { if ((this._marketIntel == null)) { this._marketIntel = new EntityRef<MarketIntel>(this, "Market Intel", this.FilterMarketIntel); } return this._marketIntel.Entity; } set { MarketIntel previous = this.MarketIntel; if ((previous != value)) { this.ValidateProperty("MarketIntel", value); if ((previous != null)) { this._marketIntel.Entity = null; previous.PerceptualMapSegments.Remove(this); } if ((value != null))

{ this.MarketIntelId = value.MarketIntelId; } else { this.MarketIntelId = default(int); } this._marketIntel.Entity = value; if ((value != null)) { value.PerceptualMapSegments.Add(this); } this.RaisePropertyChanged("MarketIntel"); } } } /// <summary> /// Gets or sets the 'MarketIntelId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int MarketIntelId { get { return this._marketIntelId; } set { if ((this._marketIntelId != value)) { this.OnMarketIntelIdChanging(value); this.RaiseDataMemberChanging("MarketIntelId"); this.ValidateProperty("MarketIntelId", value); this._marketIntelId = value; this.RaiseDataMemberChanged("MarketIntelId"); this.OnMarketIntelIdChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="MarketSegment"/> entity. /// </summary> [Association("MarketSegment_PerceptualMapSegment", "MarketSegmentId", "M arketSegmentId", IsForeignKey=true)] [XmlIgnore()] public MarketSegment MarketSegment { get { if ((this._marketSegment == null)) { this._marketSegment = new EntityRef<MarketSegment>(this, "Ma rketSegment", this.FilterMarketSegment); } return this._marketSegment.Entity; } set

{ MarketSegment previous = this.MarketSegment; if ((previous != value)) { this.ValidateProperty("MarketSegment", value); if ((previous != null)) { this._marketSegment.Entity = null; previous.PerceptualMapSegments.Remove(this); } if ((value != null)) { this.MarketSegmentId = value.MarketSegmentId; } else { this.MarketSegmentId = default(int); } this._marketSegment.Entity = value; if ((value != null)) { value.PerceptualMapSegments.Add(this); } this.RaisePropertyChanged("MarketSegment"); } } } /// <summary> /// Gets or sets the 'MarketSegmentId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int MarketSegmentId { get { return this._marketSegmentId; } set { if ((this._marketSegmentId != value)) { this.OnMarketSegmentIdChanging(value); this.RaiseDataMemberChanging("MarketSegmentId"); this.ValidateProperty("MarketSegmentId", value); this._marketSegmentId = value; this.RaiseDataMemberChanged("MarketSegmentId"); this.OnMarketSegmentIdChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="PerceptualMapSegmentAtt ribute"/> entities. /// </summary> [Association("PerceptualMapSegment_PerceptualMapSegmentAttribute", "Perc eptualMapSegmentId", "PerceptualMapSegmentId")] [XmlIgnore()]

public EntityCollection<PerceptualMapSegmentAttribute> PerceptualMapSegm entAttributes { get { if ((this._perceptualMapSegmentAttributes == null)) { this._perceptualMapSegmentAttributes = new EntityCollection< PerceptualMapSegmentAttribute>(this, "PerceptualMapSegmentAttributes", this.Filt erPerceptualMapSegmentAttributes, this.AttachPerceptualMapSegmentAttributes, thi s.DetachPerceptualMapSegmentAttributes); } return this._perceptualMapSegmentAttributes; } } /// <summary> /// Gets or sets the 'PerceptualMapSegmentId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int PerceptualMapSegmentId { get { return this._perceptualMapSegmentId; } set { if ((this._perceptualMapSegmentId != value)) { this.OnPerceptualMapSegmentIdChanging(value); this.ValidateProperty("PerceptualMapSegmentId", value); this._perceptualMapSegmentId = value; this.RaisePropertyChanged("PerceptualMapSegmentId"); this.OnPerceptualMapSegmentIdChanged(); } } } private bool FilterMarketIntel(MarketIntel entity) { return (entity.MarketIntelId == this.MarketIntelId); } private bool FilterMarketSegment(MarketSegment entity) { return (entity.MarketSegmentId == this.MarketSegmentId); } private void AttachPerceptualMapSegmentAttributes(PerceptualMapSegmentAt tribute entity) { entity.PerceptualMapSegment = this; } private void DetachPerceptualMapSegmentAttributes(PerceptualMapSegmentAt tribute entity)

{ entity.PerceptualMapSegment = null; } private bool FilterPerceptualMapSegmentAttributes(PerceptualMapSegmentAt tribute entity) { return (entity.PerceptualMapSegmentId == this.PerceptualMapSegmentId ); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._perceptualMapSegmentId; } } /// <summary> /// The 'PerceptualMapSegmentAttribute' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class PerceptualMapSegmentAttribute : Entity { private decimal _coordinateValue; private EntityRef<MarketAttribute> _marketAttribute; private int _marketAttributeId; private EntityRef<PerceptualMapSegment> _perceptualMapSegment; private int _perceptualMapSegmentAttributeId; private int _perceptualMapSegmentId; private decimal _sigma; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnCoordinateValueChanging(decimal value); partial void OnCoordinateValueChanged(); partial void OnMarketAttributeIdChanging(int value); partial void OnMarketAttributeIdChanged(); partial void OnPerceptualMapSegmentAttributeIdChanging(int value); partial void OnPerceptualMapSegmentAttributeIdChanged(); partial void OnPerceptualMapSegmentIdChanging(int value);

partial void OnPerceptualMapSegmentIdChanged(); partial void OnSigmaChanging(decimal value); partial void OnSigmaChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="PerceptualMapSegmentAtt ribute"/> class. /// </summary> public PerceptualMapSegmentAttribute() { this.OnCreated(); } /// <summary> /// Gets or sets the 'CoordinateValue' value. /// </summary> [DataMember()] public decimal CoordinateValue { get { return this._coordinateValue; } set { if ((this._coordinateValue != value)) { this.OnCoordinateValueChanging(value); this.RaiseDataMemberChanging("CoordinateValue"); this.ValidateProperty("CoordinateValue", value); this._coordinateValue = value; this.RaiseDataMemberChanged("CoordinateValue"); this.OnCoordinateValueChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="MarketAttribute"/> entity. /// </summary> [Association("MarketAttribute_PerceptualMapSegmentAttribute", "MarketAtt ributeId", "MarketAttributeId", IsForeignKey=true)] [XmlIgnore()] public MarketAttribute MarketAttribute { get { if ((this._marketAttribute == null)) { this._marketAttribute = new EntityRef<MarketAttribute>(this, "MarketAttribute", this.FilterMarketAttribute); } return this._marketAttribute.Entity; } set { MarketAttribute previous = this.MarketAttribute;

if ((previous != value)) { this.ValidateProperty("MarketAttribute", value); if ((previous != null)) { this._marketAttribute.Entity = null; previous.PerceptualMapSegmentAttributes.Remove(this); } if ((value != null)) { this.MarketAttributeId = value.MarketAttributeId; } else { this.MarketAttributeId = default(int); } this._marketAttribute.Entity = value; if ((value != null)) { value.PerceptualMapSegmentAttributes.Add(this); } this.RaisePropertyChanged("MarketAttribute"); } } } /// <summary> /// Gets or sets the 'MarketAttributeId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int MarketAttributeId { get { return this._marketAttributeId; } set { if ((this._marketAttributeId != value)) { this.OnMarketAttributeIdChanging(value); this.RaiseDataMemberChanging("MarketAttributeId"); this.ValidateProperty("MarketAttributeId", value); this._marketAttributeId = value; this.RaiseDataMemberChanged("MarketAttributeId"); this.OnMarketAttributeIdChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="PerceptualMapSegment"/> entit y. /// </summary> [Association("PerceptualMapSegment_PerceptualMapSegmentAttribute", "Perc eptualMapSegmentId", "PerceptualMapSegmentId", IsForeignKey=true)] [XmlIgnore()] public PerceptualMapSegment PerceptualMapSegment {

get { if ((this._perceptualMapSegment == null)) { this._perceptualMapSegment = new EntityRef<PerceptualMapSegm ent>(this, "PerceptualMapSegment", this.FilterPerceptualMapSegment); } return this._perceptualMapSegment.Entity; } set { PerceptualMapSegment previous = this.PerceptualMapSegment; if ((previous != value)) { this.ValidateProperty("PerceptualMapSegment", value); if ((previous != null)) { this._perceptualMapSegment.Entity = null; previous.PerceptualMapSegmentAttributes.Remove(this); } if ((value != null)) { this.PerceptualMapSegmentId = value.PerceptualMapSegment Id; } else { this.PerceptualMapSegmentId = default(int); } this._perceptualMapSegment.Entity = value; if ((value != null)) { value.PerceptualMapSegmentAttributes.Add(this); } this.RaisePropertyChanged("PerceptualMapSegment"); } } } /// <summary> /// Gets or sets the 'PerceptualMapSegmentAttributeId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int PerceptualMapSegmentAttributeId { get { return this._perceptualMapSegmentAttributeId; } set { if ((this._perceptualMapSegmentAttributeId != value)) { this.OnPerceptualMapSegmentAttributeIdChanging(value); this.ValidateProperty("PerceptualMapSegmentAttributeId", val ue); this._perceptualMapSegmentAttributeId = value;

this.RaisePropertyChanged("PerceptualMapSegmentAttributeId") ; this.OnPerceptualMapSegmentAttributeIdChanged(); } } } /// <summary> /// Gets or sets the 'PerceptualMapSegmentId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int PerceptualMapSegmentId { get { return this._perceptualMapSegmentId; } set { if ((this._perceptualMapSegmentId != value)) { this.OnPerceptualMapSegmentIdChanging(value); this.RaiseDataMemberChanging("PerceptualMapSegmentId"); this.ValidateProperty("PerceptualMapSegmentId", value); this._perceptualMapSegmentId = value; this.RaiseDataMemberChanged("PerceptualMapSegmentId"); this.OnPerceptualMapSegmentIdChanged(); } } } /// <summary> /// Gets or sets the 'Sigma' value. /// </summary> [DataMember()] public decimal Sigma { get { return this._sigma; } set { if ((this._sigma != value)) { this.OnSigmaChanging(value); this.RaiseDataMemberChanging("Sigma"); this.ValidateProperty("Sigma", value); this._sigma = value; this.RaiseDataMemberChanged("Sigma"); this.OnSigmaChanged(); } } } private bool FilterMarketAttribute(MarketAttribute entity) { return (entity.MarketAttributeId == this.MarketAttributeId); }

private bool FilterPerceptualMapSegment(PerceptualMapSegment entity) { return (entity.PerceptualMapSegmentId == this.PerceptualMapSegmentId ); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._perceptualMapSegmentAttributeId; } } /// <summary> /// The 'ProductPeriodMarketAttribute' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class ProductPeriodMarketAttribute : Entity { private EntityRef<GamePeriod> _gamePeriod; private int _gamePeriodId; private EntityRef<MarketAttribute> _marketAttribute; private int _marketAttributeId; private decimal _nonDimPerceivedValue; private int _productId; private int _productPeriodMarketAttributeId; private Nullable<int> _requestedPerceptualShiftValue; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnGamePeriodIdChanging(int value); partial void OnGamePeriodIdChanged(); partial void OnMarketAttributeIdChanging(int value); partial void OnMarketAttributeIdChanged(); partial void OnNonDimPerceivedValueChanging(decimal value); partial void OnNonDimPerceivedValueChanged(); partial void OnProductIdChanging(int value); partial void OnProductIdChanged(); partial void OnProductPeriodMarketAttributeIdChanging(int value);

partial void OnProductPeriodMarketAttributeIdChanged(); partial void OnRequestedPerceptualShiftValueChanging(Nullable<int> value ); partial void OnRequestedPerceptualShiftValueChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="ProductPeriodMarketAttr ibute"/> class. /// </summary> public ProductPeriodMarketAttribute() { this.OnCreated(); } /// <summary> /// Gets or sets the associated <see cref="GamePeriod"/> entity. /// </summary> [Association("GamePeriod_ProductPeriodMarketAttribute", "GamePeriodId", "GamePeriodId", IsForeignKey=true)] [XmlIgnore()] public GamePeriod GamePeriod { get { if ((this._gamePeriod == null)) { this._gamePeriod = new EntityRef<GamePeriod>(this, "GamePeri od", this.FilterGamePeriod); } return this._gamePeriod.Entity; } set { GamePeriod previous = this.GamePeriod; if ((previous != value)) { this.ValidateProperty("GamePeriod", value); if ((previous != null)) { this._gamePeriod.Entity = null; previous.ProductPeriodMarketAttributes.Remove(this); } if ((value != null)) { this.GamePeriodId = value.GamePeriodId; } else { this.GamePeriodId = default(int); } this._gamePeriod.Entity = value; if ((value != null)) { value.ProductPeriodMarketAttributes.Add(this); } this.RaisePropertyChanged("GamePeriod"); }

} } /// <summary> /// Gets or sets the 'GamePeriodId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int GamePeriodId { get { return this._gamePeriodId; } set { if ((this._gamePeriodId != value)) { this.OnGamePeriodIdChanging(value); this.RaiseDataMemberChanging("GamePeriodId"); this.ValidateProperty("GamePeriodId", value); this._gamePeriodId = value; this.RaiseDataMemberChanged("GamePeriodId"); this.OnGamePeriodIdChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="MarketAttribute"/> entity. /// </summary> [Association("MarketAttribute_ProductPeriodMarketAttribute", "MarketAttr ibuteId", "MarketAttributeId", IsForeignKey=true)] [XmlIgnore()] public MarketAttribute MarketAttribute { get { if ((this._marketAttribute == null)) { this._marketAttribute = new EntityRef<MarketAttribute>(this, "MarketAttribute", this.FilterMarketAttribute); } return this._marketAttribute.Entity; } set { MarketAttribute previous = this.MarketAttribute; if ((previous != value)) { this.ValidateProperty("MarketAttribute", value); if ((previous != null)) { this._marketAttribute.Entity = null; previous.ProductPeriodMarketAttributes.Remove(this); } if ((value != null)) { this.MarketAttributeId = value.MarketAttributeId; }

else { this.MarketAttributeId = default(int); } this._marketAttribute.Entity = value; if ((value != null)) { value.ProductPeriodMarketAttributes.Add(this); } this.RaisePropertyChanged("MarketAttribute"); } } } /// <summary> /// Gets or sets the 'MarketAttributeId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int MarketAttributeId { get { return this._marketAttributeId; } set { if ((this._marketAttributeId != value)) { this.OnMarketAttributeIdChanging(value); this.RaiseDataMemberChanging("MarketAttributeId"); this.ValidateProperty("MarketAttributeId", value); this._marketAttributeId = value; this.RaiseDataMemberChanged("MarketAttributeId"); this.OnMarketAttributeIdChanged(); } } } /// <summary> /// Gets or sets the 'NonDimPerceivedValue' value. /// </summary> [DataMember()] public decimal NonDimPerceivedValue { get { return this._nonDimPerceivedValue; } set { if ((this._nonDimPerceivedValue != value)) { this.OnNonDimPerceivedValueChanging(value); this.RaiseDataMemberChanging("NonDimPerceivedValue"); this.ValidateProperty("NonDimPerceivedValue", value); this._nonDimPerceivedValue = value; this.RaiseDataMemberChanged("NonDimPerceivedValue"); this.OnNonDimPerceivedValueChanged(); }

} } /// <summary> /// Gets or sets the 'ProductId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int ProductId { get { return this._productId; } set { if ((this._productId != value)) { this.OnProductIdChanging(value); this.RaiseDataMemberChanging("ProductId"); this.ValidateProperty("ProductId", value); this._productId = value; this.RaiseDataMemberChanged("ProductId"); this.OnProductIdChanged(); } } } /// <summary> /// Gets or sets the 'ProductPeriodMarketAttributeId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int ProductPeriodMarketAttributeId { get { return this._productPeriodMarketAttributeId; } set { if ((this._productPeriodMarketAttributeId != value)) { this.OnProductPeriodMarketAttributeIdChanging(value); this.ValidateProperty("ProductPeriodMarketAttributeId", valu e); this._productPeriodMarketAttributeId = value; this.RaisePropertyChanged("ProductPeriodMarketAttributeId"); this.OnProductPeriodMarketAttributeIdChanged(); } } } /// <summary> /// Gets or sets the 'RequestedPerceptualShiftValue' value. /// </summary> [DataMember()] public Nullable<int> RequestedPerceptualShiftValue

{ get { return this._requestedPerceptualShiftValue; } set { if ((this._requestedPerceptualShiftValue != value)) { this.OnRequestedPerceptualShiftValueChanging(value); this.RaiseDataMemberChanging("RequestedPerceptualShiftValue" ); this.ValidateProperty("RequestedPerceptualShiftValue", value ); this._requestedPerceptualShiftValue = value; this.RaiseDataMemberChanged("RequestedPerceptualShiftValue") ; this.OnRequestedPerceptualShiftValueChanged(); } } } private bool FilterGamePeriod(GamePeriod entity) { return (entity.GamePeriodId == this.GamePeriodId); } private bool FilterMarketAttribute(MarketAttribute entity) { return (entity.MarketAttributeId == this.MarketAttributeId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._productPeriodMarketAttributeId; } } /// <summary> /// The 'RegistrationData' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class RegistrationData : Entity { private string _answer; private string _email; private string _friendlyName; private string _question;

private string _userName; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnAnswerChanging(string value); partial void OnAnswerChanged(); partial void OnEmailChanging(string value); partial void OnEmailChanged(); partial void OnFriendlyNameChanging(string value); partial void OnFriendlyNameChanged(); partial void OnQuestionChanging(string value); partial void OnQuestionChanged(); partial void OnUserNameChanging(string value); partial void OnUserNameChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="RegistrationData"/> cla ss. /// </summary> public RegistrationData() { this.OnCreated(); } /// <summary> /// Gets or sets the 'Answer' value. /// </summary> [DataMember()] [Display(Name="SecurityAnswerLabel", Order=6, ResourceType=typeof(Regist rationDataResources))] [Required(ErrorMessageResourceName="ValidationErrorRequiredField", Error MessageResourceType=typeof(ValidationErrorResources))] public string Answer { get { return this._answer; } set { if ((this._answer != value)) { this.OnAnswerChanging(value); this.RaiseDataMemberChanging("Answer"); this.ValidateProperty("Answer", value); this._answer = value; this.RaiseDataMemberChanged("Answer"); this.OnAnswerChanged(); } } }

/// <summary> /// Gets or sets the 'Email' value. /// </summary> [DataMember()] [Display(Name="EmailLabel", Order=2, ResourceType=typeof(RegistrationDat aResources))] [Editable(false, AllowInitialValue=true)] [Key()] [RegularExpression("^([\\w-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1 ,3}\\.) (([\\w-]+\\.)+))([a-zA-Z]{2,4" + "} [0-9]{1,3})(\\]?)$", ErrorMessageResourceName="ValidationErrorInv alidEmail", ErrorMessageResourceType=typeof(ValidationErrorResources))] [Required(ErrorMessageResourceName="ValidationErrorRequiredField", Error MessageResourceType=typeof(ValidationErrorResources))] [RoundtripOriginal()] public string Email { get { return this._email; } set { if ((this._email != value)) { this.OnEmailChanging(value); this.ValidateProperty("Email", value); this._email = value; this.RaisePropertyChanged("Email"); this.OnEmailChanged(); } } } /// <summary> /// Gets or sets the 'FriendlyName' value. /// </summary> [DataMember()] [Display(Description="FriendlyNameDescription", Name="FriendlyNameLabel" , Order=1, ResourceType=typeof(RegistrationDataResources))] [StringLength(255, ErrorMessageResourceName="ValidationErrorBadFriendlyN ameLength", ErrorMessageResourceType=typeof(ValidationErrorResources))] public string FriendlyName { get { return this._friendlyName; } set { if ((this._friendlyName != value)) { this.OnFriendlyNameChanging(value); this.RaiseDataMemberChanging("FriendlyName"); this.ValidateProperty("FriendlyName", value); this._friendlyName = value; this.RaiseDataMemberChanged("FriendlyName"); this.OnFriendlyNameChanged(); }

} } /// <summary> /// Gets or sets the 'Question' value. /// </summary> [DataMember()] [Display(Name="SecurityQuestionLabel", Order=5, ResourceType=typeof(Regi strationDataResources))] [Required(ErrorMessageResourceName="ValidationErrorRequiredField", Error MessageResourceType=typeof(ValidationErrorResources))] public string Question { get { return this._question; } set { if ((this._question != value)) { this.OnQuestionChanging(value); this.RaiseDataMemberChanging("Question"); this.ValidateProperty("Question", value); this._question = value; this.RaiseDataMemberChanged("Question"); this.OnQuestionChanged(); } } } /// <summary> /// Gets or sets the 'UserName' value. /// </summary> [DataMember()] [Display(Name="UserNameLabel", Order=0, ResourceType=typeof(Registration DataResources))] [Editable(false, AllowInitialValue=true)] [Key()] [RegularExpression("^[a-zA-Z0-9_]*$", ErrorMessageResourceName="Validati onErrorInvalidUserName", ErrorMessageResourceType=typeof(ValidationErrorResource s))] [Required(ErrorMessageResourceName="ValidationErrorRequiredField", Error MessageResourceType=typeof(ValidationErrorResources))] [RoundtripOriginal()] [StringLength(255, ErrorMessageResourceName="ValidationErrorBadUserNameL ength", ErrorMessageResourceType=typeof(ValidationErrorResources), MinimumLength =4)] public string UserName { get { return this._userName; } set { if ((this._userName != value)) { this.OnUserNameChanging(value); this.ValidateProperty("UserName", value);

this._userName = value; this.RaisePropertyChanged("UserName"); this.OnUserNameChanged(); } } } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { if (((this._email == null) (this._userName == null))) { return null; } return EntityKey.Create(this._email, this._userName); } } /// <summary> /// The domain context corresponding to the 'SabreDomainService' domain serv ice. /// </summary> public sealed partial class SabreDomainContext : DomainContext { #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); #endregion /// <summary> /// Initializes a new instance of the <see cref="SabreDomainContext"/> c lass. /// </summary> public SabreDomainContext() : this(new WebDomainClient<ISabreDomainServiceContract>(new Uri("S abre-Web-SabreDomainService.svc", UriKind.Relative))) { } /// <summary> /// Initializes a new instance of the <see cref="SabreDomainContext"/> c lass with the specified service URI. /// </summary> /// <param name="serviceUri">The SabreDomainService service URI.</param> public SabreDomainContext(Uri serviceUri) : this(new WebDomainClient<ISabreDomainServiceContract>(serviceUri

)) { } /// <summary> /// Initializes a new instance of the <see cref="SabreDomainContext"/> c lass with the specified <paramref name="domainClient"/>. /// </summary> /// <param name="domainClient">The DomainClient instance to use for this domain context.</param> public SabreDomainContext(DomainClient domainClient) : base(domainClient) { this.OnCreated(); } /// <summary> /// Gets the set of <see cref="CompanyPresentationModel"/> entities that have been loaded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<CompanyPresentationModel> CompanyPresentationModels { get { return base.EntityContainer.GetEntitySet<CompanyPresentationMode l>(); } } /// <summary> /// Gets the set of <see cref="DecisionSetProduct"/> entities that have been loaded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<DecisionSetProduct> DecisionSetProducts { get { return base.EntityContainer.GetEntitySet<DecisionSetProduct>(); } } /// <summary> /// Gets the set of <see cref="DecisionSet"/> entities that have been lo aded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<DecisionSet> DecisionSets { get { return base.EntityContainer.GetEntitySet<DecisionSet>(); } } /// <summary> /// Gets the set of <see cref="TeamPeriod"/> entities that have been loa ded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<TeamPeriod> TeamPeriods { get

{ return base.EntityContainer.GetEntitySet<TeamPeriod>(); } } /// <summary> /// Gets the set of <see cref="User"/> entities that have been loaded in to this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<User> Users { get { return base.EntityContainer.GetEntitySet<User>(); } } /// <summary> /// Gets the set of <see cref="Game"/> entities that have been loaded in to this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<Game> Games { get { return base.EntityContainer.GetEntitySet<Game>(); } } /// <summary> /// Gets the set of <see cref="MarketIntel"/> entities that have been lo aded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<MarketIntel> MarketIntels { get { return base.EntityContainer.GetEntitySet<MarketIntel>(); } } /// <summary> /// Gets the set of <see cref="Market"/> entities that have been loaded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<Market> Markets { get { return base.EntityContainer.GetEntitySet<Market>(); } } /// <summary> /// Gets the set of <see cref="MarketAttribute"/> entities that have bee n loaded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<MarketAttribute> MarketAttributes { get

{ return base.EntityContainer.GetEntitySet<MarketAttribute>(); } } /// <summary> /// Gets the set of <see cref="MarketIntelAccessible"/> entities that ha ve been loaded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<MarketIntelAccessible> MarketIntelAccessibles { get { return base.EntityContainer.GetEntitySet<MarketIntelAccessible>( ); } } /// <summary> /// Gets the set of <see cref="MarketIntelType"/> entities that have bee n loaded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<MarketIntelType> MarketIntelTypes { get { return base.EntityContainer.GetEntitySet<MarketIntelType>(); } } /// <summary> /// Gets the set of <see cref="MarketSegment"/> entities that have been loaded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<MarketSegment> MarketSegments { get { return base.EntityContainer.GetEntitySet<MarketSegment>(); } } /// <summary> /// Gets the set of <see cref="PerceptualMapSegment"/> entities that hav e been loaded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<PerceptualMapSegment> PerceptualMapSegments { get { return base.EntityContainer.GetEntitySet<PerceptualMapSegment>() ; } } /// <summary> /// Gets the set of <see cref="ProductPresentationModel"/> entities that have been loaded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<ProductPresentationModel> ProductPresentationModels

{ get { return base.EntityContainer.GetEntitySet<ProductPresentationMode l>(); } } /// <summary> /// Gets the set of <see cref="ProductPeriodMarketAttribute"/> entities that have been loaded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<ProductPeriodMarketAttribute> ProductPeriodMarketAttrib utes { get { return base.EntityContainer.GetEntitySet<ProductPeriodMarketAttr ibute>(); } } /// <summary> /// Gets the set of <see cref="UserRole"/> entities that have been loade d into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<UserRole> UserRoles { get { return base.EntityContainer.GetEntitySet<UserRole>(); } } /// <summary> /// Gets the set of <see cref="UserGameRole"/> entities that have been l oaded into this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<UserGameRole> UserGameRoles { get { return base.EntityContainer.GetEntitySet<UserGameRole>(); } } /// <summary> /// Gets the set of <see cref="World"/> entities that have been loaded i nto this <see cref="SabreDomainContext"/> instance. /// </summary> public EntitySet<World> Worlds { get { return base.EntityContainer.GetEntitySet<World>(); } } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Com

panyPresentationModel"/> entities using the 'GetCompaniesForGameRoleInWorld' que ry. /// </summary> /// <param name="gameRoleId">The value for the 'gameRoleId' parameter of the query.</param> /// <param name="worldId">The value for the 'worldId' parameter of the q uery.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Co mpanyPresentationModel"/> entities.</returns> public EntityQuery<CompanyPresentationModel> GetCompaniesForGameRoleInWo rldQuery(int gameRoleId, int worldId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("gameRoleId", gameRoleId); parameters.Add("worldId", worldId); this.ValidateMethod("GetCompaniesForGameRoleInWorldQuery", parameter s); return base.CreateQuery<CompanyPresentationModel>("GetCompaniesForGa meRoleInWorld", parameters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Dec isionSetProduct"/> entities using the 'GetCurrentDecisionProductSet' query. /// </summary> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="De cisionSetProduct"/> entities.</returns> public EntityQuery<DecisionSetProduct> GetCurrentDecisionProductSetQuery () { this.ValidateMethod("GetCurrentDecisionProductSetQuery", null); return base.CreateQuery<DecisionSetProduct>("GetCurrentDecisionProdu ctSet", null, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Dec isionSet"/> entities using the 'GetCurrentDecisionSet' query. /// </summary> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="De cisionSet"/> entities.</returns> public EntityQuery<DecisionSet> GetCurrentDecisionSetQuery() { this.ValidateMethod("GetCurrentDecisionSetQuery", null); return base.CreateQuery<DecisionSet>("GetCurrentDecisionSet", null, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Tea mPeriod"/> entities using the 'GetCurrentTeamPeriod' query. /// </summary> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Te amPeriod"/> entities.</returns> public EntityQuery<TeamPeriod> GetCurrentTeamPeriodQuery() { this.ValidateMethod("GetCurrentTeamPeriodQuery", null); return base.CreateQuery<TeamPeriod>("GetCurrentTeamPeriod", null, fa lse, false);

} /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Use r"/> entities using the 'GetCurrentUser' query. /// </summary> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Us er"/> entities.</returns> public EntityQuery<User> GetCurrentUserQuery() { this.ValidateMethod("GetCurrentUserQuery", null); return base.CreateQuery<User>("GetCurrentUser", null, false, false); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Gam e"/> entities using the 'GetGame' query. /// </summary> /// <param name="GameId">The value for the 'GameId' parameter of the que ry.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ga me"/> entities.</returns> public EntityQuery<Game> GetGameQuery(int GameId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("GameId", GameId); this.ValidateMethod("GetGameQuery", parameters); return base.CreateQuery<Game>("GetGame", parameters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Gam e"/> entities using the 'GetGameByGuid' query. /// </summary> /// <param name="guid">The value for the 'guid' parameter of the query.< /param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ga me"/> entities.</returns> public EntityQuery<Game> GetGameByGuidQuery(Guid guid) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("guid", guid); this.ValidateMethod("GetGameByGuidQuery", parameters); return base.CreateQuery<Game>("GetGameByGuid", parameters, false, fa lse); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Gam e"/> entities using the 'GetGames' query. /// </summary> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ga me"/> entities.</returns> public EntityQuery<Game> GetGamesQuery() { this.ValidateMethod("GetGamesQuery", null); return base.CreateQuery<Game>("GetGames", null, false, true); }

/// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Mar ketIntel"/> entities using the 'GetInstructorMarketIntelForCurrentState' query. /// </summary> /// <param name="gameRoleId">The value for the 'gameRoleId' parameter of the query.</param> /// <param name="marketIntelTypeId">The value for the 'marketIntelTypeId ' parameter of the query.</param> /// <param name="gamePeriodId">The value for the 'gamePeriodId' paramete r of the query.</param> /// <param name="marketId">The value for the 'marketId' parameter of the query.</param> /// <param name="worldId">The value for the 'worldId' parameter of the q uery.</param> /// <param name="companyId">The value for the 'companyId' parameter of t he query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ma rketIntel"/> entities.</returns> public EntityQuery<MarketIntel> GetInstructorMarketIntelForCurrentStateQ uery(int gameRoleId, int marketIntelTypeId, int gamePeriodId, int marketId, int worldId, int companyId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("gameRoleId", gameRoleId); parameters.Add("marketIntelTypeId", marketIntelTypeId); parameters.Add("gamePeriodId", gamePeriodId); parameters.Add("marketId", marketId); parameters.Add("worldId", worldId); parameters.Add("companyId", companyId); this.ValidateMethod("GetInstructorMarketIntelForCurrentStateQuery", parameters); return base.CreateQuery<MarketIntel>("GetInstructorMarketIntelForCur rentState", parameters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Mar ket"/> entities using the 'GetMarket' query. /// </summary> /// <param name="marketId">The value for the 'marketId' parameter of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ma rket"/> entities.</returns> public EntityQuery<Market> GetMarketQuery(int marketId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("marketId", marketId); this.ValidateMethod("GetMarketQuery", parameters); return base.CreateQuery<Market>("GetMarket", parameters, false, fals e); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Mar ketAttribute"/> entities using the 'GetMarketAttributes' query. /// </summary> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ma

rketAttribute"/> entities.</returns> public EntityQuery<MarketAttribute> GetMarketAttributesQuery() { this.ValidateMethod("GetMarketAttributesQuery", null); return base.CreateQuery<MarketAttribute>("GetMarketAttributes", null , false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Mar ketAttribute"/> entities using the 'GetMarketAttributesForMarket' query. /// </summary> /// <param name="marketId">The value for the 'marketId' parameter of the query.</param> /// <param name="isInstructor">The value for the 'isInstructor' paramete r of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ma rketAttribute"/> entities.</returns> public EntityQuery<MarketAttribute> GetMarketAttributesForMarketQuery(in t marketId, bool isInstructor) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("marketId", marketId); parameters.Add("isInstructor", isInstructor); this.ValidateMethod("GetMarketAttributesForMarketQuery", parameters) ; return base.CreateQuery<MarketAttribute>("GetMarketAttributesForMark et", parameters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Mar ketIntel"/> entities using the 'GetMarketIntel' query. /// </summary> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ma rketIntel"/> entities.</returns> public EntityQuery<MarketIntel> GetMarketIntelQuery() { this.ValidateMethod("GetMarketIntelQuery", null); return base.CreateQuery<MarketIntel>("GetMarketIntel", null, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Mar ketIntel"/> entities using the 'GetMarketIntelForCurrentState' query. /// </summary> /// <param name="gameRoleId">The value for the 'gameRoleId' parameter of the query.</param> /// <param name="marketIntelTypeId">The value for the 'marketIntelTypeId ' parameter of the query.</param> /// <param name="gamePeriodId">The value for the 'gamePeriodId' paramete r of the query.</param> /// <param name="marketId">The value for the 'marketId' parameter of the query.</param> /// <param name="worldId">The value for the 'worldId' parameter of the q uery.</param> /// <param name="companyId">The value for the 'companyId' parameter of t he query.</param>

/// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ma rketIntel"/> entities.</returns> public EntityQuery<MarketIntel> GetMarketIntelForCurrentStateQuery(int g ameRoleId, int marketIntelTypeId, int gamePeriodId, int marketId, int worldId, i nt companyId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("gameRoleId", gameRoleId); parameters.Add("marketIntelTypeId", marketIntelTypeId); parameters.Add("gamePeriodId", gamePeriodId); parameters.Add("marketId", marketId); parameters.Add("worldId", worldId); parameters.Add("companyId", companyId); this.ValidateMethod("GetMarketIntelForCurrentStateQuery", parameters ); return base.CreateQuery<MarketIntel>("GetMarketIntelForCurrentState" , parameters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Mar ketIntelAccessible"/> entities using the 'GetMarketIntelPurchase' query. /// </summary> /// <param name="marketIntelAccessibleId">The value for the 'marketIntel AccessibleId' parameter of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ma rketIntelAccessible"/> entities.</returns> public EntityQuery<MarketIntelAccessible> GetMarketIntelPurchaseQuery(in t marketIntelAccessibleId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("marketIntelAccessibleId", marketIntelAccessibleId); this.ValidateMethod("GetMarketIntelPurchaseQuery", parameters); return base.CreateQuery<MarketIntelAccessible>("GetMarketIntelPurcha se", parameters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Mar ketIntelType"/> entities using the 'GetMarketIntelType' query. /// </summary> /// <param name="marketIntelTypeId">The value for the 'marketIntelTypeId ' parameter of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ma rketIntelType"/> entities.</returns> public EntityQuery<MarketIntelType> GetMarketIntelTypeQuery(int marketIn telTypeId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("marketIntelTypeId", marketIntelTypeId); this.ValidateMethod("GetMarketIntelTypeQuery", parameters); return base.CreateQuery<MarketIntelType>("GetMarketIntelType", param eters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Mar

ketIntelType"/> entities using the 'GetMarketIntelTypes' query. /// </summary> /// <param name="gameId">The value for the 'gameId' parameter of the que ry.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ma rketIntelType"/> entities.</returns> public EntityQuery<MarketIntelType> GetMarketIntelTypesQuery(int gameId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("gameId", gameId); this.ValidateMethod("GetMarketIntelTypesQuery", parameters); return base.CreateQuery<MarketIntelType>("GetMarketIntelTypes", para meters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Mar ketSegment"/> entities using the 'GetMarketSegments' query. /// </summary> /// <param name="marketId">The value for the 'marketId' parameter of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Ma rketSegment"/> entities.</returns> public EntityQuery<MarketSegment> GetMarketSegmentsQuery(int marketId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("marketId", marketId); this.ValidateMethod("GetMarketSegmentsQuery", parameters); return base.CreateQuery<MarketSegment>("GetMarketSegments", paramete rs, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Dec isionSet"/> entities using the 'GetNewDecisionSet' query. /// </summary> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="De cisionSet"/> entities.</returns> public EntityQuery<DecisionSet> GetNewDecisionSetQuery() { this.ValidateMethod("GetNewDecisionSetQuery", null); return base.CreateQuery<DecisionSet>("GetNewDecisionSet", null, fals e, false); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Per ceptualMapSegment"/> entities using the 'GetPerceptualMapsForMarketSegment' quer y. /// </summary> /// <param name="marketSegmentIds">The value for the 'marketSegmentIds' parameter of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Pe rceptualMapSegment"/> entities.</returns> public EntityQuery<PerceptualMapSegment> GetPerceptualMapsForMarketSegme ntQuery(int[] marketSegmentIds) { Dictionary<string, object> parameters = new Dictionary<string, objec

t>(); parameters.Add("marketSegmentIds", marketSegmentIds); this.ValidateMethod("GetPerceptualMapsForMarketSegmentQuery", parame ters); return base.CreateQuery<PerceptualMapSegment>("GetPerceptualMapsForM arketSegment", parameters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Pro ductPresentationModel"/> entities using the 'GetProductsInWorld' query. /// </summary> /// <param name="worldId">The value for the 'worldId' parameter of the q uery.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Pr oductPresentationModel"/> entities.</returns> public EntityQuery<ProductPresentationModel> GetProductsInWorldQuery(int worldId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("worldId", worldId); this.ValidateMethod("GetProductsInWorldQuery", parameters); return base.CreateQuery<ProductPresentationModel>("GetProductsInWorl d", parameters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Pro ductPeriodMarketAttribute"/> entities using the 'GetProductValuesForMarketAtrrib ute' query. /// </summary> /// <param name="marketAttributeId">The value for the 'marketAttributeId ' parameter of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Pr oductPeriodMarketAttribute"/> entities.</returns> public EntityQuery<ProductPeriodMarketAttribute> GetProductValuesForMark etAtrributeQuery(int marketAttributeId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("marketAttributeId", marketAttributeId); this.ValidateMethod("GetProductValuesForMarketAtrributeQuery", param eters); return base.CreateQuery<ProductPeriodMarketAttribute>("GetProductVal uesForMarketAtrribute", parameters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Use rRole"/> entities using the 'GetRolesForUser' query. /// </summary> /// <param name="userName">The value for the 'userName' parameter of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Us erRole"/> entities.</returns> public EntityQuery<UserRole> GetRolesForUserQuery(string userName) { Dictionary<string, object> parameters = new Dictionary<string, objec t>();

parameters.Add("userName", userName); this.ValidateMethod("GetRolesForUserQuery", parameters); return base.CreateQuery<UserRole>("GetRolesForUser", parameters, fal se, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Use r"/> entities using the 'GetUser' query. /// </summary> /// <param name="userId">The value for the 'userId' parameter of the que ry.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Us er"/> entities.</returns> public EntityQuery<User> GetUserQuery(int userId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("userId", userId); this.ValidateMethod("GetUserQuery", parameters); return base.CreateQuery<User>("GetUser", parameters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Use r"/> entities using the 'GetUserByNameAndPassword' query. /// </summary> /// <param name="userName">The value for the 'userName' parameter of the query.</param> /// <param name="password">The value for the 'password' parameter of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Us er"/> entities.</returns> public EntityQuery<User> GetUserByNameAndPasswordQuery(string userName, string password) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("userName", userName); parameters.Add("password", password); this.ValidateMethod("GetUserByNameAndPasswordQuery", parameters); return base.CreateQuery<User>("GetUserByNameAndPassword", parameters , false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Use rGameRole"/> entities using the 'GetUserGameRole' query. /// </summary> /// <param name="gameRoleId">The value for the 'gameRoleId' parameter of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Us erGameRole"/> entities.</returns> public EntityQuery<UserGameRole> GetUserGameRoleQuery(int gameRoleId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("gameRoleId", gameRoleId); this.ValidateMethod("GetUserGameRoleQuery", parameters); return base.CreateQuery<UserGameRole>("GetUserGameRole", parameters,

false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Use rRole"/> entities using the 'GetUserRole' query. /// </summary> /// <param name="userRoleId">The value for the 'userRoleId' parameter of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Us erRole"/> entities.</returns> public EntityQuery<UserRole> GetUserRoleQuery(int userRoleId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("userRoleId", userRoleId); this.ValidateMethod("GetUserRoleQuery", parameters); return base.CreateQuery<UserRole>("GetUserRole", parameters, false, false); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Use rRole"/> entities using the 'GetUserRoles' query. /// </summary> /// <param name="userRoleIds">The value for the 'userRoleIds' parameter of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Us erRole"/> entities.</returns> public EntityQuery<UserRole> GetUserRolesQuery(int[] userRoleIds) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("userRoleIds", userRoleIds); this.ValidateMethod("GetUserRolesQuery", parameters); return base.CreateQuery<UserRole>("GetUserRoles", parameters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Use r"/> entities using the 'GetUsers' query. /// </summary> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Us er"/> entities.</returns> public EntityQuery<User> GetUsersQuery() { this.ValidateMethod("GetUsersQuery", null); return base.CreateQuery<User>("GetUsers", null, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Wor ld"/> entities using the 'GetWorld' query. /// </summary> /// <param name="worldId">The value for the 'worldId' parameter of the q uery.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Wo rld"/> entities.</returns> public EntityQuery<World> GetWorldQuery(int worldId)

{ Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("worldId", worldId); this.ValidateMethod("GetWorldQuery", parameters); return base.CreateQuery<World>("GetWorld", parameters, false, true); } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Wor ld"/> entities using the 'GetWorldsForGameRole' query. /// </summary> /// <param name="gameRoleId">The value for the 'gameRoleId' parameter of the query.</param> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Wo rld"/> entities.</returns> public EntityQuery<World> GetWorldsForGameRoleQuery(int gameRoleId) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("gameRoleId", gameRoleId); this.ValidateMethod("GetWorldsForGameRoleQuery", parameters); return base.CreateQuery<World>("GetWorldsForGameRole", parameters, f alse, true); } /// <summary> /// Asynchronously invokes the 'SaveChanges' method of the domain servic e. /// </summary> /// <param name="callback">Callback to invoke when the operation complet es.</param> /// <param name="userState">Value to pass to the callback. It can be <c >null</c>.</param> /// <returns>An operation instance that can be used to manage the asynch ronous request.</returns> public InvokeOperation SaveChanges(Action<InvokeOperation> callback, obj ect userState) { this.ValidateMethod("SaveChanges", null); return this.InvokeOperation("SaveChanges", typeof(void), null, true, callback, userState); } /// <summary> /// Asynchronously invokes the 'SaveChanges' method of the domain servic e. /// </summary> /// <returns>An operation instance that can be used to manage the asynch ronous request.</returns> public InvokeOperation SaveChanges() { this.ValidateMethod("SaveChanges", null); return this.InvokeOperation("SaveChanges", typeof(void), null, true, null, null); } /// <summary> /// Creates a new entity container for this domain context's entity sets .

/// </summary> /// <returns>A new container instance.</returns> protected override EntityContainer CreateEntityContainer() { return new SabreDomainContextEntityContainer(); } /// <summary> /// Service contract for the 'SabreDomainService' domain service. /// </summary> [ServiceContract()] public interface ISabreDomainServiceContract { /// <summary> /// Asynchronously invokes the 'GetCompaniesForGameRoleInWorld' oper ation. /// </summary> /// <param name="gameRoleId">The value for the 'gameRoleId' paramete r of this action.</param> /// <param name="worldId">The value for the 'worldId' parameter of t his action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetCompaniesForGameRoleInWorldDomainService" + "Fault", Name="DomainServiceFault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetCompaniesForGameRoleInWorld", ReplyAction="http://tempuri.org /SabreDomainService/GetCompaniesForGameRoleInWorldResponse")] [WebGet()] IAsyncResult BeginGetCompaniesForGameRoleInWorld(int gameRoleId, int worldId, AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetCompanies ForGameRoleInWorld'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetCom paniesForGameRoleInWorld'.</param> /// <returns>The 'QueryResult' returned from the 'GetCompaniesForGam eRoleInWorld' operation.</returns> QueryResult<CompanyPresentationModel> EndGetCompaniesForGameRoleInWo rld(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetCurrentDecisionProductSet' operat ion. /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetCurrentDecisionProductSetDomainServiceFa" + "ult", Name="DomainServiceFault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetCurrentDecisionProductSet", ReplyAction="http://tempuri.org/S </summary> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request

abreDomainService/GetCurrentDecisionProductSetResponse")] [WebGet()] IAsyncResult BeginGetCurrentDecisionProductSet(AsyncCallback callbac k, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetCurrentDe cisionProductSet'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetCur rentDecisionProductSet'.</param> /// <returns>The 'QueryResult' returned from the 'GetCurrentDecision ProductSet' operation.</returns> QueryResult<DecisionSetProduct> EndGetCurrentDecisionProductSet(IAsy ncResult result); /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetCurrentDecisionSetDomainServiceFault", Name="DomainServi ceFault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetCurrentDecisionSet", ReplyAction="http://tempuri.org/SabreDom ainService/GetCurrentDecisionSetResponse")] [WebGet()] IAsyncResult BeginGetCurrentDecisionSet(AsyncCallback callback, obje ct asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetCurrentDe cisionSet'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetCur rentDecisionSet'.</param> /// <returns>The 'QueryResult' returned from the 'GetCurrentDecision Set' operation.</returns> QueryResult<DecisionSet> EndGetCurrentDecisionSet(IAsyncResult resul t); /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetCurrentTeamPeriodDomainServiceFault", Name="DomainServic eFault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetCurrentTeamPeriod", ReplyAction="http://tempuri.org/SabreDoma inService/GetCurrentTeamPeriodResponse")] [WebGet()] IAsyncResult BeginGetCurrentTeamPeriod(AsyncCallback callback, objec t asyncState); <summary> Asynchronously invokes the 'GetCurrentTeamPeriod' operation. </summary> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request <summary> Asynchronously invokes the 'GetCurrentDecisionSet' operation. </summary> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request

/// <summary> /// Completes the asynchronous operation begun by 'BeginGetCurrentTe amPeriod'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetCur rentTeamPeriod'.</param> /// <returns>The 'QueryResult' returned from the 'GetCurrentTeamPeri od' operation.</returns> QueryResult<TeamPeriod> EndGetCurrentTeamPeriod(IAsyncResult result) ; /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetCurrentUserDomainServiceFault", Name="DomainServiceFault ", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetCurrentUser", ReplyAction="http://tempuri.org/SabreDomainServ ice/GetCurrentUserResponse")] [WebGet()] IAsyncResult BeginGetCurrentUser(AsyncCallback callback, object asyn cState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetCurrentUs er'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetCur rentUser'.</param> /// <returns>The 'QueryResult' returned from the 'GetCurrentUser' op eration.</returns> QueryResult<User> EndGetCurrentUser(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetGame' operation. /// </summary> /// <param name="GameId">The value for the 'GameId' parameter of thi s action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetGameDomainServiceFault", Name="DomainServiceFault", Name space="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetGame", ReplyAction="http://tempuri.org/SabreDomainService/Get GameResponse")] [WebGet()] IAsyncResult BeginGetGame(int GameId, AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetGame'. <summary> Asynchronously invokes the 'GetCurrentUser' operation. </summary> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request

/// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetGam e'.</param> /// <returns>The 'QueryResult' returned from the 'GetGame' operation .</returns> QueryResult<Game> EndGetGame(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetGameByGuid' operation. /// </summary> /// <param name="guid">The value for the 'guid' parameter of this ac tion.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetGameByGuidDomainServiceFault", Name="DomainServiceFault" , Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetGameByGuid", ReplyAction="http://tempuri.org/SabreDomainServi ce/GetGameByGuidResponse")] [WebGet()] IAsyncResult BeginGetGameByGuid(Guid guid, AsyncCallback callback, o bject asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetGameByGui d'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetGam eByGuid'.</param> /// <returns>The 'QueryResult' returned from the 'GetGameByGuid' ope ration.</returns> QueryResult<Game> EndGetGameByGuid(IAsyncResult result); /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetGamesDomainServiceFault", Name="DomainServiceFault", Nam espace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetGames", ReplyAction="http://tempuri.org/SabreDomainService/Ge tGamesResponse")] [WebGet()] IAsyncResult BeginGetGames(AsyncCallback callback, object asyncState ); /// /// /// /// es'.</param> /// <returns>The 'QueryResult' returned from the 'GetGames' operatio n.</returns> <summary> Completes the asynchronous operation begun by 'BeginGetGames'. </summary> <param name="result">The IAsyncResult returned from 'BeginGetGam <summary> Asynchronously invokes the 'GetGames' operation. </summary> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request

QueryResult<Game> EndGetGames(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetInstructorMarketIntelForCurrentSt ate' operation. /// </summary> /// <param name="gameRoleId">The value for the 'gameRoleId' paramete r of this action.</param> /// <param name="marketIntelTypeId">The value for the 'marketIntelTy peId' parameter of this action.</param> /// <param name="gamePeriodId">The value for the 'gamePeriodId' para meter of this action.</param> /// <param name="marketId">The value for the 'marketId' parameter of this action.</param> /// <param name="worldId">The value for the 'worldId' parameter of t his action.</param> /// <param name="companyId">The value for the 'companyId' parameter of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetInstructorMarketIntelForCurrentStateDoma" + "inServiceFault", Name="DomainServiceFault", Namespace="DomainSe rvices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetInstructorMarketIntelForCurrentState", ReplyAction="http://te mpuri.org/SabreDomainService/GetInstructorMarketIntelForCurrentStateResp" + "onse")] [WebGet()] IAsyncResult BeginGetInstructorMarketIntelForCurrentState(int gameRo leId, int marketIntelTypeId, int gamePeriodId, int marketId, int worldId, int co mpanyId, AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetInstructo rMarketIntelForCurrentState'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetIns tructorMarketIntelForCurrentState'.</param> /// <returns>The 'QueryResult' returned from the 'GetInstructorMarke tIntelForCurrentState' operation.</returns> QueryResult<MarketIntel> EndGetInstructorMarketIntelForCurrentState( IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetMarket' operation. /// </summary> /// <param name="marketId">The value for the 'marketId' parameter of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetMarketDomainServiceFault", Name="DomainServiceFault", Na mespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetMarket", ReplyAction="http://tempuri.org/SabreDomainService/G

etMarketResponse")] [WebGet()] IAsyncResult BeginGetMarket(int marketId, AsyncCallback callback, ob ject asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetMarket'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetMar ket'.</param> /// <returns>The 'QueryResult' returned from the 'GetMarket' operati on.</returns> QueryResult<Market> EndGetMarket(IAsyncResult result); /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetMarketAttributesDomainServiceFault", Name="DomainService Fault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetMarketAttributes", ReplyAction="http://tempuri.org/SabreDomai nService/GetMarketAttributesResponse")] [WebGet()] IAsyncResult BeginGetMarketAttributes(AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetMarketAtt ributes'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetMar ketAttributes'.</param> /// <returns>The 'QueryResult' returned from the 'GetMarketAttribute s' operation.</returns> QueryResult<MarketAttribute> EndGetMarketAttributes(IAsyncResult res ult); /// <summary> /// Asynchronously invokes the 'GetMarketAttributesForMarket' operat ion. /// </summary> /// <param name="marketId">The value for the 'marketId' parameter of this action.</param> /// <param name="isInstructor">The value for the 'isInstructor' para meter of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetMarketAttributesForMarketDomainServiceFa" + "ult", Name="DomainServiceFault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetMarketAttributesForMarket", ReplyAction="http://tempuri.org/S abreDomainService/GetMarketAttributesForMarketResponse")] <summary> Asynchronously invokes the 'GetMarketAttributes' operation. </summary> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request

[WebGet()] IAsyncResult BeginGetMarketAttributesForMarket(int marketId, bool is Instructor, AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetMarketAtt ributesForMarket'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetMar ketAttributesForMarket'.</param> /// <returns>The 'QueryResult' returned from the 'GetMarketAttribute sForMarket' operation.</returns> QueryResult<MarketAttribute> EndGetMarketAttributesForMarket(IAsyncR esult result); /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetMarketIntelDomainServiceFault", Name="DomainServiceFault ", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetMarketIntel", ReplyAction="http://tempuri.org/SabreDomainServ ice/GetMarketIntelResponse")] [WebGet()] IAsyncResult BeginGetMarketIntel(AsyncCallback callback, object asyn cState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetMarketInt el'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetMar ketIntel'.</param> /// <returns>The 'QueryResult' returned from the 'GetMarketIntel' op eration.</returns> QueryResult<MarketIntel> EndGetMarketIntel(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetMarketIntelForCurrentState' opera tion. /// </summary> /// <param name="gameRoleId">The value for the 'gameRoleId' paramete r of this action.</param> /// <param name="marketIntelTypeId">The value for the 'marketIntelTy peId' parameter of this action.</param> /// <param name="gamePeriodId">The value for the 'gamePeriodId' para meter of this action.</param> /// <param name="marketId">The value for the 'marketId' parameter of this action.</param> /// <param name="worldId">The value for the 'worldId' parameter of t his action.</param> /// <param name="companyId">The value for the 'companyId' parameter of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> <summary> Asynchronously invokes the 'GetMarketIntel' operation. </summary> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request

/// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetMarketIntelForCurrentStateDomainServiceF" + "ault", Name="DomainServiceFault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetMarketIntelForCurrentState", ReplyAction="http://tempuri.org/ SabreDomainService/GetMarketIntelForCurrentStateResponse")] [WebGet()] IAsyncResult BeginGetMarketIntelForCurrentState(int gameRoleId, int marketIntelTypeId, int gamePeriodId, int marketId, int worldId, int companyId, A syncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetMarketInt elForCurrentState'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetMar ketIntelForCurrentState'.</param> /// <returns>The 'QueryResult' returned from the 'GetMarketIntelForC urrentState' operation.</returns> QueryResult<MarketIntel> EndGetMarketIntelForCurrentState(IAsyncResu lt result); /// <summary> /// Asynchronously invokes the 'GetMarketIntelPurchase' operation. /// </summary> /// <param name="marketIntelAccessibleId">The value for the 'marketI ntelAccessibleId' parameter of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetMarketIntelPurchaseDomainServiceFault", Name="DomainServ iceFault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetMarketIntelPurchase", ReplyAction="http://tempuri.org/SabreDo mainService/GetMarketIntelPurchaseResponse")] [WebGet()] IAsyncResult BeginGetMarketIntelPurchase(int marketIntelAccessibleId , AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetMarketInt elPurchase'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetMar ketIntelPurchase'.</param> /// <returns>The 'QueryResult' returned from the 'GetMarketIntelPurc hase' operation.</returns> QueryResult<MarketIntelAccessible> EndGetMarketIntelPurchase(IAsyncR esult result); /// /// /// /// peId' parameter /// <summary> Asynchronously invokes the 'GetMarketIntelType' operation. </summary> <param name="marketIntelTypeId">The value for the 'marketIntelTy of this action.</param> <param name="callback">Callback to invoke on completion.</param>

/// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetMarketIntelTypeDomainServiceFault", Name="DomainServiceF ault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetMarketIntelType", ReplyAction="http://tempuri.org/SabreDomain Service/GetMarketIntelTypeResponse")] [WebGet()] IAsyncResult BeginGetMarketIntelType(int marketIntelTypeId, AsyncCal lback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetMarketInt elType'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetMar ketIntelType'.</param> /// <returns>The 'QueryResult' returned from the 'GetMarketIntelType ' operation.</returns> QueryResult<MarketIntelType> EndGetMarketIntelType(IAsyncResult resu lt); /// <summary> /// Asynchronously invokes the 'GetMarketIntelTypes' operation. /// </summary> /// <param name="gameId">The value for the 'gameId' parameter of thi s action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetMarketIntelTypesDomainServiceFault", Name="DomainService Fault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetMarketIntelTypes", ReplyAction="http://tempuri.org/SabreDomai nService/GetMarketIntelTypesResponse")] [WebGet()] IAsyncResult BeginGetMarketIntelTypes(int gameId, AsyncCallback call back, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetMarketInt elTypes'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetMar ketIntelTypes'.</param> /// <returns>The 'QueryResult' returned from the 'GetMarketIntelType s' operation.</returns> QueryResult<MarketIntelType> EndGetMarketIntelTypes(IAsyncResult res ult); /// <summary> /// Asynchronously invokes the 'GetMarketSegments' operation. /// </summary> /// <param name="marketId">The value for the 'marketId' parameter of this action.</param> /// <param name="callback">Callback to invoke on completion.</param>

/// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetMarketSegmentsDomainServiceFault", Name="DomainServiceFa ult", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetMarketSegments", ReplyAction="http://tempuri.org/SabreDomainS ervice/GetMarketSegmentsResponse")] [WebGet()] IAsyncResult BeginGetMarketSegments(int marketId, AsyncCallback call back, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetMarketSeg ments'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetMar ketSegments'.</param> /// <returns>The 'QueryResult' returned from the 'GetMarketSegments' operation.</returns> QueryResult<MarketSegment> EndGetMarketSegments(IAsyncResult result) ; /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetNewDecisionSetDomainServiceFault", Name="DomainServiceFa ult", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetNewDecisionSet", ReplyAction="http://tempuri.org/SabreDomainS ervice/GetNewDecisionSetResponse")] [WebGet()] IAsyncResult BeginGetNewDecisionSet(AsyncCallback callback, object a syncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetNewDecisi onSet'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetNew DecisionSet'.</param> /// <returns>The 'QueryResult' returned from the 'GetNewDecisionSet' operation.</returns> QueryResult<DecisionSet> EndGetNewDecisionSet(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetPerceptualMapsForMarketSegment' o peration. /// </summary> /// <param name="marketSegmentIds">The value for the 'marketSegmentI ds' parameter of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request <summary> Asynchronously invokes the 'GetNewDecisionSet' operation. </summary> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request

.</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetPerceptualMapsForMarketSegmentDomainServ" + "iceFault", Name="DomainServiceFault", Namespace="DomainServices ")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetPerceptualMapsForMarketSegment", ReplyAction="http://tempuri. org/SabreDomainService/GetPerceptualMapsForMarketSegmentResponse")] [WebGet()] IAsyncResult BeginGetPerceptualMapsForMarketSegment(int[] marketSegm entIds, AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetPerceptua lMapsForMarketSegment'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetPer ceptualMapsForMarketSegment'.</param> /// <returns>The 'QueryResult' returned from the 'GetPerceptualMapsF orMarketSegment' operation.</returns> QueryResult<PerceptualMapSegment> EndGetPerceptualMapsForMarketSegme nt(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetProductsInWorld' operation. /// </summary> /// <param name="worldId">The value for the 'worldId' parameter of t his action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetProductsInWorldDomainServiceFault", Name="DomainServiceF ault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetProductsInWorld", ReplyAction="http://tempuri.org/SabreDomain Service/GetProductsInWorldResponse")] [WebGet()] IAsyncResult BeginGetProductsInWorld(int worldId, AsyncCallback call back, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetProductsI nWorld'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetPro ductsInWorld'.</param> /// <returns>The 'QueryResult' returned from the 'GetProductsInWorld ' operation.</returns> QueryResult<ProductPresentationModel> EndGetProductsInWorld(IAsyncRe sult result); /// <summary> /// Asynchronously invokes the 'GetProductValuesForMarketAtrribute' operation. /// /// teId' parameter /// </summary> <param name="marketAttributeId">The value for the 'marketAttribu of this action.</param> <param name="callback">Callback to invoke on completion.</param>

/// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetProductValuesForMarketAtrributeDomainSer" + "viceFault", Name="DomainServiceFault", Namespace="DomainService s")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetProductValuesForMarketAtrribute", ReplyAction="http://tempuri .org/SabreDomainService/GetProductValuesForMarketAtrributeResponse")] [WebGet()] IAsyncResult BeginGetProductValuesForMarketAtrribute(int marketAttri buteId, AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetProductVa luesForMarketAtrribute'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetPro ductValuesForMarketAtrribute'.</param> /// <returns>The 'QueryResult' returned from the 'GetProductValuesFo rMarketAtrribute' operation.</returns> QueryResult<ProductPeriodMarketAttribute> EndGetProductValuesForMark etAtrribute(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetRolesForUser' operation. /// </summary> /// <param name="userName">The value for the 'userName' parameter of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetRolesForUserDomainServiceFault", Name="DomainServiceFaul t", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetRolesForUser", ReplyAction="http://tempuri.org/SabreDomainSer vice/GetRolesForUserResponse")] [WebGet()] IAsyncResult BeginGetRolesForUser(string userName, AsyncCallback cal lback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetRolesForU ser'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetRol esForUser'.</param> /// <returns>The 'QueryResult' returned from the 'GetRolesForUser' o peration.</returns> QueryResult<UserRole> EndGetRolesForUser(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetUser' operation. /// </summary> /// <param name="userId">The value for the 'userId' parameter of thi s action.</param> /// <param name="callback">Callback to invoke on completion.</param>

/// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetUserDomainServiceFault", Name="DomainServiceFault", Name space="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetUser", ReplyAction="http://tempuri.org/SabreDomainService/Get UserResponse")] [WebGet()] IAsyncResult BeginGetUser(int userId, AsyncCallback callback, object asyncState); /// /// /// /// r'.</param> /// <returns>The 'QueryResult' returned from the 'GetUser' operation .</returns> QueryResult<User> EndGetUser(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetUserByNameAndPassword' operation. /// </summary> /// <param name="userName">The value for the 'userName' parameter of this action.</param> /// <param name="password">The value for the 'password' parameter of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetUserByNameAndPasswordDomainServiceFault", Name="DomainSe rviceFault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetUserByNameAndPassword", ReplyAction="http://tempuri.org/Sabre DomainService/GetUserByNameAndPasswordResponse")] [WebGet()] IAsyncResult BeginGetUserByNameAndPassword(string userName, string p assword, AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetUserByNam eAndPassword'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetUse rByNameAndPassword'.</param> /// <returns>The 'QueryResult' returned from the 'GetUserByNameAndPa ssword' operation.</returns> QueryResult<User> EndGetUserByNameAndPassword(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetUserGameRole' operation. /// </summary> /// <param name="gameRoleId">The value for the 'gameRoleId' paramete r of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> <summary> Completes the asynchronous operation begun by 'BeginGetUser'. </summary> <param name="result">The IAsyncResult returned from 'BeginGetUse

/// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetUserGameRoleDomainServiceFault", Name="DomainServiceFaul t", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetUserGameRole", ReplyAction="http://tempuri.org/SabreDomainSer vice/GetUserGameRoleResponse")] [WebGet()] IAsyncResult BeginGetUserGameRole(int gameRoleId, AsyncCallback call back, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetUserGameR ole'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetUse rGameRole'.</param> /// <returns>The 'QueryResult' returned from the 'GetUserGameRole' o peration.</returns> QueryResult<UserGameRole> EndGetUserGameRole(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetUserRole' operation. /// </summary> /// <param name="userRoleId">The value for the 'userRoleId' paramete r of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetUserRoleDomainServiceFault", Name="DomainServiceFault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetUserRole", ReplyAction="http://tempuri.org/SabreDomainService /GetUserRoleResponse")] [WebGet()] IAsyncResult BeginGetUserRole(int userRoleId, AsyncCallback callback , object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetUserRole' . /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetUse rRole'.</param> /// <returns>The 'QueryResult' returned from the 'GetUserRole' opera tion.</returns> QueryResult<UserRole> EndGetUserRole(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetUserRoles' operation. /// </summary> /// <param name="userRoleIds">The value for the 'userRoleIds' parame ter of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns>

[FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetUserRolesDomainServiceFault", Name="DomainServiceFault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetUserRoles", ReplyAction="http://tempuri.org/SabreDomainServic e/GetUserRolesResponse")] [WebGet()] IAsyncResult BeginGetUserRoles(int[] userRoleIds, AsyncCallback call back, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetUserRoles '. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetUse rRoles'.</param> /// <returns>The 'QueryResult' returned from the 'GetUserRoles' oper ation.</returns> QueryResult<UserRole> EndGetUserRoles(IAsyncResult result); /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetUsersDomainServiceFault", Name="DomainServiceFault", Nam espace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetUsers", ReplyAction="http://tempuri.org/SabreDomainService/Ge tUsersResponse")] [WebGet()] IAsyncResult BeginGetUsers(AsyncCallback callback, object asyncState ); /// /// /// /// rs'.</param> /// <returns>The 'QueryResult' returned from the 'GetUsers' operatio n.</returns> QueryResult<User> EndGetUsers(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetWorld' operation. /// </summary> /// <param name="worldId">The value for the 'worldId' parameter of t his action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetWorldDomainServiceFault", Name="DomainServiceFault", Nam espace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetWorld", ReplyAction="http://tempuri.org/SabreDomainService/Ge <summary> Completes the asynchronous operation begun by 'BeginGetUsers'. </summary> <param name="result">The IAsyncResult returned from 'BeginGetUse <summary> Asynchronously invokes the 'GetUsers' operation. </summary> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request

tWorldResponse")] [WebGet()] IAsyncResult BeginGetWorld(int worldId, AsyncCallback callback, obje ct asyncState); /// /// /// /// ld'.</param> /// <returns>The 'QueryResult' returned from the 'GetWorld' operatio n.</returns> QueryResult<World> EndGetWorld(IAsyncResult result); /// <summary> /// Asynchronously invokes the 'GetWorldsForGameRole' operation. /// </summary> /// <param name="gameRoleId">The value for the 'gameRoleId' paramete r of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/GetWorldsForGameRoleDomainServiceFault", Name="DomainServic eFault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/GetWorldsForGameRole", ReplyAction="http://tempuri.org/SabreDoma inService/GetWorldsForGameRoleResponse")] [WebGet()] IAsyncResult BeginGetWorldsForGameRole(int gameRoleId, AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginGetWorldsFor GameRole'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginGetWor ldsForGameRole'.</param> /// <returns>The 'QueryResult' returned from the 'GetWorldsForGameRo le' operation.</returns> QueryResult<World> EndGetWorldsForGameRole(IAsyncResult result); /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/SaveChangesDomainServiceFault", Name="DomainServiceFault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/SaveChanges", ReplyAction="http://tempuri.org/SabreDomainService /SaveChangesResponse")] IAsyncResult BeginSaveChanges(AsyncCallback callback, object asyncSt ate); /// <summary> <summary> Asynchronously invokes the 'SaveChanges' operation. </summary> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request <summary> Completes the asynchronous operation begun by 'BeginGetWorld'. </summary> <param name="result">The IAsyncResult returned from 'BeginGetWor

/// Completes the asynchronous operation begun by 'BeginSaveChanges' . /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginSaveCh anges'.</param> void EndSaveChanges(IAsyncResult result); /// /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/SabreDomainService/SubmitChangesDomainServiceFault", Name="DomainServiceFault" , Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Sab reDomainService/SubmitChanges", ReplyAction="http://tempuri.org/SabreDomainServi ce/SubmitChangesResponse")] IAsyncResult BeginSubmitChanges(IEnumerable<ChangeSetEntry> changeSe t, AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginSubmitChange s'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginSubmit Changes'.</param> /// <returns>The collection of change-set entry elements returned fr om 'SubmitChanges'.</returns> IEnumerable<ChangeSetEntry> EndSubmitChanges(IAsyncResult result); } internal sealed class SabreDomainContextEntityContainer : EntityContaine r { public SabreDomainContextEntityContainer() { this.CreateEntitySet<Channel>(EntitySetOperations.All); this.CreateEntitySet<Company>(EntitySetOperations.All); this.CreateEntitySet<DecisionSet>((EntitySetOperations.Add Ent itySetOperations.Edit)); this.CreateEntitySet<DecisionSetProduct>(EntitySetOperations.Non e); this.CreateEntitySet<Game>(EntitySetOperations.All); this.CreateEntitySet<GamePeriod>(EntitySetOperations.All); this.CreateEntitySet<Market>(EntitySetOperations.Add); this.CreateEntitySet<MarketAttribute>(EntitySetOperations.All); this.CreateEntitySet<MarketIntel>(EntitySetOperations.None); this.CreateEntitySet<MarketIntelAccessible>(EntitySetOperations. None); this.CreateEntitySet<MarketIntelType>(EntitySetOperations.All); this.CreateEntitySet<MarketSegment>(EntitySetOperations.All); this.CreateEntitySet<MediaType>(EntitySetOperations.All); this.CreateEntitySet<CompanyPresentationModel>(EntitySetOperatio ns.None); this.CreateEntitySet<ProductPresentationModel>(EntitySetOperatio <summary> Asynchronously invokes the 'SubmitChanges' operation. </summary> <param name="changeSet">The change-set to submit.</param> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request

ns.None); this.CreateEntitySet<PerceptualMapSegment>(EntitySetOperations.N one); this.CreateEntitySet<PerceptualMapSegmentAttribute>(EntitySetOpe rations.None); this.CreateEntitySet<ProductPeriodMarketAttribute>(EntitySetOper ations.None); this.CreateEntitySet<Team>(EntitySetOperations.All); this.CreateEntitySet<TeamPeriod>(EntitySetOperations.None); this.CreateEntitySet<User>(EntitySetOperations.None); this.CreateEntitySet<UserGameRole>(EntitySetOperations.None); this.CreateEntitySet<UserRole>(EntitySetOperations.None); this.CreateEntitySet<World>(EntitySetOperations.All); } } } /// <summary> /// The 'Team' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class Team : Entity { private EntityRef<Company> _company; private string _companyAliasName; private int _companyId; private EntityCollection<MarketIntelAccessible> _marketIntelAccessibles; private string _name; private int _teamId; private EntityCollection<TeamPeriod> _teamPeriods; private EntityRef<World> _world; private int _worldId; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnCompanyAliasNameChanging(string value); partial void OnCompanyAliasNameChanged(); partial void OnCompanyIdChanging(int value); partial void OnCompanyIdChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); partial void OnTeamIdChanging(int value); partial void OnTeamIdChanged(); partial void OnWorldIdChanging(int value);

partial void OnWorldIdChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="Team"/> class. /// </summary> public Team() { this.OnCreated(); } /// <summary> /// Gets or sets the associated <see cref="Company"/> entity. /// </summary> [Association("Company_Team", "CompanyId", "CompanyId", IsForeignKey=true )] [XmlIgnore()] public Company Company { get { if ((this._company == null)) { this._company = new EntityRef<Company>(this, "Company", this .FilterCompany); } return this._company.Entity; } set { Company previous = this.Company; if ((previous != value)) { this.ValidateProperty("Company", value); if ((previous != null)) { this._company.Entity = null; previous.Teams.Remove(this); } if ((value != null)) { this.CompanyId = value.CompanyId; } else { this.CompanyId = default(int); } this._company.Entity = value; if ((value != null)) { value.Teams.Add(this); } this.RaisePropertyChanged("Company"); } } } /// <summary>

/// Gets or sets the 'CompanyAliasName' value. /// </summary> [DataMember()] [StringLength(50)] public string CompanyAliasName { get { return this._companyAliasName; } set { if ((this._companyAliasName != value)) { this.OnCompanyAliasNameChanging(value); this.RaiseDataMemberChanging("CompanyAliasName"); this.ValidateProperty("CompanyAliasName", value); this._companyAliasName = value; this.RaiseDataMemberChanged("CompanyAliasName"); this.OnCompanyAliasNameChanged(); } } } /// <summary> /// Gets or sets the 'CompanyId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int CompanyId { get { return this._companyId; } set { if ((this._companyId != value)) { this.OnCompanyIdChanging(value); this.RaiseDataMemberChanging("CompanyId"); this.ValidateProperty("CompanyId", value); this._companyId = value; this.RaiseDataMemberChanged("CompanyId"); this.OnCompanyIdChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="MarketIntelAccessible"/ > entities. /// </summary> [Association("Team_MarketIntelAccessible", "TeamId", "TeamId")] [XmlIgnore()] public EntityCollection<MarketIntelAccessible> MarketIntelAccessibles { get { if ((this._marketIntelAccessibles == null))

{ this._marketIntelAccessibles = new EntityCollection<MarketIn telAccessible>(this, "MarketIntelAccessibles", this.FilterMarketIntelAccessibles , this.AttachMarketIntelAccessibles, this.DetachMarketIntelAccessibles); } return this._marketIntelAccessibles; } } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] [StringLength(50)] public string Name { get { return this._name; } set { if ((this._name != value)) { this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value); this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } } /// <summary> /// Gets or sets the 'TeamId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int TeamId { get { return this._teamId; } set { if ((this._teamId != value)) { this.OnTeamIdChanging(value); this.ValidateProperty("TeamId", value); this._teamId = value; this.RaisePropertyChanged("TeamId"); this.OnTeamIdChanged(); } } }

/// <summary> /// Gets the collection of associated <see cref="TeamPeriod"/> entities. /// </summary> [Association("Team_TeamPeriod", "TeamId", "TeamId")] [XmlIgnore()] public EntityCollection<TeamPeriod> TeamPeriods { get { if ((this._teamPeriods == null)) { this._teamPeriods = new EntityCollection<TeamPeriod>(this, " TeamPeriods", this.FilterTeamPeriods, this.AttachTeamPeriods, this.DetachTeamPer iods); } return this._teamPeriods; } } /// <summary> /// Gets or sets the associated <see cref="World"/> entity. /// </summary> [Association("World_Team", "WorldId", "WorldId", IsForeignKey=true)] [XmlIgnore()] public World World { get { if ((this._world == null)) { this._world = new EntityRef<World>(this, "World", this.Filte rWorld); } return this._world.Entity; } set { World previous = this.World; if ((previous != value)) { this.ValidateProperty("World", value); if ((previous != null)) { this._world.Entity = null; previous.Teams.Remove(this); } if ((value != null)) { this.WorldId = value.WorldId; } else { this.WorldId = default(int); } this._world.Entity = value; if ((value != null)) { value.Teams.Add(this); } this.RaisePropertyChanged("World");

} } } /// <summary> /// Gets or sets the 'WorldId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int WorldId { get { return this._worldId; } set { if ((this._worldId != value)) { this.OnWorldIdChanging(value); this.RaiseDataMemberChanging("WorldId"); this.ValidateProperty("WorldId", value); this._worldId = value; this.RaiseDataMemberChanged("WorldId"); this.OnWorldIdChanged(); } } } private bool FilterCompany(Company entity) { return (entity.CompanyId == this.CompanyId); } private void AttachMarketIntelAccessibles(MarketIntelAccessible entity) { entity.Team = this; } private void DetachMarketIntelAccessibles(MarketIntelAccessible entity) { entity.Team = null; } private bool FilterMarketIntelAccessibles(MarketIntelAccessible entity) { return (entity.TeamId == this.TeamId); } private void AttachTeamPeriods(TeamPeriod entity) { entity.Team = this; } private void DetachTeamPeriods(TeamPeriod entity) { entity.Team = null; } private bool FilterTeamPeriods(TeamPeriod entity)

{ return (entity.TeamId == this.TeamId); } private bool FilterWorld(World entity) { return (entity.WorldId == this.WorldId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._teamId; } } /// <summary> /// The 'TeamPeriod' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class TeamPeriod : Entity { private decimal _budgetAmount; private EntityCollection<DecisionSet> _decisionSets; private EntityRef<GamePeriod> _gamePeriod; private int _gamePeriodId; private EntityRef<Team> _team; private int _teamId; private int _teamPeriodId; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnBudgetAmountChanging(decimal value); partial void OnBudgetAmountChanged(); partial void OnGamePeriodIdChanging(int value); partial void OnGamePeriodIdChanged(); partial void OnTeamIdChanging(int value); partial void OnTeamIdChanged(); partial void OnTeamPeriodIdChanging(int value); partial void OnTeamPeriodIdChanged();

#endregion /// <summary> /// Initializes a new instance of the <see cref="TeamPeriod"/> class. /// </summary> public TeamPeriod() { this.OnCreated(); } /// <summary> /// Gets or sets the 'BudgetAmount' value. /// </summary> [DataMember()] public decimal BudgetAmount { get { return this._budgetAmount; } set { if ((this._budgetAmount != value)) { this.OnBudgetAmountChanging(value); this.RaiseDataMemberChanging("BudgetAmount"); this.ValidateProperty("BudgetAmount", value); this._budgetAmount = value; this.RaiseDataMemberChanged("BudgetAmount"); this.OnBudgetAmountChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="DecisionSet"/> entities . /// </summary> [Association("TeamPeriod_DecisionSet", "TeamPeriodId", "TeamPeriodId")] [XmlIgnore()] public EntityCollection<DecisionSet> DecisionSets { get { if ((this._decisionSets == null)) { this._decisionSets = new EntityCollection<DecisionSet>(this, "DecisionSets", this.FilterDecisionSets, this.AttachDecisionSets, this.DetachDe cisionSets); } return this._decisionSets; } } /// <summary> /// Gets or sets the associated <see cref="GamePeriod"/> entity. /// </summary> [Association("GamePeriod_TeamPeriod", "GamePeriodId", "GamePeriodId", Is ForeignKey=true)]

[XmlIgnore()] public GamePeriod GamePeriod { get { if ((this._gamePeriod == null)) { this._gamePeriod = new EntityRef<GamePeriod>(this, "GamePeri od", this.FilterGamePeriod); } return this._gamePeriod.Entity; } set { GamePeriod previous = this.GamePeriod; if ((previous != value)) { this.ValidateProperty("GamePeriod", value); if ((previous != null)) { this._gamePeriod.Entity = null; previous.TeamPeriods.Remove(this); } if ((value != null)) { this.GamePeriodId = value.GamePeriodId; } else { this.GamePeriodId = default(int); } this._gamePeriod.Entity = value; if ((value != null)) { value.TeamPeriods.Add(this); } this.RaisePropertyChanged("GamePeriod"); } } } /// <summary> /// Gets or sets the 'GamePeriodId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int GamePeriodId { get { return this._gamePeriodId; } set { if ((this._gamePeriodId != value)) { this.OnGamePeriodIdChanging(value); this.RaiseDataMemberChanging("GamePeriodId"); this.ValidateProperty("GamePeriodId", value); this._gamePeriodId = value;

this.RaiseDataMemberChanged("GamePeriodId"); this.OnGamePeriodIdChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="Team"/> entity. /// </summary> [Association("Team_TeamPeriod", "TeamId", "TeamId", IsForeignKey=true)] [XmlIgnore()] public Team Team { get { if ((this._team == null)) { this._team = new EntityRef<Team>(this, "Team", this.FilterTe am); } return this._team.Entity; } set { Team previous = this.Team; if ((previous != value)) { this.ValidateProperty("Team", value); if ((previous != null)) { this._team.Entity = null; previous.TeamPeriods.Remove(this); } if ((value != null)) { this.TeamId = value.TeamId; } else { this.TeamId = default(int); } this._team.Entity = value; if ((value != null)) { value.TeamPeriods.Add(this); } this.RaisePropertyChanged("Team"); } } } /// <summary> /// Gets or sets the 'TeamId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int TeamId { get {

return this._teamId; } set { if ((this._teamId != value)) { this.OnTeamIdChanging(value); this.RaiseDataMemberChanging("TeamId"); this.ValidateProperty("TeamId", value); this._teamId = value; this.RaiseDataMemberChanged("TeamId"); this.OnTeamIdChanged(); } } } /// <summary> /// Gets or sets the 'TeamPeriodId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int TeamPeriodId { get { return this._teamPeriodId; } set { if ((this._teamPeriodId != value)) { this.OnTeamPeriodIdChanging(value); this.ValidateProperty("TeamPeriodId", value); this._teamPeriodId = value; this.RaisePropertyChanged("TeamPeriodId"); this.OnTeamPeriodIdChanged(); } } } private void AttachDecisionSets(DecisionSet entity) { entity.TeamPeriod = this; } private void DetachDecisionSets(DecisionSet entity) { entity.TeamPeriod = null; } private bool FilterDecisionSets(DecisionSet entity) { return (entity.TeamPeriodId == this.TeamPeriodId); } private bool FilterGamePeriod(GamePeriod entity) { return (entity.GamePeriodId == this.GamePeriodId);

} private bool FilterTeam(Team entity) { return (entity.TeamId == this.TeamId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._teamPeriodId; } } /// <summary> /// The 'User' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class User : Entity { private string _emailAddress; private string _name; private string _password; private string _studentIdentifier; private EntityCollection<UserGameRole> _userGameRoles; private int _userId; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnEmailAddressChanging(string value); partial void OnEmailAddressChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); partial void OnPasswordChanging(string value); partial void OnPasswordChanged(); partial void OnStudentIdentifierChanging(string value); partial void OnStudentIdentifierChanged(); partial void OnUserIdChanging(int value); partial void OnUserIdChanged(); #endregion

/// <summary> /// Initializes a new instance of the <see cref="User"/> class. /// </summary> public User() { this.OnCreated(); } /// <summary> /// Gets or sets the 'EmailAddress' value. /// </summary> [DataMember()] [StringLength(50)] public string EmailAddress { get { return this._emailAddress; } set { if ((this._emailAddress != value)) { this.OnEmailAddressChanging(value); this.RaiseDataMemberChanging("EmailAddress"); this.ValidateProperty("EmailAddress", value); this._emailAddress = value; this.RaiseDataMemberChanged("EmailAddress"); this.OnEmailAddressChanged(); } } } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] [Required()] [StringLength(50)] public string Name { get { return this._name; } set { if ((this._name != value)) { this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value); this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } }

/// <summary> /// Gets or sets the 'Password' value. /// </summary> [DataMember()] [StringLength(15)] public string Password { get { return this._password; } set { if ((this._password != value)) { this.OnPasswordChanging(value); this.RaiseDataMemberChanging("Password"); this.ValidateProperty("Password", value); this._password = value; this.RaiseDataMemberChanged("Password"); this.OnPasswordChanged(); } } } /// <summary> /// Gets or sets the 'StudentIdentifier' value. /// </summary> [DataMember()] [StringLength(20)] public string StudentIdentifier { get { return this._studentIdentifier; } set { if ((this._studentIdentifier != value)) { this.OnStudentIdentifierChanging(value); this.RaiseDataMemberChanging("StudentIdentifier"); this.ValidateProperty("StudentIdentifier", value); this._studentIdentifier = value; this.RaiseDataMemberChanged("StudentIdentifier"); this.OnStudentIdentifierChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="UserGameRole"/> entitie s. /// </summary> [Association("User_UserGameRole", "UserId", "UserId")] [XmlIgnore()] public EntityCollection<UserGameRole> UserGameRoles { get {

if ((this._userGameRoles == null)) { this._userGameRoles = new EntityCollection<UserGameRole>(thi s, "UserGameRoles", this.FilterUserGameRoles, this.AttachUserGameRoles, this.Det achUserGameRoles); } return this._userGameRoles; } } /// <summary> /// Gets or sets the 'UserId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int UserId { get { return this._userId; } set { if ((this._userId != value)) { this.OnUserIdChanging(value); this.ValidateProperty("UserId", value); this._userId = value; this.RaisePropertyChanged("UserId"); this.OnUserIdChanged(); } } } private void AttachUserGameRoles(UserGameRole entity) { entity.User = this; } private void DetachUserGameRoles(UserGameRole entity) { entity.User = null; } private bool FilterUserGameRoles(UserGameRole entity) { return (entity.UserId == this.UserId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._userId;

} } /// <summary> /// The 'UserGameRole' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class UserGameRole : Entity { private EntityRef<Game> _game; private int _gameId; private Nullable<int> _registrationStatusId; private EntityRef<User> _user; private int _userGameRoleId; private int _userId; private EntityRef<UserRole> _userRole; private int _userRoleId; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnGameIdChanging(int value); partial void OnGameIdChanged(); partial void OnRegistrationStatusIdChanging(Nullable<int> value); partial void OnRegistrationStatusIdChanged(); partial void OnUserGameRoleIdChanging(int value); partial void OnUserGameRoleIdChanged(); partial void OnUserIdChanging(int value); partial void OnUserIdChanged(); partial void OnUserRoleIdChanging(int value); partial void OnUserRoleIdChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="UserGameRole"/> class. /// </summary> public UserGameRole() { this.OnCreated(); } /// <summary> /// Gets or sets the associated <see cref="Game"/> entity. /// </summary>

[Association("Game_UserGameRole", "GameId", "GameId", IsForeignKey=true) ] [XmlIgnore()] public Game Game { get { if ((this._game == null)) { this._game = new EntityRef<Game>(this, "Game", this.FilterGa me); } return this._game.Entity; } set { Game previous = this.Game; if ((previous != value)) { this.ValidateProperty("Game", value); if ((previous != null)) { this._game.Entity = null; previous.UserGameRoles.Remove(this); } if ((value != null)) { this.GameId = value.GameId; } else { this.GameId = default(int); } this._game.Entity = value; if ((value != null)) { value.UserGameRoles.Add(this); } this.RaisePropertyChanged("Game"); } } } /// <summary> /// Gets or sets the 'GameId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int GameId { get { return this._gameId; } set { if ((this._gameId != value)) { this.OnGameIdChanging(value); this.RaiseDataMemberChanging("GameId");

this.ValidateProperty("GameId", value); this._gameId = value; this.RaiseDataMemberChanged("GameId"); this.OnGameIdChanged(); } } } /// <summary> /// Gets or sets the 'RegistrationStatusId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public Nullable<int> RegistrationStatusId { get { return this._registrationStatusId; } set { if ((this._registrationStatusId != value)) { this.OnRegistrationStatusIdChanging(value); this.RaiseDataMemberChanging("RegistrationStatusId"); this.ValidateProperty("RegistrationStatusId", value); this._registrationStatusId = value; this.RaiseDataMemberChanged("RegistrationStatusId"); this.OnRegistrationStatusIdChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="User"/> entity. /// </summary> [Association("User_UserGameRole", "UserId", "UserId", IsForeignKey=true) ] [XmlIgnore()] public User User { get { if ((this._user == null)) { this._user = new EntityRef<User>(this, "User", this.FilterUs er); } return this._user.Entity; } set { User previous = this.User; if ((previous != value)) { this.ValidateProperty("User", value); if ((previous != null)) { this._user.Entity = null; previous.UserGameRoles.Remove(this);

} if ((value != null)) { this.UserId = value.UserId; } else { this.UserId = default(int); } this._user.Entity = value; if ((value != null)) { value.UserGameRoles.Add(this); } this.RaisePropertyChanged("User"); } } } /// <summary> /// Gets or sets the 'UserGameRoleId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int UserGameRoleId { get { return this._userGameRoleId; } set { if ((this._userGameRoleId != value)) { this.OnUserGameRoleIdChanging(value); this.ValidateProperty("UserGameRoleId", value); this._userGameRoleId = value; this.RaisePropertyChanged("UserGameRoleId"); this.OnUserGameRoleIdChanged(); } } } /// <summary> /// Gets or sets the 'UserId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int UserId { get { return this._userId; } set { if ((this._userId != value)) {

this.OnUserIdChanging(value); this.RaiseDataMemberChanging("UserId"); this.ValidateProperty("UserId", value); this._userId = value; this.RaiseDataMemberChanged("UserId"); this.OnUserIdChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="UserRole"/> entity. /// </summary> [Association("UserRole_UserGameRole", "UserRoleId", "UserRoleId", IsFore ignKey=true)] [XmlIgnore()] public UserRole UserRole { get { if ((this._userRole == null)) { this._userRole = new EntityRef<UserRole>(this, "UserRole", t his.FilterUserRole); } return this._userRole.Entity; } set { UserRole previous = this.UserRole; if ((previous != value)) { this.ValidateProperty("UserRole", value); if ((previous != null)) { this._userRole.Entity = null; previous.UserGameRoles.Remove(this); } if ((value != null)) { this.UserRoleId = value.UserRoleId; } else { this.UserRoleId = default(int); } this._userRole.Entity = value; if ((value != null)) { value.UserGameRoles.Add(this); } this.RaisePropertyChanged("UserRole"); } } } /// <summary> /// Gets or sets the 'UserRoleId' value. /// </summary> [DataMember()]

[RoundtripOriginal()] public int UserRoleId { get { return this._userRoleId; } set { if ((this._userRoleId != value)) { this.OnUserRoleIdChanging(value); this.RaiseDataMemberChanging("UserRoleId"); this.ValidateProperty("UserRoleId", value); this._userRoleId = value; this.RaiseDataMemberChanged("UserRoleId"); this.OnUserRoleIdChanged(); } } } private bool FilterGame(Game entity) { return (entity.GameId == this.GameId); } private bool FilterUser(User entity) { return (entity.UserId == this.UserId); } private bool FilterUserRole(UserRole entity) { return (entity.UserRoleId == this.UserRoleId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._userGameRoleId; } } /// <summary> /// The domain context corresponding to the 'UserRegistrationService' domain service. /// </summary> public sealed partial class UserRegistrationContext : DomainContext { #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and

/// can be used for further object setup. /// </summary> partial void OnCreated(); #endregion /// <summary> /// Initializes a new instance of the <see cref="UserRegistrationContext "/> class. /// </summary> public UserRegistrationContext() : this(new WebDomainClient<IUserRegistrationServiceContract>(new U ri("Sabre-Web-UserRegistrationService.svc", UriKind.Relative))) { } /// <summary> /// Initializes a new instance of the <see cref="UserRegistrationContext "/> class with the specified service URI. /// </summary> /// <param name="serviceUri">The UserRegistrationService service URI.</p aram> public UserRegistrationContext(Uri serviceUri) : this(new WebDomainClient<IUserRegistrationServiceContract>(servi ceUri)) { } /// <summary> /// Initializes a new instance of the <see cref="UserRegistrationContext "/> class with the specified <paramref name="domainClient"/>. /// </summary> /// <param name="domainClient">The DomainClient instance to use for this domain context.</param> public UserRegistrationContext(DomainClient domainClient) : base(domainClient) { this.OnCreated(); } /// <summary> /// Gets the set of <see cref="RegistrationData"/> entities that have be en loaded into this <see cref="UserRegistrationContext"/> instance. /// </summary> public EntitySet<RegistrationData> RegistrationDatas { get { return base.EntityContainer.GetEntitySet<RegistrationData>(); } } /// <summary> /// Gets an EntityQuery instance that can be used to load <see cref="Reg istrationData"/> entities using the 'GetUsers' query. /// </summary> /// <returns>An EntityQuery that can be loaded to retrieve <see cref="Re gistrationData"/> entities.</returns> public EntityQuery<RegistrationData> GetUsersQuery()

{ this.ValidateMethod("GetUsersQuery", null); return base.CreateQuery<RegistrationData>("GetUsers", null, false, t rue); } /// <summary> /// Asynchronously invokes the 'CreateUser' method of the domain service . /// </summary> /// <param name="user">The value for the 'user' parameter of this action .</param> /// <param name="password">The value for the 'password' parameter of thi s action.</param> /// <param name="callback">Callback to invoke when the operation complet es.</param> /// <param name="userState">Value to pass to the callback. It can be <c >null</c>.</param> /// <returns>An operation instance that can be used to manage the asynch ronous request.</returns> public InvokeOperation<CreateUserStatus> CreateUser(RegistrationData use r, [RegularExpression("^.*[^a-zA-Z0-9].*$", ErrorMessageResourceName="Validation ErrorBadPasswordStrength", ErrorMessageResourceType=typeof(ValidationErrorResour ces))] [Required(ErrorMessageResourceName="ValidationErrorRequiredField", ErrorM essageResourceType=typeof(ValidationErrorResources))] [StringLength(50, ErrorMes sageResourceName="ValidationErrorBadPasswordLength", ErrorMessageResourceType=ty peof(ValidationErrorResources), MinimumLength=7)] string password, Action<Invoke Operation<CreateUserStatus>> callback, object userState) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("user", user); parameters.Add("password", password); this.ValidateMethod("CreateUser", parameters); return ((InvokeOperation<CreateUserStatus>)(this.InvokeOperation("Cr eateUser", typeof(CreateUserStatus), parameters, true, callback, userState))); } /// <summary> /// Asynchronously invokes the 'CreateUser' method of the domain service . /// </summary> /// <param name="user">The value for the 'user' parameter of this action .</param> /// <param name="password">The value for the 'password' parameter of thi s action.</param> /// <returns>An operation instance that can be used to manage the asynch ronous request.</returns> public InvokeOperation<CreateUserStatus> CreateUser(RegistrationData use r, [RegularExpression("^.*[^a-zA-Z0-9].*$", ErrorMessageResourceName="Validation ErrorBadPasswordStrength", ErrorMessageResourceType=typeof(ValidationErrorResour ces))] [Required(ErrorMessageResourceName="ValidationErrorRequiredField", ErrorM essageResourceType=typeof(ValidationErrorResources))] [StringLength(50, ErrorMes sageResourceName="ValidationErrorBadPasswordLength", ErrorMessageResourceType=ty peof(ValidationErrorResources), MinimumLength=7)] string password) { Dictionary<string, object> parameters = new Dictionary<string, objec t>(); parameters.Add("user", user); parameters.Add("password", password);

this.ValidateMethod("CreateUser", parameters); return ((InvokeOperation<CreateUserStatus>)(this.InvokeOperation("Cr eateUser", typeof(CreateUserStatus), parameters, true, null, null))); } /// <summary> /// Creates a new entity container for this domain context's entity sets . /// </summary> /// <returns>A new container instance.</returns> protected override EntityContainer CreateEntityContainer() { return new UserRegistrationContextEntityContainer(); } /// <summary> /// Service contract for the 'UserRegistrationService' domain service. /// </summary> [ServiceContract()] public interface IUserRegistrationServiceContract { /// <summary> /// Asynchronously invokes the 'CreateUser' operation. /// </summary> /// <param name="user">The value for the 'user' parameter of this ac tion.</param> /// <param name="password">The value for the 'password' parameter of this action.</param> /// <param name="callback">Callback to invoke on completion.</param> /// <param name="asyncState">Optional state object.</param> /// <returns>An IAsyncResult that can be used to monitor the request .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/UserRegistrationService/CreateUserDomainServiceFault", Name="DomainServiceFaul t", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Use rRegistrationService/CreateUser", ReplyAction="http://tempuri.org/UserRegistrati onService/CreateUserResponse")] IAsyncResult BeginCreateUser(RegistrationData user, string password, AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginCreateUser'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginCreate User'.</param> /// <returns>The 'CreateUserStatus' returned from the 'CreateUser' o peration.</returns> CreateUserStatus EndCreateUser(IAsyncResult result); /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/UserRegistrationService/GetUsersDomainServiceFault", Name="DomainServiceFault" <summary> Asynchronously invokes the 'GetUsers' operation. </summary> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request

, Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Use rRegistrationService/GetUsers", ReplyAction="http://tempuri.org/UserRegistration Service/GetUsersResponse")] [WebGet()] IAsyncResult BeginGetUsers(AsyncCallback callback, object asyncState ); /// /// /// /// rs'.</param> /// <returns>The 'QueryResult' returned from the 'GetUsers' operatio n.</returns> QueryResult<RegistrationData> EndGetUsers(IAsyncResult result); /// /// /// /// /// /// /// .</returns> [FaultContract(typeof(DomainServiceFault), Action="http://tempuri.or g/UserRegistrationService/SubmitChangesDomainServiceFault", Name="DomainServiceF ault", Namespace="DomainServices")] [OperationContract(AsyncPattern=true, Action="http://tempuri.org/Use rRegistrationService/SubmitChanges", ReplyAction="http://tempuri.org/UserRegistr ationService/SubmitChangesResponse")] IAsyncResult BeginSubmitChanges(IEnumerable<ChangeSetEntry> changeSe t, AsyncCallback callback, object asyncState); /// <summary> /// Completes the asynchronous operation begun by 'BeginSubmitChange s'. /// </summary> /// <param name="result">The IAsyncResult returned from 'BeginSubmit Changes'.</param> /// <returns>The collection of change-set entry elements returned fr om 'SubmitChanges'.</returns> IEnumerable<ChangeSetEntry> EndSubmitChanges(IAsyncResult result); } internal sealed class UserRegistrationContextEntityContainer : EntityCon tainer { public UserRegistrationContextEntityContainer() { this.CreateEntitySet<RegistrationData>(EntitySetOperations.None) ; } } } /// <summary> /// The 'UserRole' entity class. /// </summary> <summary> Asynchronously invokes the 'SubmitChanges' operation. </summary> <param name="changeSet">The change-set to submit.</param> <param name="callback">Callback to invoke on completion.</param> <param name="asyncState">Optional state object.</param> <returns>An IAsyncResult that can be used to monitor the request <summary> Completes the asynchronous operation begun by 'BeginGetUsers'. </summary> <param name="result">The IAsyncResult returned from 'BeginGetUse

[DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class UserRole : Entity { private string _name; private EntityCollection<UserGameRole> _userGameRoles; private int _userRoleId; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnNameChanging(string value); partial void OnNameChanged(); partial void OnUserRoleIdChanging(int value); partial void OnUserRoleIdChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="UserRole"/> class. /// </summary> public UserRole() { this.OnCreated(); } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] [Required()] [StringLength(50)] public string Name { get { return this._name; } set { if ((this._name != value)) { this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value); this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } }

/// <summary> /// Gets the collection of associated <see cref="UserGameRole"/> entitie s. /// </summary> [Association("UserRole_UserGameRole", "UserRoleId", "UserRoleId")] [XmlIgnore()] public EntityCollection<UserGameRole> UserGameRoles { get { if ((this._userGameRoles == null)) { this._userGameRoles = new EntityCollection<UserGameRole>(thi s, "UserGameRoles", this.FilterUserGameRoles, this.AttachUserGameRoles, this.Det achUserGameRoles); } return this._userGameRoles; } } /// <summary> /// Gets or sets the 'UserRoleId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int UserRoleId { get { return this._userRoleId; } set { if ((this._userRoleId != value)) { this.OnUserRoleIdChanging(value); this.ValidateProperty("UserRoleId", value); this._userRoleId = value; this.RaisePropertyChanged("UserRoleId"); this.OnUserRoleIdChanged(); } } } private void AttachUserGameRoles(UserGameRole entity) { entity.UserRole = this; } private void DetachUserGameRoles(UserGameRole entity) { entity.UserRole = null; } private bool FilterUserGameRoles(UserGameRole entity) { return (entity.UserRoleId == this.UserRoleId);

} /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._userRoleId; } } /// <summary> /// The 'World' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web") ] public sealed partial class World : Entity { private int _displaySequenceNum; private EntityRef<Game> _game; private int _gameId; private EntityCollection<MarketIntel> _marketIntels; private string _name; private EntityCollection<Team> _teams; private int _worldId; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnDisplaySequenceNumChanging(int value); partial void OnDisplaySequenceNumChanged(); partial void OnGameIdChanging(int value); partial void OnGameIdChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); partial void OnWorldIdChanging(int value); partial void OnWorldIdChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="World"/> class. /// </summary> public World()

{ this.OnCreated(); } /// <summary> /// Gets or sets the 'DisplaySequenceNum' value. /// </summary> [DataMember()] public int DisplaySequenceNum { get { return this._displaySequenceNum; } set { if ((this._displaySequenceNum != value)) { this.OnDisplaySequenceNumChanging(value); this.RaiseDataMemberChanging("DisplaySequenceNum"); this.ValidateProperty("DisplaySequenceNum", value); this._displaySequenceNum = value; this.RaiseDataMemberChanged("DisplaySequenceNum"); this.OnDisplaySequenceNumChanged(); } } } /// <summary> /// Gets or sets the associated <see cref="Game"/> entity. /// </summary> [Association("Game_World", "GameId", "GameId", IsForeignKey=true)] [XmlIgnore()] public Game Game { get { if ((this._game == null)) { this._game = new EntityRef<Game>(this, "Game", this.FilterGa me); } return this._game.Entity; } set { Game previous = this.Game; if ((previous != value)) { this.ValidateProperty("Game", value); if ((previous != null)) { this._game.Entity = null; previous.Worlds.Remove(this); } if ((value != null)) { this.GameId = value.GameId; } else

{ this.GameId = default(int); } this._game.Entity = value; if ((value != null)) { value.Worlds.Add(this); } this.RaisePropertyChanged("Game"); } } } /// <summary> /// Gets or sets the 'GameId' value. /// </summary> [DataMember()] [RoundtripOriginal()] public int GameId { get { return this._gameId; } set { if ((this._gameId != value)) { this.OnGameIdChanging(value); this.RaiseDataMemberChanging("GameId"); this.ValidateProperty("GameId", value); this._gameId = value; this.RaiseDataMemberChanged("GameId"); this.OnGameIdChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="MarketIntel"/> entities . /// </summary> [Association("World_MarketIntel", "WorldId", "WorldId")] [XmlIgnore()] public EntityCollection<MarketIntel> MarketIntels { get { if ((this._marketIntels == null)) { this._marketIntels = new EntityCollection<MarketIntel>(this, "MarketIntels", this.FilterMarketIntels, this.AttachMarketIntels, this.DetachMa rketIntels); } return this._marketIntels; } } /// <summary> /// Gets or sets the 'Name' value.

/// </summary> [DataMember()] [Required()] [StringLength(50)] public string Name { get { return this._name; } set { if ((this._name != value)) { this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value); this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } } /// <summary> /// Gets the collection of associated <see cref="Team"/> entities. /// </summary> [Association("World_Team", "WorldId", "WorldId")] [XmlIgnore()] public EntityCollection<Team> Teams { get { if ((this._teams == null)) { this._teams = new EntityCollection<Team>(this, "Teams", this .FilterTeams, this.AttachTeams, this.DetachTeams); } return this._teams; } } /// <summary> /// Gets or sets the 'WorldId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int WorldId { get { return this._worldId; } set { if ((this._worldId != value)) { this.OnWorldIdChanging(value);

this.ValidateProperty("WorldId", value); this._worldId = value; this.RaisePropertyChanged("WorldId"); this.OnWorldIdChanged(); } } } private bool FilterGame(Game entity) { return (entity.GameId == this.GameId); } private void AttachMarketIntels(MarketIntel entity) { entity.World = this; } private void DetachMarketIntels(MarketIntel entity) { entity.World = null; } private bool FilterMarketIntels(MarketIntel entity) { return (entity.WorldId == this.WorldId); } private void AttachTeams(Team entity) { entity.World = this; } private void DetachTeams(Team entity) { entity.World = null; } private bool FilterTeams(Team entity) { return (entity.WorldId == this.WorldId); } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._worldId; } } } namespace Sabre.Web.Models { using System; using System.Collections.Generic; using System.ComponentModel;

using using using using using using

System.ComponentModel.DataAnnotations; System.Linq; System.Runtime.Serialization; System.ServiceModel.DomainServices; System.ServiceModel.DomainServices.Client; System.ServiceModel.DomainServices.Client.ApplicationServices;

/// <summary> /// The 'CompanyPresentationModel' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web.M odels")] public sealed partial class CompanyPresentationModel : Entity { private int _companyId; private int _displaySequenceNum; private string _name; private string _nameAlias; #region Extensibility Method Definitions /// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnCompanyIdChanging(int value); partial void OnCompanyIdChanged(); partial void OnDisplaySequenceNumChanging(int value); partial void OnDisplaySequenceNumChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); partial void OnNameAliasChanging(string value); partial void OnNameAliasChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="CompanyPresentationMode l"/> class. /// </summary> public CompanyPresentationModel() { this.OnCreated(); } /// <summary> /// Gets or sets the 'CompanyId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()]

public int CompanyId { get { return this._companyId; } set { if ((this._companyId != value)) { this.OnCompanyIdChanging(value); this.ValidateProperty("CompanyId", value); this._companyId = value; this.RaisePropertyChanged("CompanyId"); this.OnCompanyIdChanged(); } } } /// <summary> /// Gets or sets the 'DisplaySequenceNum' value. /// </summary> [DataMember()] public int DisplaySequenceNum { get { return this._displaySequenceNum; } set { if ((this._displaySequenceNum != value)) { this.OnDisplaySequenceNumChanging(value); this.RaiseDataMemberChanging("DisplaySequenceNum"); this.ValidateProperty("DisplaySequenceNum", value); this._displaySequenceNum = value; this.RaiseDataMemberChanged("DisplaySequenceNum"); this.OnDisplaySequenceNumChanged(); } } } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] public string Name { get { return this._name; } set { if ((this._name != value)) { this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value);

this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } } /// <summary> /// Gets or sets the 'NameAlias' value. /// </summary> [DataMember()] public string NameAlias { get { return this._nameAlias; } set { if ((this._nameAlias != value)) { this.OnNameAliasChanging(value); this.RaiseDataMemberChanging("NameAlias"); this.ValidateProperty("NameAlias", value); this._nameAlias = value; this.RaiseDataMemberChanged("NameAlias"); this.OnNameAliasChanged(); } } } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._companyId; } } /// <summary> /// The 'ProductPresentationModel' entity class. /// </summary> [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Sabre.Web.M odels")] public sealed partial class ProductPresentationModel : Entity { private string _companyName; private int _displaySeqNum; private string _name; private int _productId; #region Extensibility Method Definitions

/// <summary> /// This method is invoked from the constructor once initialization is c omplete and /// can be used for further object setup. /// </summary> partial void OnCreated(); partial void OnCompanyNameChanging(string value); partial void OnCompanyNameChanged(); partial void OnDisplaySeqNumChanging(int value); partial void OnDisplaySeqNumChanged(); partial void OnNameChanging(string value); partial void OnNameChanged(); partial void OnProductIdChanging(int value); partial void OnProductIdChanged(); #endregion /// <summary> /// Initializes a new instance of the <see cref="ProductPresentationMode l"/> class. /// </summary> public ProductPresentationModel() { this.OnCreated(); } /// <summary> /// Gets or sets the 'CompanyName' value. /// </summary> [DataMember()] public string CompanyName { get { return this._companyName; } set { if ((this._companyName != value)) { this.OnCompanyNameChanging(value); this.RaiseDataMemberChanging("CompanyName"); this.ValidateProperty("CompanyName", value); this._companyName = value; this.RaiseDataMemberChanged("CompanyName"); this.OnCompanyNameChanged(); } } } /// <summary> /// Gets or sets the 'DisplaySeqNum' value. /// </summary> [DataMember()] public int DisplaySeqNum { get {

return this._displaySeqNum; } set { if ((this._displaySeqNum != value)) { this.OnDisplaySeqNumChanging(value); this.RaiseDataMemberChanging("DisplaySeqNum"); this.ValidateProperty("DisplaySeqNum", value); this._displaySeqNum = value; this.RaiseDataMemberChanged("DisplaySeqNum"); this.OnDisplaySeqNumChanged(); } } } /// <summary> /// Gets or sets the 'Name' value. /// </summary> [DataMember()] public string Name { get { return this._name; } set { if ((this._name != value)) { this.OnNameChanging(value); this.RaiseDataMemberChanging("Name"); this.ValidateProperty("Name", value); this._name = value; this.RaiseDataMemberChanged("Name"); this.OnNameChanged(); } } } /// <summary> /// Gets or sets the 'ProductId' value. /// </summary> [DataMember()] [Editable(false, AllowInitialValue=true)] [Key()] [RoundtripOriginal()] public int ProductId { get { return this._productId; } set { if ((this._productId != value)) { this.OnProductIdChanging(value); this.ValidateProperty("ProductId", value); this._productId = value;

this.RaisePropertyChanged("ProductId"); this.OnProductIdChanged(); } } } /// <summary> /// Computes a value from the key fields that uniquely identifies this e ntity instance. /// </summary> /// <returns>An object instance that uniquely identifies this entity ins tance.</returns> public override object GetIdentity() { return this._productId; } } }

Вам также может понравиться