diff options
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/Model.Designer.cs')
-rw-r--r-- | projecttemplates/RelyingPartyLogic/Model.Designer.cs | 2230 |
1 files changed, 1122 insertions, 1108 deletions
diff --git a/projecttemplates/RelyingPartyLogic/Model.Designer.cs b/projecttemplates/RelyingPartyLogic/Model.Designer.cs index 814920e..a1a5348 100644 --- a/projecttemplates/RelyingPartyLogic/Model.Designer.cs +++ b/projecttemplates/RelyingPartyLogic/Model.Designer.cs @@ -1,284 +1,251 @@ //------------------------------------------------------------------------------ // <auto-generated> -// This code was generated from a template. +// This code was generated by a tool. +// Runtime Version:4.0.30104.0 // -// Manual changes to this file may cause unexpected behavior in your application. -// Manual changes to this file will be overwritten if the code is regenerated. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ -using System; -using System.Data.Objects; -using System.Data.Objects.DataClasses; -using System.Data.EntityClient; -using System.ComponentModel; -using System.Xml.Serialization; -using System.Runtime.Serialization; - -[assembly: EdmSchemaAttribute()] -#region EDM Relationship Metadata - -[assembly: EdmRelationshipAttribute("DatabaseModel", "UserRole", "Role", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.Role), "User", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.User))] -[assembly: EdmRelationshipAttribute("DatabaseModel", "FK_AuthenticationToken_User", "User", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.User), "AuthenticationToken", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.AuthenticationToken))] -[assembly: EdmRelationshipAttribute("DatabaseModel", "FK_IssuedToken_Consumer1", "Consumer", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.Consumer), "IssuedToken", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.IssuedToken))] -[assembly: EdmRelationshipAttribute("DatabaseModel", "FK_IssuedToken_User1", "User", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(RelyingPartyLogic.User), "IssuedToken", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.IssuedToken))] - -#endregion +[assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "UserRole", "Role", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.Role), "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.User))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "FK_AuthenticationToken_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.User), "AuthenticationToken", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.AuthenticationToken))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "FK_IssuedToken_Consumer1", "Consumer", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.Consumer), "IssuedToken", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.IssuedToken))] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "FK_IssuedToken_User1", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(RelyingPartyLogic.User), "IssuedToken", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.IssuedToken))] +// Original file name: +// Generation date: 1/7/2010 8:42:18 PM namespace RelyingPartyLogic { - #region Contexts /// <summary> - /// No Metadata Documentation available. + /// There are no comments for DatabaseEntities in the schema. /// </summary> - public partial class DatabaseEntities : ObjectContext + public partial class DatabaseEntities : global::System.Data.Objects.ObjectContext { - #region Constructors - /// <summary> /// Initializes a new DatabaseEntities object using the connection string found in the 'DatabaseEntities' section of the application configuration file. /// </summary> - public DatabaseEntities() : base("name=DatabaseEntities", "DatabaseEntities") + public DatabaseEntities() : + base("name=DatabaseEntities", "DatabaseEntities") { - OnContextCreated(); + this.OnContextCreated(); } - /// <summary> /// Initialize a new DatabaseEntities object. /// </summary> - public DatabaseEntities(string connectionString) : base(connectionString, "DatabaseEntities") + public DatabaseEntities(string connectionString) : + base(connectionString, "DatabaseEntities") { - OnContextCreated(); + this.OnContextCreated(); } - /// <summary> /// Initialize a new DatabaseEntities object. /// </summary> - public DatabaseEntities(EntityConnection connection) : base(connection, "DatabaseEntities") + public DatabaseEntities(global::System.Data.EntityClient.EntityConnection connection) : + base(connection, "DatabaseEntities") { - OnContextCreated(); + this.OnContextCreated(); } - - #endregion - - #region Partial Methods - partial void OnContextCreated(); - - #endregion - - #region ObjectSet Properties - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for Roles in the schema. /// </summary> - public ObjectSet<Role> Roles + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public global::System.Data.Objects.ObjectQuery<Role> Roles { get { - if ((_Roles == null)) + if ((this._Roles == null)) { - _Roles = base.CreateObjectSet<Role>("Roles"); + this._Roles = base.CreateQuery<Role>("[Roles]"); } - return _Roles; + return this._Roles; } } - private ObjectSet<Role> _Roles; - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private global::System.Data.Objects.ObjectQuery<Role> _Roles; /// <summary> - /// No Metadata Documentation available. + /// There are no comments for Users in the schema. /// </summary> - public ObjectSet<User> Users + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public global::System.Data.Objects.ObjectQuery<User> Users { get { - if ((_Users == null)) + if ((this._Users == null)) { - _Users = base.CreateObjectSet<User>("Users"); + this._Users = base.CreateQuery<User>("[Users]"); } - return _Users; + return this._Users; } } - private ObjectSet<User> _Users; - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private global::System.Data.Objects.ObjectQuery<User> _Users; /// <summary> - /// No Metadata Documentation available. + /// There are no comments for AuthenticationTokens in the schema. /// </summary> - public ObjectSet<AuthenticationToken> AuthenticationTokens + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public global::System.Data.Objects.ObjectQuery<AuthenticationToken> AuthenticationTokens { get { - if ((_AuthenticationTokens == null)) + if ((this._AuthenticationTokens == null)) { - _AuthenticationTokens = base.CreateObjectSet<AuthenticationToken>("AuthenticationTokens"); + this._AuthenticationTokens = base.CreateQuery<AuthenticationToken>("[AuthenticationTokens]"); } - return _AuthenticationTokens; + return this._AuthenticationTokens; } } - private ObjectSet<AuthenticationToken> _AuthenticationTokens; - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private global::System.Data.Objects.ObjectQuery<AuthenticationToken> _AuthenticationTokens; /// <summary> - /// No Metadata Documentation available. + /// There are no comments for Consumers in the schema. /// </summary> - public ObjectSet<Consumer> Consumers + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public global::System.Data.Objects.ObjectQuery<Consumer> Consumers { get { - if ((_Consumers == null)) + if ((this._Consumers == null)) { - _Consumers = base.CreateObjectSet<Consumer>("Consumers"); + this._Consumers = base.CreateQuery<Consumer>("[Consumers]"); } - return _Consumers; + return this._Consumers; } } - private ObjectSet<Consumer> _Consumers; - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private global::System.Data.Objects.ObjectQuery<Consumer> _Consumers; /// <summary> - /// No Metadata Documentation available. + /// There are no comments for IssuedTokens in the schema. /// </summary> - public ObjectSet<IssuedToken> IssuedTokens + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public global::System.Data.Objects.ObjectQuery<IssuedToken> IssuedTokens { get { - if ((_IssuedTokens == null)) + if ((this._IssuedTokens == null)) { - _IssuedTokens = base.CreateObjectSet<IssuedToken>("IssuedTokens"); + this._IssuedTokens = base.CreateQuery<IssuedToken>("[IssuedTokens]"); } - return _IssuedTokens; + return this._IssuedTokens; } } - private ObjectSet<IssuedToken> _IssuedTokens; - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private global::System.Data.Objects.ObjectQuery<IssuedToken> _IssuedTokens; /// <summary> - /// No Metadata Documentation available. + /// There are no comments for Nonces in the schema. /// </summary> - public ObjectSet<Nonce> Nonces + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public global::System.Data.Objects.ObjectQuery<Nonce> Nonces { get { - if ((_Nonces == null)) + if ((this._Nonces == null)) { - _Nonces = base.CreateObjectSet<Nonce>("Nonces"); + this._Nonces = base.CreateQuery<Nonce>("[Nonces]"); } - return _Nonces; + return this._Nonces; } } - private ObjectSet<Nonce> _Nonces; - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private global::System.Data.Objects.ObjectQuery<Nonce> _Nonces; /// <summary> - /// No Metadata Documentation available. + /// There are no comments for OpenIdAssociations in the schema. /// </summary> - public ObjectSet<OpenIdAssociation> OpenIdAssociations + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public global::System.Data.Objects.ObjectQuery<OpenIdAssociation> OpenIdAssociations { get { - if ((_OpenIdAssociations == null)) + if ((this._OpenIdAssociations == null)) { - _OpenIdAssociations = base.CreateObjectSet<OpenIdAssociation>("OpenIdAssociations"); + this._OpenIdAssociations = base.CreateQuery<OpenIdAssociation>("[OpenIdAssociations]"); } - return _OpenIdAssociations; + return this._OpenIdAssociations; } } - private ObjectSet<OpenIdAssociation> _OpenIdAssociations; - - #endregion - #region AddTo Methods - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private global::System.Data.Objects.ObjectQuery<OpenIdAssociation> _OpenIdAssociations; /// <summary> - /// Deprecated Method for adding a new object to the Roles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. + /// There are no comments for Roles in the schema. /// </summary> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] public void AddToRoles(Role role) { base.AddObject("Roles", role); } - /// <summary> - /// Deprecated Method for adding a new object to the Users EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. + /// There are no comments for Users in the schema. /// </summary> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] public void AddToUsers(User user) { base.AddObject("Users", user); } - /// <summary> - /// Deprecated Method for adding a new object to the AuthenticationTokens EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. + /// There are no comments for AuthenticationTokens in the schema. /// </summary> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] public void AddToAuthenticationTokens(AuthenticationToken authenticationToken) { base.AddObject("AuthenticationTokens", authenticationToken); } - /// <summary> - /// Deprecated Method for adding a new object to the Consumers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. + /// There are no comments for Consumers in the schema. /// </summary> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] public void AddToConsumers(Consumer consumer) { base.AddObject("Consumers", consumer); } - /// <summary> - /// Deprecated Method for adding a new object to the IssuedTokens EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. + /// There are no comments for IssuedTokens in the schema. /// </summary> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] public void AddToIssuedTokens(IssuedToken issuedToken) { base.AddObject("IssuedTokens", issuedToken); } - /// <summary> - /// Deprecated Method for adding a new object to the Nonces EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. + /// There are no comments for Nonces in the schema. /// </summary> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] public void AddToNonces(Nonce nonce) { base.AddObject("Nonces", nonce); } - /// <summary> - /// Deprecated Method for adding a new object to the OpenIdAssociations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. + /// There are no comments for OpenIdAssociations in the schema. /// </summary> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] public void AddToOpenIdAssociations(OpenIdAssociation openIdAssociation) { base.AddObject("OpenIdAssociations", openIdAssociation); } - - #endregion - #region Function Imports - - /// <summary> - /// No Metadata Documentation available. - /// </summary> - public int ClearExpiredNonces() - { - return base.ExecuteFunction("ClearExpiredNonces"); - } - - #endregion } - - - #endregion - - #region Entities - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for DatabaseModel.AuthenticationToken in the schema. /// </summary> - [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="AuthenticationToken")] - [Serializable()] - [DataContractAttribute(IsReference=true)] - public partial class AuthenticationToken : EntityObject + /// <KeyProperties> + /// AuthenticationTokenId + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="AuthenticationToken")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class AuthenticationToken : global::System.Data.Objects.DataClasses.EntityObject { - #region Factory Method - /// <summary> /// Create a new AuthenticationToken object. /// </summary> - /// <param name="claimedIdentifier">Initial value of the ClaimedIdentifier property.</param> - /// <param name="createdOnUtc">Initial value of the CreatedOnUtc property.</param> - /// <param name="lastUsedUtc">Initial value of the LastUsedUtc property.</param> - /// <param name="usageCount">Initial value of the UsageCount property.</param> - /// <param name="authenticationTokenId">Initial value of the AuthenticationTokenId property.</param> - public static AuthenticationToken CreateAuthenticationToken(global::System.String claimedIdentifier, global::System.DateTime createdOnUtc, global::System.DateTime lastUsedUtc, global::System.Int32 usageCount, global::System.Int32 authenticationTokenId) + /// <param name="claimedIdentifier">Initial value of ClaimedIdentifier.</param> + /// <param name="createdOnUtc">Initial value of CreatedOnUtc.</param> + /// <param name="lastUsedUtc">Initial value of LastUsedUtc.</param> + /// <param name="usageCount">Initial value of UsageCount.</param> + /// <param name="authenticationTokenId">Initial value of AuthenticationTokenId.</param> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public static AuthenticationToken CreateAuthenticationToken(string claimedIdentifier, global::System.DateTime createdOnUtc, global::System.DateTime lastUsedUtc, int usageCount, int authenticationTokenId) { AuthenticationToken authenticationToken = new AuthenticationToken(); authenticationToken.ClaimedIdentifier = claimedIdentifier; @@ -288,1534 +255,1581 @@ namespace RelyingPartyLogic authenticationToken.AuthenticationTokenId = authenticationTokenId; return authenticationToken; } - - #endregion - #region Primitive Properties - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property ClaimedIdentifier in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.String ClaimedIdentifier + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string ClaimedIdentifier { get { - return _ClaimedIdentifier; + return this._ClaimedIdentifier; } set { - OnClaimedIdentifierChanging(value); - ReportPropertyChanging("ClaimedIdentifier"); - _ClaimedIdentifier = StructuralObject.SetValidValue(value, false); - ReportPropertyChanged("ClaimedIdentifier"); - OnClaimedIdentifierChanged(); + this.OnClaimedIdentifierChanging(value); + this.ReportPropertyChanging("ClaimedIdentifier"); + this._ClaimedIdentifier = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("ClaimedIdentifier"); + this.OnClaimedIdentifierChanged(); } } - private global::System.String _ClaimedIdentifier; - partial void OnClaimedIdentifierChanging(global::System.String value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _ClaimedIdentifier; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnClaimedIdentifierChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] partial void OnClaimedIdentifierChanged(); - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property FriendlyIdentifier in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] - [DataMemberAttribute()] - public global::System.String FriendlyIdentifier + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string FriendlyIdentifier { get { - return _FriendlyIdentifier; + return this._FriendlyIdentifier; } set { - OnFriendlyIdentifierChanging(value); - ReportPropertyChanging("FriendlyIdentifier"); - _FriendlyIdentifier = StructuralObject.SetValidValue(value, true); - ReportPropertyChanged("FriendlyIdentifier"); - OnFriendlyIdentifierChanged(); + this.OnFriendlyIdentifierChanging(value); + this.ReportPropertyChanging("FriendlyIdentifier"); + this._FriendlyIdentifier = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("FriendlyIdentifier"); + this.OnFriendlyIdentifierChanged(); } } - private global::System.String _FriendlyIdentifier; - partial void OnFriendlyIdentifierChanging(global::System.String value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _FriendlyIdentifier; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnFriendlyIdentifierChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] partial void OnFriendlyIdentifierChanged(); - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property CreatedOnUtc in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] public global::System.DateTime CreatedOnUtc { get { - return _CreatedOnUtc; + return this._CreatedOnUtc; } private set { - OnCreatedOnUtcChanging(value); - ReportPropertyChanging("CreatedOnUtc"); - _CreatedOnUtc = StructuralObject.SetValidValue(value); - ReportPropertyChanged("CreatedOnUtc"); - OnCreatedOnUtcChanged(); + this.OnCreatedOnUtcChanging(value); + this.ReportPropertyChanging("CreatedOnUtc"); + this._CreatedOnUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("CreatedOnUtc"); + this.OnCreatedOnUtcChanged(); } } + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] private global::System.DateTime _CreatedOnUtc; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] partial void OnCreatedOnUtcChanging(global::System.DateTime value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] partial void OnCreatedOnUtcChanged(); - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property LastUsedUtc in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] public global::System.DateTime LastUsedUtc { get { - return _LastUsedUtc; + return this._LastUsedUtc; } set { - OnLastUsedUtcChanging(value); - ReportPropertyChanging("LastUsedUtc"); - _LastUsedUtc = StructuralObject.SetValidValue(value); - ReportPropertyChanged("LastUsedUtc"); - OnLastUsedUtcChanged(); + this.OnLastUsedUtcChanging(value); + this.ReportPropertyChanging("LastUsedUtc"); + this._LastUsedUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("LastUsedUtc"); + this.OnLastUsedUtcChanged(); } } + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] private global::System.DateTime _LastUsedUtc; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] partial void OnLastUsedUtcChanging(global::System.DateTime value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] partial void OnLastUsedUtcChanged(); - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property UsageCount in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.Int32 UsageCount + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public int UsageCount { get { - return _UsageCount; + return this._UsageCount; } set { - OnUsageCountChanging(value); - ReportPropertyChanging("UsageCount"); - _UsageCount = StructuralObject.SetValidValue(value); - ReportPropertyChanged("UsageCount"); - OnUsageCountChanged(); + this.OnUsageCountChanging(value); + this.ReportPropertyChanging("UsageCount"); + this._UsageCount = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("UsageCount"); + this.OnUsageCountChanged(); } } - private global::System.Int32 _UsageCount; - partial void OnUsageCountChanging(global::System.Int32 value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private int _UsageCount; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnUsageCountChanging(int value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] partial void OnUsageCountChanged(); - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property AuthenticationTokenId in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] - [DataMemberAttribute()] - public global::System.Int32 AuthenticationTokenId + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public int AuthenticationTokenId { get { - return _AuthenticationTokenId; + return this._AuthenticationTokenId; } private set { - if (_AuthenticationTokenId != value) - { - OnAuthenticationTokenIdChanging(value); - ReportPropertyChanging("AuthenticationTokenId"); - _AuthenticationTokenId = StructuralObject.SetValidValue(value); - ReportPropertyChanged("AuthenticationTokenId"); - OnAuthenticationTokenIdChanged(); - } + this.OnAuthenticationTokenIdChanging(value); + this.ReportPropertyChanging("AuthenticationTokenId"); + this._AuthenticationTokenId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("AuthenticationTokenId"); + this.OnAuthenticationTokenIdChanged(); } } - private global::System.Int32 _AuthenticationTokenId; - partial void OnAuthenticationTokenIdChanging(global::System.Int32 value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private int _AuthenticationTokenId; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnAuthenticationTokenIdChanging(int value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] partial void OnAuthenticationTokenIdChanged(); - - #endregion - - #region Navigation Properties - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for User in the schema. /// </summary> - [XmlIgnoreAttribute()] - [SoapIgnoreAttribute()] - [DataMemberAttribute()] - [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_AuthenticationToken_User", "User")] + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_AuthenticationToken_User", "User")] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] public User User { get { - return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User").Value; + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User").Value; } set { - ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User").Value = value; + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User").Value = value; } } /// <summary> - /// No Metadata Documentation available. + /// There are no comments for User in the schema. /// </summary> - [BrowsableAttribute(false)] - [DataMemberAttribute()] - public EntityReference<User> UserReference + [global::System.ComponentModel.BrowsableAttribute(false)] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityReference<User> UserReference { get { - return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User"); + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User"); } set { if ((value != null)) { - ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User", value); + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User", value); } } } - - #endregion } - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for DatabaseModel.Role in the schema. /// </summary> - [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Consumer")] - [Serializable()] - [DataContractAttribute(IsReference=true)] - public partial class Consumer : EntityObject + /// <KeyProperties> + /// RoleId + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Role")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class Role : global::System.Data.Objects.DataClasses.EntityObject { - #region Factory Method - /// <summary> - /// Create a new Consumer object. + /// Create a new Role object. /// </summary> - /// <param name="consumerKey">Initial value of the ConsumerKey property.</param> - /// <param name="verificationCodeLength">Initial value of the VerificationCodeLength property.</param> - /// <param name="consumerId">Initial value of the ConsumerId property.</param> - public static Consumer CreateConsumer(global::System.String consumerKey, global::System.Int32 verificationCodeLength, global::System.Int32 consumerId) + /// <param name="name">Initial value of Name.</param> + /// <param name="roleId">Initial value of RoleId.</param> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public static Role CreateRole(string name, int roleId) { - Consumer consumer = new Consumer(); - consumer.ConsumerKey = consumerKey; - consumer.VerificationCodeLength = verificationCodeLength; - consumer.ConsumerId = consumerId; - return consumer; + Role role = new Role(); + role.Name = name; + role.RoleId = roleId; + return role; } - - #endregion - #region Primitive Properties - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property Name in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.String ConsumerKey + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string Name { get { - return _ConsumerKey; + return this._Name; } set { - OnConsumerKeyChanging(value); - ReportPropertyChanging("ConsumerKey"); - _ConsumerKey = StructuralObject.SetValidValue(value, false); - ReportPropertyChanged("ConsumerKey"); - OnConsumerKeyChanged(); + this.OnNameChanging(value); + this.ReportPropertyChanging("Name"); + this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("Name"); + this.OnNameChanged(); } } - private global::System.String _ConsumerKey; - partial void OnConsumerKeyChanging(global::System.String value); - partial void OnConsumerKeyChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _Name; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnNameChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnNameChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property RoleId in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] - [DataMemberAttribute()] - public global::System.String ConsumerSecret + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public int RoleId { get { - return _ConsumerSecret; + return this._RoleId; } - set + private set { - OnConsumerSecretChanging(value); - ReportPropertyChanging("ConsumerSecret"); - _ConsumerSecret = StructuralObject.SetValidValue(value, true); - ReportPropertyChanged("ConsumerSecret"); - OnConsumerSecretChanged(); + this.OnRoleIdChanging(value); + this.ReportPropertyChanging("RoleId"); + this._RoleId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("RoleId"); + this.OnRoleIdChanged(); } } - private global::System.String _ConsumerSecret; - partial void OnConsumerSecretChanging(global::System.String value); - partial void OnConsumerSecretChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private int _RoleId; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnRoleIdChanging(int value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnRoleIdChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for Users in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] - [DataMemberAttribute()] - private global::System.Byte[] X509CertificateAsBinary + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "UserRole", "User")] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityCollection<User> Users { get { - return StructuralObject.GetValidValue(_X509CertificateAsBinary); + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<User>("DatabaseModel.UserRole", "User"); } set { - OnX509CertificateAsBinaryChanging(value); - ReportPropertyChanging("X509CertificateAsBinary"); - _X509CertificateAsBinary = StructuralObject.SetValidValue(value, true); - ReportPropertyChanged("X509CertificateAsBinary"); - OnX509CertificateAsBinaryChanged(); + if ((value != null)) + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<User>("DatabaseModel.UserRole", "User", value); + } } } - private global::System.Byte[] _X509CertificateAsBinary; - partial void OnX509CertificateAsBinaryChanging(global::System.Byte[] value); - partial void OnX509CertificateAsBinaryChanged(); - + } + /// <summary> + /// There are no comments for DatabaseModel.User in the schema. + /// </summary> + /// <KeyProperties> + /// UserId + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="User")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class User : global::System.Data.Objects.DataClasses.EntityObject + { /// <summary> - /// No Metadata Documentation available. + /// Create a new User object. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] - [DataMemberAttribute()] - public global::System.String CallbackAsString + /// <param name="emailAddressVerified">Initial value of EmailAddressVerified.</param> + /// <param name="createdOnUtc">Initial value of CreatedOnUtc.</param> + /// <param name="userId">Initial value of UserId.</param> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public static User CreateUser(bool emailAddressVerified, global::System.DateTime createdOnUtc, int userId) { - get - { - return _CallbackAsString; - } - set - { - OnCallbackAsStringChanging(value); - ReportPropertyChanging("CallbackAsString"); - _CallbackAsString = StructuralObject.SetValidValue(value, true); - ReportPropertyChanged("CallbackAsString"); - OnCallbackAsStringChanged(); - } + User user = new User(); + user.EmailAddressVerified = emailAddressVerified; + user.CreatedOnUtc = createdOnUtc; + user.UserId = userId; + return user; } - private global::System.String _CallbackAsString; - partial void OnCallbackAsStringChanging(global::System.String value); - partial void OnCallbackAsStringChanged(); - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property FirstName in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - private global::System.Int32 VerificationCodeFormatAsInt + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string FirstName { get { - return _VerificationCodeFormatAsInt; + return this._FirstName; } set { - OnVerificationCodeFormatAsIntChanging(value); - ReportPropertyChanging("VerificationCodeFormatAsInt"); - _VerificationCodeFormatAsInt = StructuralObject.SetValidValue(value); - ReportPropertyChanged("VerificationCodeFormatAsInt"); - OnVerificationCodeFormatAsIntChanged(); + this.OnFirstNameChanging(value); + this.ReportPropertyChanging("FirstName"); + this._FirstName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("FirstName"); + this.OnFirstNameChanged(); } } - private global::System.Int32 _VerificationCodeFormatAsInt; - partial void OnVerificationCodeFormatAsIntChanging(global::System.Int32 value); - partial void OnVerificationCodeFormatAsIntChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _FirstName; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnFirstNameChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnFirstNameChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property LastName in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.Int32 VerificationCodeLength + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string LastName { get { - return _VerificationCodeLength; + return this._LastName; } set { - OnVerificationCodeLengthChanging(value); - ReportPropertyChanging("VerificationCodeLength"); - _VerificationCodeLength = StructuralObject.SetValidValue(value); - ReportPropertyChanged("VerificationCodeLength"); - OnVerificationCodeLengthChanged(); + this.OnLastNameChanging(value); + this.ReportPropertyChanging("LastName"); + this._LastName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("LastName"); + this.OnLastNameChanged(); } } - private global::System.Int32 _VerificationCodeLength; - partial void OnVerificationCodeLengthChanging(global::System.Int32 value); - partial void OnVerificationCodeLengthChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _LastName; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnLastNameChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnLastNameChanged(); /// <summary> - /// No Metadata Documentation available. + /// The email address claimed to be controlled by the user. Whether it is actually owned by the user is indicated by the EmailAddressVerified property. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] - [DataMemberAttribute()] - public global::System.Int32 ConsumerId + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string EmailAddress { get { - return _ConsumerId; + return this._EmailAddress; } - private set + set { - if (_ConsumerId != value) - { - OnConsumerIdChanging(value); - ReportPropertyChanging("ConsumerId"); - _ConsumerId = StructuralObject.SetValidValue(value); - ReportPropertyChanged("ConsumerId"); - OnConsumerIdChanged(); - } + this.OnEmailAddressChanging(value); + this.ReportPropertyChanging("EmailAddress"); + this._EmailAddress = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("EmailAddress"); + this.OnEmailAddressChanged(); } } - private global::System.Int32 _ConsumerId; - partial void OnConsumerIdChanging(global::System.Int32 value); - partial void OnConsumerIdChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _EmailAddress; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnEmailAddressChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnEmailAddressChanged(); /// <summary> - /// No Metadata Documentation available. + /// A value indicating whether the email address has been verified as actually owned by this user. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] - [DataMemberAttribute()] - public global::System.String Name + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public bool EmailAddressVerified { get { - return _Name; + return this._EmailAddressVerified; } set { - OnNameChanging(value); - ReportPropertyChanging("Name"); - _Name = StructuralObject.SetValidValue(value, true); - ReportPropertyChanged("Name"); - OnNameChanged(); + this.OnEmailAddressVerifiedChanging(value); + this.ReportPropertyChanging("EmailAddressVerified"); + this._EmailAddressVerified = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("EmailAddressVerified"); + this.OnEmailAddressVerifiedChanged(); } } - private global::System.String _Name; - partial void OnNameChanging(global::System.String value); - partial void OnNameChanged(); - - #endregion - - #region Navigation Properties - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private bool _EmailAddressVerified; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnEmailAddressVerifiedChanging(bool value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnEmailAddressVerifiedChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property CreatedOnUtc in the schema. /// </summary> - [XmlIgnoreAttribute()] - [SoapIgnoreAttribute()] - [DataMemberAttribute()] - [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer1", "IssuedToken")] - public EntityCollection<IssuedToken> IssuedTokens + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public global::System.DateTime CreatedOnUtc { get { - return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_Consumer1", "IssuedToken"); + return this._CreatedOnUtc; } - set + private set { - if ((value != null)) - { - ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_Consumer1", "IssuedToken", value); - } + this.OnCreatedOnUtcChanging(value); + this.ReportPropertyChanging("CreatedOnUtc"); + this._CreatedOnUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("CreatedOnUtc"); + this.OnCreatedOnUtcChanged(); } } - - #endregion - } - - /// <summary> - /// No Metadata Documentation available. - /// </summary> - [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="IssuedAccessToken")] - [Serializable()] - [DataContractAttribute(IsReference=true)] - public partial class IssuedAccessToken : IssuedToken - { - #region Factory Method - - /// <summary> - /// Create a new IssuedAccessToken object. - /// </summary> - /// <param name="token">Initial value of the Token property.</param> - /// <param name="tokenSecret">Initial value of the TokenSecret property.</param> - /// <param name="createdOnUtc">Initial value of the CreatedOnUtc property.</param> - /// <param name="issuedTokenId">Initial value of the IssuedTokenId property.</param> - public static IssuedAccessToken CreateIssuedAccessToken(global::System.String token, global::System.String tokenSecret, global::System.DateTime createdOnUtc, global::System.Int32 issuedTokenId) - { - IssuedAccessToken issuedAccessToken = new IssuedAccessToken(); - issuedAccessToken.Token = token; - issuedAccessToken.TokenSecret = tokenSecret; - issuedAccessToken.CreatedOnUtc = createdOnUtc; - issuedAccessToken.IssuedTokenId = issuedTokenId; - return issuedAccessToken; - } - - #endregion - #region Primitive Properties - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private global::System.DateTime _CreatedOnUtc; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnCreatedOnUtcChanging(global::System.DateTime value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnCreatedOnUtcChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property UserId in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] - [DataMemberAttribute()] - public Nullable<global::System.DateTime> ExpirationDateUtc + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public int UserId { get { - return _ExpirationDateUtc; + return this._UserId; } - set + private set { - OnExpirationDateUtcChanging(value); - ReportPropertyChanging("ExpirationDateUtc"); - _ExpirationDateUtc = StructuralObject.SetValidValue(value); - ReportPropertyChanged("ExpirationDateUtc"); - OnExpirationDateUtcChanged(); + this.OnUserIdChanging(value); + this.ReportPropertyChanging("UserId"); + this._UserId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("UserId"); + this.OnUserIdChanged(); } } - private Nullable<global::System.DateTime> _ExpirationDateUtc; - partial void OnExpirationDateUtcChanging(Nullable<global::System.DateTime> value); - partial void OnExpirationDateUtcChanged(); - - #endregion - - } - - /// <summary> - /// No Metadata Documentation available. - /// </summary> - [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="IssuedRequestToken")] - [Serializable()] - [DataContractAttribute(IsReference=true)] - public partial class IssuedRequestToken : IssuedToken - { - #region Factory Method - - /// <summary> - /// Create a new IssuedRequestToken object. - /// </summary> - /// <param name="token">Initial value of the Token property.</param> - /// <param name="tokenSecret">Initial value of the TokenSecret property.</param> - /// <param name="createdOnUtc">Initial value of the CreatedOnUtc property.</param> - /// <param name="issuedTokenId">Initial value of the IssuedTokenId property.</param> - public static IssuedRequestToken CreateIssuedRequestToken(global::System.String token, global::System.String tokenSecret, global::System.DateTime createdOnUtc, global::System.Int32 issuedTokenId) - { - IssuedRequestToken issuedRequestToken = new IssuedRequestToken(); - issuedRequestToken.Token = token; - issuedRequestToken.TokenSecret = tokenSecret; - issuedRequestToken.CreatedOnUtc = createdOnUtc; - issuedRequestToken.IssuedTokenId = issuedTokenId; - return issuedRequestToken; - } - - #endregion - #region Primitive Properties - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private int _UserId; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnUserIdChanging(int value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnUserIdChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for Roles in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - private global::System.String ConsumerVersionAsString + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "UserRole", "Role")] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityCollection<Role> Roles { get { - return _ConsumerVersionAsString; + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<Role>("DatabaseModel.UserRole", "Role"); } set { - OnConsumerVersionAsStringChanging(value); - ReportPropertyChanging("ConsumerVersionAsString"); - _ConsumerVersionAsString = StructuralObject.SetValidValue(value, false); - ReportPropertyChanged("ConsumerVersionAsString"); - OnConsumerVersionAsStringChanged(); + if ((value != null)) + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<Role>("DatabaseModel.UserRole", "Role", value); + } } } - private global::System.String _ConsumerVersionAsString; - partial void OnConsumerVersionAsStringChanging(global::System.String value); - partial void OnConsumerVersionAsStringChanged(); - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for AuthenticationTokens in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] - [DataMemberAttribute()] - public global::System.String VerificationCode + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_AuthenticationToken_User", "AuthenticationToken")] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityCollection<AuthenticationToken> AuthenticationTokens { get { - return _VerificationCode; + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<AuthenticationToken>("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken"); } set { - OnVerificationCodeChanging(value); - ReportPropertyChanging("VerificationCode"); - _VerificationCode = StructuralObject.SetValidValue(value, true); - ReportPropertyChanged("VerificationCode"); - OnVerificationCodeChanged(); + if ((value != null)) + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<AuthenticationToken>("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken", value); + } } } - private global::System.String _VerificationCode; - partial void OnVerificationCodeChanging(global::System.String value); - partial void OnVerificationCodeChanged(); - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for IssuedTokens in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] - [DataMemberAttribute()] - private global::System.String CallbackAsString + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_User1", "IssuedToken")] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityCollection<IssuedToken> IssuedTokens { get { - return _CallbackAsString; + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_User1", "IssuedToken"); } set { - OnCallbackAsStringChanging(value); - ReportPropertyChanging("CallbackAsString"); - _CallbackAsString = StructuralObject.SetValidValue(value, true); - ReportPropertyChanged("CallbackAsString"); - OnCallbackAsStringChanged(); + if ((value != null)) + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_User1", "IssuedToken", value); + } } } - private global::System.String _CallbackAsString; - partial void OnCallbackAsStringChanging(global::System.String value); - partial void OnCallbackAsStringChanged(); - - #endregion - } - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for DatabaseModel.Consumer in the schema. /// </summary> - [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="IssuedToken")] - [Serializable()] - [DataContractAttribute(IsReference=true)] - [KnownTypeAttribute(typeof(IssuedRequestToken))] - [KnownTypeAttribute(typeof(IssuedAccessToken))] - public abstract partial class IssuedToken : EntityObject + /// <KeyProperties> + /// ConsumerId + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Consumer")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class Consumer : global::System.Data.Objects.DataClasses.EntityObject { - #region Primitive Properties - /// <summary> - /// No Metadata Documentation available. + /// Create a new Consumer object. + /// </summary> + /// <param name="consumerKey">Initial value of ConsumerKey.</param> + /// <param name="verificationCodeLength">Initial value of VerificationCodeLength.</param> + /// <param name="consumerId">Initial value of ConsumerId.</param> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public static Consumer CreateConsumer(string consumerKey, int verificationCodeLength, int consumerId) + { + Consumer consumer = new Consumer(); + consumer.ConsumerKey = consumerKey; + consumer.VerificationCodeLength = verificationCodeLength; + consumer.ConsumerId = consumerId; + return consumer; + } + /// <summary> + /// There are no comments for property ConsumerKey in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.String Token + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string ConsumerKey { get { - return _Token; + return this._ConsumerKey; } set { - OnTokenChanging(value); - ReportPropertyChanging("Token"); - _Token = StructuralObject.SetValidValue(value, false); - ReportPropertyChanged("Token"); - OnTokenChanged(); + this.OnConsumerKeyChanging(value); + this.ReportPropertyChanging("ConsumerKey"); + this._ConsumerKey = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("ConsumerKey"); + this.OnConsumerKeyChanged(); } } - private global::System.String _Token; - partial void OnTokenChanging(global::System.String value); - partial void OnTokenChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _ConsumerKey; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnConsumerKeyChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnConsumerKeyChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property ConsumerSecret in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.String TokenSecret + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string ConsumerSecret { get { - return _TokenSecret; + return this._ConsumerSecret; } set { - OnTokenSecretChanging(value); - ReportPropertyChanging("TokenSecret"); - _TokenSecret = StructuralObject.SetValidValue(value, false); - ReportPropertyChanged("TokenSecret"); - OnTokenSecretChanged(); + this.OnConsumerSecretChanging(value); + this.ReportPropertyChanging("ConsumerSecret"); + this._ConsumerSecret = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("ConsumerSecret"); + this.OnConsumerSecretChanged(); } } - private global::System.String _TokenSecret; - partial void OnTokenSecretChanging(global::System.String value); - partial void OnTokenSecretChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _ConsumerSecret; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnConsumerSecretChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnConsumerSecretChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property X509CertificateAsBinary in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.DateTime CreatedOnUtc + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private byte[] X509CertificateAsBinary { get { - return _CreatedOnUtc; + return global::System.Data.Objects.DataClasses.StructuralObject.GetValidValue(this._X509CertificateAsBinary); } - internal set + set { - OnCreatedOnUtcChanging(value); - ReportPropertyChanging("CreatedOnUtc"); - _CreatedOnUtc = StructuralObject.SetValidValue(value); - ReportPropertyChanged("CreatedOnUtc"); - OnCreatedOnUtcChanged(); + this.OnX509CertificateAsBinaryChanging(value); + this.ReportPropertyChanging("X509CertificateAsBinary"); + this._X509CertificateAsBinary = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("X509CertificateAsBinary"); + this.OnX509CertificateAsBinaryChanged(); } } - private global::System.DateTime _CreatedOnUtc; - partial void OnCreatedOnUtcChanging(global::System.DateTime value); - partial void OnCreatedOnUtcChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private byte[] _X509CertificateAsBinary; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnX509CertificateAsBinaryChanging(byte[] value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnX509CertificateAsBinaryChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property CallbackAsString in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] - [DataMemberAttribute()] - public global::System.String Scope + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string CallbackAsString { get { - return _Scope; + return this._CallbackAsString; } set { - OnScopeChanging(value); - ReportPropertyChanging("Scope"); - _Scope = StructuralObject.SetValidValue(value, true); - ReportPropertyChanged("Scope"); - OnScopeChanged(); + this.OnCallbackAsStringChanging(value); + this.ReportPropertyChanging("CallbackAsString"); + this._CallbackAsString = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("CallbackAsString"); + this.OnCallbackAsStringChanged(); } } - private global::System.String _Scope; - partial void OnScopeChanging(global::System.String value); - partial void OnScopeChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _CallbackAsString; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnCallbackAsStringChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnCallbackAsStringChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property VerificationCodeFormatAsInt in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] - [DataMemberAttribute()] - public global::System.Int32 IssuedTokenId + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private int VerificationCodeFormatAsInt { get { - return _IssuedTokenId; + return this._VerificationCodeFormatAsInt; } - internal set + set { - if (_IssuedTokenId != value) - { - OnIssuedTokenIdChanging(value); - ReportPropertyChanging("IssuedTokenId"); - _IssuedTokenId = StructuralObject.SetValidValue(value); - ReportPropertyChanged("IssuedTokenId"); - OnIssuedTokenIdChanged(); - } + this.OnVerificationCodeFormatAsIntChanging(value); + this.ReportPropertyChanging("VerificationCodeFormatAsInt"); + this._VerificationCodeFormatAsInt = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("VerificationCodeFormatAsInt"); + this.OnVerificationCodeFormatAsIntChanged(); } } - private global::System.Int32 _IssuedTokenId; - partial void OnIssuedTokenIdChanging(global::System.Int32 value); - partial void OnIssuedTokenIdChanged(); - - #endregion - - #region Navigation Properties - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private int _VerificationCodeFormatAsInt; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnVerificationCodeFormatAsIntChanging(int value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnVerificationCodeFormatAsIntChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property VerificationCodeLength in the schema. /// </summary> - [XmlIgnoreAttribute()] - [SoapIgnoreAttribute()] - [DataMemberAttribute()] - [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer1", "Consumer")] - public Consumer Consumer + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public int VerificationCodeLength { get { - return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer").Value; + return this._VerificationCodeLength; } set { - ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer").Value = value; + this.OnVerificationCodeLengthChanging(value); + this.ReportPropertyChanging("VerificationCodeLength"); + this._VerificationCodeLength = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("VerificationCodeLength"); + this.OnVerificationCodeLengthChanged(); } } + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private int _VerificationCodeLength; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnVerificationCodeLengthChanging(int value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnVerificationCodeLengthChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property ConsumerId in the schema. /// </summary> - [BrowsableAttribute(false)] - [DataMemberAttribute()] - public EntityReference<Consumer> ConsumerReference + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public int ConsumerId { get { - return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer"); + return this._ConsumerId; } - set + private set { - if ((value != null)) - { - ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer", value); - } + this.OnConsumerIdChanging(value); + this.ReportPropertyChanging("ConsumerId"); + this._ConsumerId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("ConsumerId"); + this.OnConsumerIdChanged(); } } - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private int _ConsumerId; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnConsumerIdChanging(int value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnConsumerIdChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property Name in the schema. /// </summary> - [XmlIgnoreAttribute()] - [SoapIgnoreAttribute()] - [DataMemberAttribute()] - [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_User1", "User")] - public User User + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string Name { get { - return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User").Value; + return this._Name; } set { - ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User").Value = value; + this.OnNameChanging(value); + this.ReportPropertyChanging("Name"); + this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("Name"); + this.OnNameChanged(); } } + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _Name; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnNameChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnNameChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for IssuedTokens in the schema. /// </summary> - [BrowsableAttribute(false)] - [DataMemberAttribute()] - public EntityReference<User> UserReference + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer1", "IssuedToken")] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityCollection<IssuedToken> IssuedTokens { get { - return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User"); + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_Consumer1", "IssuedToken"); } set { if ((value != null)) { - ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User", value); + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_Consumer1", "IssuedToken", value); } } } - - #endregion } - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for DatabaseModel.IssuedToken in the schema. /// </summary> - [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Nonce")] - [Serializable()] - [DataContractAttribute(IsReference=true)] - public partial class Nonce : EntityObject + /// <KeyProperties> + /// IssuedTokenId + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="IssuedToken")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + [global::System.Runtime.Serialization.KnownTypeAttribute(typeof(global::RelyingPartyLogic.IssuedRequestToken))] + [global::System.Runtime.Serialization.KnownTypeAttribute(typeof(global::RelyingPartyLogic.IssuedAccessToken))] + public abstract partial class IssuedToken : global::System.Data.Objects.DataClasses.EntityObject { - #region Factory Method - - /// <summary> - /// Create a new Nonce object. - /// </summary> - /// <param name="nonceId">Initial value of the NonceId property.</param> - /// <param name="context">Initial value of the Context property.</param> - /// <param name="code">Initial value of the Code property.</param> - /// <param name="issuedUtc">Initial value of the IssuedUtc property.</param> - /// <param name="expiresUtc">Initial value of the ExpiresUtc property.</param> - public static Nonce CreateNonce(global::System.Int32 nonceId, global::System.String context, global::System.String code, global::System.DateTime issuedUtc, global::System.DateTime expiresUtc) - { - Nonce nonce = new Nonce(); - nonce.NonceId = nonceId; - nonce.Context = context; - nonce.Code = code; - nonce.IssuedUtc = issuedUtc; - nonce.ExpiresUtc = expiresUtc; - return nonce; - } - - #endregion - #region Primitive Properties - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property Token in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] - [DataMemberAttribute()] - public global::System.Int32 NonceId + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string Token { get { - return _NonceId; + return this._Token; } set { - if (_NonceId != value) - { - OnNonceIdChanging(value); - ReportPropertyChanging("NonceId"); - _NonceId = StructuralObject.SetValidValue(value); - ReportPropertyChanged("NonceId"); - OnNonceIdChanged(); - } + this.OnTokenChanging(value); + this.ReportPropertyChanging("Token"); + this._Token = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("Token"); + this.OnTokenChanged(); } } - private global::System.Int32 _NonceId; - partial void OnNonceIdChanging(global::System.Int32 value); - partial void OnNonceIdChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _Token; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnTokenChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnTokenChanged(); /// <summary> - /// Gets or sets the Provider Endpoint URL the nonce came from. + /// There are no comments for property TokenSecret in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.String Context + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string TokenSecret { get { - return _Context; + return this._TokenSecret; } set { - OnContextChanging(value); - ReportPropertyChanging("Context"); - _Context = StructuralObject.SetValidValue(value, false); - ReportPropertyChanged("Context"); - OnContextChanged(); + this.OnTokenSecretChanging(value); + this.ReportPropertyChanging("TokenSecret"); + this._TokenSecret = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("TokenSecret"); + this.OnTokenSecretChanged(); } } - private global::System.String _Context; - partial void OnContextChanging(global::System.String value); - partial void OnContextChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _TokenSecret; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnTokenSecretChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnTokenSecretChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property CreatedOnUtc in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.String Code + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public global::System.DateTime CreatedOnUtc { get { - return _Code; + return this._CreatedOnUtc; } - set + internal set { - OnCodeChanging(value); - ReportPropertyChanging("Code"); - _Code = StructuralObject.SetValidValue(value, false); - ReportPropertyChanged("Code"); - OnCodeChanged(); + this.OnCreatedOnUtcChanging(value); + this.ReportPropertyChanging("CreatedOnUtc"); + this._CreatedOnUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("CreatedOnUtc"); + this.OnCreatedOnUtcChanged(); } } - private global::System.String _Code; - partial void OnCodeChanging(global::System.String value); - partial void OnCodeChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private global::System.DateTime _CreatedOnUtc; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnCreatedOnUtcChanging(global::System.DateTime value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnCreatedOnUtcChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property Scope in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.DateTime IssuedUtc + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string Scope { get { - return _IssuedUtc; + return this._Scope; } set { - OnIssuedUtcChanging(value); - ReportPropertyChanging("IssuedUtc"); - _IssuedUtc = StructuralObject.SetValidValue(value); - ReportPropertyChanged("IssuedUtc"); - OnIssuedUtcChanged(); + this.OnScopeChanging(value); + this.ReportPropertyChanging("Scope"); + this._Scope = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("Scope"); + this.OnScopeChanged(); } } - private global::System.DateTime _IssuedUtc; - partial void OnIssuedUtcChanging(global::System.DateTime value); - partial void OnIssuedUtcChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _Scope; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnScopeChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnScopeChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property IssuedTokenId in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.DateTime ExpiresUtc + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public int IssuedTokenId { get { - return _ExpiresUtc; + return this._IssuedTokenId; } - set + internal set { - OnExpiresUtcChanging(value); - ReportPropertyChanging("ExpiresUtc"); - _ExpiresUtc = StructuralObject.SetValidValue(value); - ReportPropertyChanged("ExpiresUtc"); - OnExpiresUtcChanged(); + this.OnIssuedTokenIdChanging(value); + this.ReportPropertyChanging("IssuedTokenId"); + this._IssuedTokenId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("IssuedTokenId"); + this.OnIssuedTokenIdChanged(); } } - private global::System.DateTime _ExpiresUtc; - partial void OnExpiresUtcChanging(global::System.DateTime value); - partial void OnExpiresUtcChanged(); - - #endregion - - } - - /// <summary> - /// No Metadata Documentation available. - /// </summary> - [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="OpenIdAssociation")] - [Serializable()] - [DataContractAttribute(IsReference=true)] - public partial class OpenIdAssociation : EntityObject - { - #region Factory Method - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private int _IssuedTokenId; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnIssuedTokenIdChanging(int value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnIssuedTokenIdChanged(); /// <summary> - /// Create a new OpenIdAssociation object. + /// There are no comments for Consumer in the schema. /// </summary> - /// <param name="associationId">Initial value of the AssociationId property.</param> - /// <param name="distinguishingFactor">Initial value of the DistinguishingFactor property.</param> - /// <param name="associationHandle">Initial value of the AssociationHandle property.</param> - /// <param name="expirationUtc">Initial value of the ExpirationUtc property.</param> - /// <param name="privateData">Initial value of the PrivateData property.</param> - /// <param name="privateDataLength">Initial value of the PrivateDataLength property.</param> - public static OpenIdAssociation CreateOpenIdAssociation(global::System.Int32 associationId, global::System.String distinguishingFactor, global::System.String associationHandle, global::System.DateTime expirationUtc, global::System.Byte[] privateData, global::System.Int32 privateDataLength) + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer1", "Consumer")] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public Consumer Consumer { - OpenIdAssociation openIdAssociation = new OpenIdAssociation(); - openIdAssociation.AssociationId = associationId; - openIdAssociation.DistinguishingFactor = distinguishingFactor; - openIdAssociation.AssociationHandle = associationHandle; - openIdAssociation.ExpirationUtc = expirationUtc; - openIdAssociation.PrivateData = privateData; - openIdAssociation.PrivateDataLength = privateDataLength; - return openIdAssociation; + get + { + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer").Value; + } + set + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer").Value = value; + } } - - #endregion - #region Primitive Properties - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for Consumer in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] - [DataMemberAttribute()] - public global::System.Int32 AssociationId + [global::System.ComponentModel.BrowsableAttribute(false)] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityReference<Consumer> ConsumerReference { get { - return _AssociationId; + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer"); } set { - if (_AssociationId != value) + if ((value != null)) { - OnAssociationIdChanging(value); - ReportPropertyChanging("AssociationId"); - _AssociationId = StructuralObject.SetValidValue(value); - ReportPropertyChanged("AssociationId"); - OnAssociationIdChanged(); + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer", value); } } } - private global::System.Int32 _AssociationId; - partial void OnAssociationIdChanging(global::System.Int32 value); - partial void OnAssociationIdChanged(); - /// <summary> - /// Gets or sets the Provider Endpoint URL the association is with. + /// There are no comments for User in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.String DistinguishingFactor + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_User1", "User")] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public User User { get { - return _DistinguishingFactor; + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User").Value; } set { - OnDistinguishingFactorChanging(value); - ReportPropertyChanging("DistinguishingFactor"); - _DistinguishingFactor = StructuralObject.SetValidValue(value, false); - ReportPropertyChanged("DistinguishingFactor"); - OnDistinguishingFactorChanged(); + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User").Value = value; } } - private global::System.String _DistinguishingFactor; - partial void OnDistinguishingFactorChanging(global::System.String value); - partial void OnDistinguishingFactorChanged(); - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for User in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.String AssociationHandle + [global::System.ComponentModel.BrowsableAttribute(false)] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityReference<User> UserReference { get { - return _AssociationHandle; + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User"); } set { - OnAssociationHandleChanging(value); - ReportPropertyChanging("AssociationHandle"); - _AssociationHandle = StructuralObject.SetValidValue(value, false); - ReportPropertyChanged("AssociationHandle"); - OnAssociationHandleChanged(); + if ((value != null)) + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User", value); + } } } - private global::System.String _AssociationHandle; - partial void OnAssociationHandleChanging(global::System.String value); - partial void OnAssociationHandleChanged(); - + } + /// <summary> + /// There are no comments for DatabaseModel.IssuedRequestToken in the schema. + /// </summary> + /// <KeyProperties> + /// IssuedTokenId + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="IssuedRequestToken")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class IssuedRequestToken : IssuedToken + { /// <summary> - /// No Metadata Documentation available. + /// Create a new IssuedRequestToken object. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.DateTime ExpirationUtc + /// <param name="token">Initial value of Token.</param> + /// <param name="tokenSecret">Initial value of TokenSecret.</param> + /// <param name="createdOnUtc">Initial value of CreatedOnUtc.</param> + /// <param name="issuedTokenId">Initial value of IssuedTokenId.</param> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public static IssuedRequestToken CreateIssuedRequestToken(string token, string tokenSecret, global::System.DateTime createdOnUtc, int issuedTokenId) + { + IssuedRequestToken issuedRequestToken = new IssuedRequestToken(); + issuedRequestToken.Token = token; + issuedRequestToken.TokenSecret = tokenSecret; + issuedRequestToken.CreatedOnUtc = createdOnUtc; + issuedRequestToken.IssuedTokenId = issuedTokenId; + return issuedRequestToken; + } + /// <summary> + /// There are no comments for property ConsumerVersionAsString in the schema. + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string ConsumerVersionAsString { get { - return _ExpirationUtc; + return this._ConsumerVersionAsString; } set { - OnExpirationUtcChanging(value); - ReportPropertyChanging("ExpirationUtc"); - _ExpirationUtc = StructuralObject.SetValidValue(value); - ReportPropertyChanged("ExpirationUtc"); - OnExpirationUtcChanged(); + this.OnConsumerVersionAsStringChanging(value); + this.ReportPropertyChanging("ConsumerVersionAsString"); + this._ConsumerVersionAsString = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("ConsumerVersionAsString"); + this.OnConsumerVersionAsStringChanged(); } } - private global::System.DateTime _ExpirationUtc; - partial void OnExpirationUtcChanging(global::System.DateTime value); - partial void OnExpirationUtcChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _ConsumerVersionAsString; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnConsumerVersionAsStringChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnConsumerVersionAsStringChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property VerificationCode in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.Byte[] PrivateData + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string VerificationCode { get { - return StructuralObject.GetValidValue(_PrivateData); + return this._VerificationCode; } set { - OnPrivateDataChanging(value); - ReportPropertyChanging("PrivateData"); - _PrivateData = StructuralObject.SetValidValue(value, false); - ReportPropertyChanged("PrivateData"); - OnPrivateDataChanged(); + this.OnVerificationCodeChanging(value); + this.ReportPropertyChanging("VerificationCode"); + this._VerificationCode = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("VerificationCode"); + this.OnVerificationCodeChanged(); } } - private global::System.Byte[] _PrivateData; - partial void OnPrivateDataChanging(global::System.Byte[] value); - partial void OnPrivateDataChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _VerificationCode; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnVerificationCodeChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnVerificationCodeChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property CallbackAsString in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.Int32 PrivateDataLength + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string CallbackAsString { get { - return _PrivateDataLength; + return this._CallbackAsString; } set { - OnPrivateDataLengthChanging(value); - ReportPropertyChanging("PrivateDataLength"); - _PrivateDataLength = StructuralObject.SetValidValue(value); - ReportPropertyChanged("PrivateDataLength"); - OnPrivateDataLengthChanged(); + this.OnCallbackAsStringChanging(value); + this.ReportPropertyChanging("CallbackAsString"); + this._CallbackAsString = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true); + this.ReportPropertyChanged("CallbackAsString"); + this.OnCallbackAsStringChanged(); } } - private global::System.Int32 _PrivateDataLength; - partial void OnPrivateDataLengthChanging(global::System.Int32 value); - partial void OnPrivateDataLengthChanged(); - - #endregion - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _CallbackAsString; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnCallbackAsStringChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnCallbackAsStringChanged(); } - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for DatabaseModel.IssuedAccessToken in the schema. /// </summary> - [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Role")] - [Serializable()] - [DataContractAttribute(IsReference=true)] - public partial class Role : EntityObject + /// <KeyProperties> + /// IssuedTokenId + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="IssuedAccessToken")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class IssuedAccessToken : IssuedToken { - #region Factory Method - /// <summary> - /// Create a new Role object. + /// Create a new IssuedAccessToken object. /// </summary> - /// <param name="name">Initial value of the Name property.</param> - /// <param name="roleId">Initial value of the RoleId property.</param> - public static Role CreateRole(global::System.String name, global::System.Int32 roleId) + /// <param name="token">Initial value of Token.</param> + /// <param name="tokenSecret">Initial value of TokenSecret.</param> + /// <param name="createdOnUtc">Initial value of CreatedOnUtc.</param> + /// <param name="issuedTokenId">Initial value of IssuedTokenId.</param> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public static IssuedAccessToken CreateIssuedAccessToken(string token, string tokenSecret, global::System.DateTime createdOnUtc, int issuedTokenId) { - Role role = new Role(); - role.Name = name; - role.RoleId = roleId; - return role; + IssuedAccessToken issuedAccessToken = new IssuedAccessToken(); + issuedAccessToken.Token = token; + issuedAccessToken.TokenSecret = tokenSecret; + issuedAccessToken.CreatedOnUtc = createdOnUtc; + issuedAccessToken.IssuedTokenId = issuedTokenId; + return issuedAccessToken; } - - #endregion - #region Primitive Properties - /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property ExpirationDateUtc in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.String Name + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public global::System.Nullable<global::System.DateTime> ExpirationDateUtc { get { - return _Name; + return this._ExpirationDateUtc; } set { - OnNameChanging(value); - ReportPropertyChanging("Name"); - _Name = StructuralObject.SetValidValue(value, false); - ReportPropertyChanged("Name"); - OnNameChanged(); + this.OnExpirationDateUtcChanging(value); + this.ReportPropertyChanging("ExpirationDateUtc"); + this._ExpirationDateUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("ExpirationDateUtc"); + this.OnExpirationDateUtcChanged(); } } - private global::System.String _Name; - partial void OnNameChanging(global::System.String value); - partial void OnNameChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private global::System.Nullable<global::System.DateTime> _ExpirationDateUtc; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnExpirationDateUtcChanging(global::System.Nullable<global::System.DateTime> value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnExpirationDateUtcChanged(); + } + /// <summary> + /// There are no comments for DatabaseModel.Nonce in the schema. + /// </summary> + /// <KeyProperties> + /// NonceId + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Nonce")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class Nonce : global::System.Data.Objects.DataClasses.EntityObject + { + /// <summary> + /// Create a new Nonce object. + /// </summary> + /// <param name="nonceId">Initial value of NonceId.</param> + /// <param name="context">Initial value of Context.</param> + /// <param name="code">Initial value of Code.</param> + /// <param name="issuedUtc">Initial value of IssuedUtc.</param> + /// <param name="expiresUtc">Initial value of ExpiresUtc.</param> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public static Nonce CreateNonce(int nonceId, string context, string code, global::System.DateTime issuedUtc, global::System.DateTime expiresUtc) + { + Nonce nonce = new Nonce(); + nonce.NonceId = nonceId; + nonce.Context = context; + nonce.Code = code; + nonce.IssuedUtc = issuedUtc; + nonce.ExpiresUtc = expiresUtc; + return nonce; + } /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property NonceId in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] - [DataMemberAttribute()] - public global::System.Int32 RoleId + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public int NonceId { get { - return _RoleId; + return this._NonceId; } - private set + set { - if (_RoleId != value) - { - OnRoleIdChanging(value); - ReportPropertyChanging("RoleId"); - _RoleId = StructuralObject.SetValidValue(value); - ReportPropertyChanged("RoleId"); - OnRoleIdChanged(); - } + this.OnNonceIdChanging(value); + this.ReportPropertyChanging("NonceId"); + this._NonceId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("NonceId"); + this.OnNonceIdChanged(); } } - private global::System.Int32 _RoleId; - partial void OnRoleIdChanging(global::System.Int32 value); - partial void OnRoleIdChanged(); - - #endregion - - #region Navigation Properties - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private int _NonceId; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnNonceIdChanging(int value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnNonceIdChanged(); /// <summary> - /// No Metadata Documentation available. + /// Gets or sets the Provider Endpoint URL the nonce came from. /// </summary> - [XmlIgnoreAttribute()] - [SoapIgnoreAttribute()] - [DataMemberAttribute()] - [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "UserRole", "User")] - public EntityCollection<User> Users + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string Context { get { - return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<User>("DatabaseModel.UserRole", "User"); + return this._Context; } set { - if ((value != null)) - { - ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<User>("DatabaseModel.UserRole", "User", value); - } + this.OnContextChanging(value); + this.ReportPropertyChanging("Context"); + this._Context = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("Context"); + this.OnContextChanged(); } } - - #endregion - } - - /// <summary> - /// No Metadata Documentation available. - /// </summary> - [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="User")] - [Serializable()] - [DataContractAttribute(IsReference=true)] - public partial class User : EntityObject - { - #region Factory Method - - /// <summary> - /// Create a new User object. - /// </summary> - /// <param name="emailAddressVerified">Initial value of the EmailAddressVerified property.</param> - /// <param name="createdOnUtc">Initial value of the CreatedOnUtc property.</param> - /// <param name="userId">Initial value of the UserId property.</param> - public static User CreateUser(global::System.Boolean emailAddressVerified, global::System.DateTime createdOnUtc, global::System.Int32 userId) - { - User user = new User(); - user.EmailAddressVerified = emailAddressVerified; - user.CreatedOnUtc = createdOnUtc; - user.UserId = userId; - return user; - } - - #endregion - #region Primitive Properties - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _Context; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnContextChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnContextChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property Code in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] - [DataMemberAttribute()] - public global::System.String FirstName + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string Code { get { - return _FirstName; + return this._Code; } set { - OnFirstNameChanging(value); - ReportPropertyChanging("FirstName"); - _FirstName = StructuralObject.SetValidValue(value, true); - ReportPropertyChanged("FirstName"); - OnFirstNameChanged(); + this.OnCodeChanging(value); + this.ReportPropertyChanging("Code"); + this._Code = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("Code"); + this.OnCodeChanged(); } } - private global::System.String _FirstName; - partial void OnFirstNameChanging(global::System.String value); - partial void OnFirstNameChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _Code; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnCodeChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnCodeChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property IssuedUtc in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] - [DataMemberAttribute()] - public global::System.String LastName + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public global::System.DateTime IssuedUtc { get { - return _LastName; + return this._IssuedUtc; } set { - OnLastNameChanging(value); - ReportPropertyChanging("LastName"); - _LastName = StructuralObject.SetValidValue(value, true); - ReportPropertyChanged("LastName"); - OnLastNameChanged(); + this.OnIssuedUtcChanging(value); + this.ReportPropertyChanging("IssuedUtc"); + this._IssuedUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("IssuedUtc"); + this.OnIssuedUtcChanged(); } } - private global::System.String _LastName; - partial void OnLastNameChanging(global::System.String value); - partial void OnLastNameChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private global::System.DateTime _IssuedUtc; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnIssuedUtcChanging(global::System.DateTime value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnIssuedUtcChanged(); /// <summary> - /// The email address claimed to be controlled by the user. Whether it is actually owned by the user is indicated by the EmailAddressVerified property. + /// There are no comments for property ExpiresUtc in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] - [DataMemberAttribute()] - public global::System.String EmailAddress + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public global::System.DateTime ExpiresUtc { get { - return _EmailAddress; + return this._ExpiresUtc; } set { - OnEmailAddressChanging(value); - ReportPropertyChanging("EmailAddress"); - _EmailAddress = StructuralObject.SetValidValue(value, true); - ReportPropertyChanged("EmailAddress"); - OnEmailAddressChanged(); + this.OnExpiresUtcChanging(value); + this.ReportPropertyChanging("ExpiresUtc"); + this._ExpiresUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("ExpiresUtc"); + this.OnExpiresUtcChanged(); } } - private global::System.String _EmailAddress; - partial void OnEmailAddressChanging(global::System.String value); - partial void OnEmailAddressChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private global::System.DateTime _ExpiresUtc; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnExpiresUtcChanging(global::System.DateTime value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnExpiresUtcChanged(); + } + /// <summary> + /// There are no comments for DatabaseModel.OpenIdAssociation in the schema. + /// </summary> + /// <KeyProperties> + /// AssociationId + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="OpenIdAssociation")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class OpenIdAssociation : global::System.Data.Objects.DataClasses.EntityObject + { /// <summary> - /// A value indicating whether the email address has been verified as actually owned by this user. + /// Create a new OpenIdAssociation object. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.Boolean EmailAddressVerified + /// <param name="associationId">Initial value of AssociationId.</param> + /// <param name="distinguishingFactor">Initial value of DistinguishingFactor.</param> + /// <param name="associationHandle">Initial value of AssociationHandle.</param> + /// <param name="expirationUtc">Initial value of ExpirationUtc.</param> + /// <param name="privateData">Initial value of PrivateData.</param> + /// <param name="privateDataLength">Initial value of PrivateDataLength.</param> + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public static OpenIdAssociation CreateOpenIdAssociation(int associationId, string distinguishingFactor, string associationHandle, global::System.DateTime expirationUtc, byte[] privateData, int privateDataLength) + { + OpenIdAssociation openIdAssociation = new OpenIdAssociation(); + openIdAssociation.AssociationId = associationId; + openIdAssociation.DistinguishingFactor = distinguishingFactor; + openIdAssociation.AssociationHandle = associationHandle; + openIdAssociation.ExpirationUtc = expirationUtc; + openIdAssociation.PrivateData = privateData; + openIdAssociation.PrivateDataLength = privateDataLength; + return openIdAssociation; + } + /// <summary> + /// There are no comments for property AssociationId in the schema. + /// </summary> + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public int AssociationId { get { - return _EmailAddressVerified; + return this._AssociationId; } set { - OnEmailAddressVerifiedChanging(value); - ReportPropertyChanging("EmailAddressVerified"); - _EmailAddressVerified = StructuralObject.SetValidValue(value); - ReportPropertyChanged("EmailAddressVerified"); - OnEmailAddressVerifiedChanged(); + this.OnAssociationIdChanging(value); + this.ReportPropertyChanging("AssociationId"); + this._AssociationId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("AssociationId"); + this.OnAssociationIdChanged(); } } - private global::System.Boolean _EmailAddressVerified; - partial void OnEmailAddressVerifiedChanging(global::System.Boolean value); - partial void OnEmailAddressVerifiedChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private int _AssociationId; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnAssociationIdChanging(int value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnAssociationIdChanged(); /// <summary> - /// No Metadata Documentation available. + /// Gets or sets the Provider Endpoint URL the association is with. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)] - [DataMemberAttribute()] - public global::System.DateTime CreatedOnUtc + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string DistinguishingFactor { get { - return _CreatedOnUtc; + return this._DistinguishingFactor; } - private set + set { - OnCreatedOnUtcChanging(value); - ReportPropertyChanging("CreatedOnUtc"); - _CreatedOnUtc = StructuralObject.SetValidValue(value); - ReportPropertyChanged("CreatedOnUtc"); - OnCreatedOnUtcChanged(); + this.OnDistinguishingFactorChanging(value); + this.ReportPropertyChanging("DistinguishingFactor"); + this._DistinguishingFactor = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("DistinguishingFactor"); + this.OnDistinguishingFactorChanged(); } } - private global::System.DateTime _CreatedOnUtc; - partial void OnCreatedOnUtcChanging(global::System.DateTime value); - partial void OnCreatedOnUtcChanged(); - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _DistinguishingFactor; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnDistinguishingFactorChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnDistinguishingFactorChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property AssociationHandle in the schema. /// </summary> - [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] - [DataMemberAttribute()] - public global::System.Int32 UserId + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public string AssociationHandle { get { - return _UserId; + return this._AssociationHandle; } - private set + set { - if (_UserId != value) - { - OnUserIdChanging(value); - ReportPropertyChanging("UserId"); - _UserId = StructuralObject.SetValidValue(value); - ReportPropertyChanged("UserId"); - OnUserIdChanged(); - } + this.OnAssociationHandleChanging(value); + this.ReportPropertyChanging("AssociationHandle"); + this._AssociationHandle = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("AssociationHandle"); + this.OnAssociationHandleChanged(); } } - private global::System.Int32 _UserId; - partial void OnUserIdChanging(global::System.Int32 value); - partial void OnUserIdChanged(); - - #endregion - - #region Navigation Properties - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private string _AssociationHandle; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnAssociationHandleChanging(string value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnAssociationHandleChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property ExpirationUtc in the schema. /// </summary> - [XmlIgnoreAttribute()] - [SoapIgnoreAttribute()] - [DataMemberAttribute()] - [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "UserRole", "Role")] - public EntityCollection<Role> Roles + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public global::System.DateTime ExpirationUtc { get { - return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Role>("DatabaseModel.UserRole", "Role"); + return this._ExpirationUtc; } set { - if ((value != null)) - { - ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Role>("DatabaseModel.UserRole", "Role", value); - } + this.OnExpirationUtcChanging(value); + this.ReportPropertyChanging("ExpirationUtc"); + this._ExpirationUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("ExpirationUtc"); + this.OnExpirationUtcChanged(); } } - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private global::System.DateTime _ExpirationUtc; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnExpirationUtcChanging(global::System.DateTime value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnExpirationUtcChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property PrivateData in the schema. /// </summary> - [XmlIgnoreAttribute()] - [SoapIgnoreAttribute()] - [DataMemberAttribute()] - [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_AuthenticationToken_User", "AuthenticationToken")] - public EntityCollection<AuthenticationToken> AuthenticationTokens + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public byte[] PrivateData { get { - return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AuthenticationToken>("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken"); + return global::System.Data.Objects.DataClasses.StructuralObject.GetValidValue(this._PrivateData); } set { - if ((value != null)) - { - ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AuthenticationToken>("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken", value); - } + this.OnPrivateDataChanging(value); + this.ReportPropertyChanging("PrivateData"); + this._PrivateData = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false); + this.ReportPropertyChanged("PrivateData"); + this.OnPrivateDataChanged(); } } - + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private byte[] _PrivateData; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnPrivateDataChanging(byte[] value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnPrivateDataChanged(); /// <summary> - /// No Metadata Documentation available. + /// There are no comments for property PrivateDataLength in the schema. /// </summary> - [XmlIgnoreAttribute()] - [SoapIgnoreAttribute()] - [DataMemberAttribute()] - [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_User1", "IssuedToken")] - public EntityCollection<IssuedToken> IssuedTokens + [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + public int PrivateDataLength { get { - return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_User1", "IssuedToken"); + return this._PrivateDataLength; } set { - if ((value != null)) - { - ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_User1", "IssuedToken", value); - } + this.OnPrivateDataLengthChanging(value); + this.ReportPropertyChanging("PrivateDataLength"); + this._PrivateDataLength = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); + this.ReportPropertyChanged("PrivateDataLength"); + this.OnPrivateDataLengthChanged(); } } - - #endregion + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + private int _PrivateDataLength; + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnPrivateDataLengthChanging(int value); + [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")] + partial void OnPrivateDataLengthChanged(); } - - #endregion - } |