summaryrefslogtreecommitdiffstats
path: root/projecttemplates/RelyingPartyLogic/Model.Designer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/Model.Designer.cs')
-rw-r--r--projecttemplates/RelyingPartyLogic/Model.Designer.cs1874
1 files changed, 950 insertions, 924 deletions
diff --git a/projecttemplates/RelyingPartyLogic/Model.Designer.cs b/projecttemplates/RelyingPartyLogic/Model.Designer.cs
index 8dddc2d..df854b4 100644
--- a/projecttemplates/RelyingPartyLogic/Model.Designer.cs
+++ b/projecttemplates/RelyingPartyLogic/Model.Designer.cs
@@ -1,251 +1,287 @@
//------------------------------------------------------------------------------
// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.239
+// This code was generated from a template.
//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
+// 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.
// </auto-generated>
//------------------------------------------------------------------------------
-[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_Consumer", "Client", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.Client), "ClientAuthorization", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.ClientAuthorization))]
-[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "FK_IssuedToken_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.User), "ClientAuthorization", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.ClientAuthorization))]
+using System;
+using System.ComponentModel;
+using System.Data.EntityClient;
+using System.Data.Objects;
+using System.Data.Objects.DataClasses;
+using System.Linq;
+using System.Runtime.Serialization;
+using System.Xml.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_Consumer", "Client", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.Client), "ClientAuthorization", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.ClientAuthorization))]
+[assembly: EdmRelationshipAttribute("DatabaseModel", "FK_IssuedToken_User", "User", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.User), "ClientAuthorization", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.ClientAuthorization))]
+
+#endregion
-// Original file name:
-// Generation date: 2/19/2012 9:18:26 PM
namespace RelyingPartyLogic
{
+ #region Contexts
/// <summary>
- /// There are no comments for DatabaseEntities in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- public partial class DatabaseEntities : global::System.Data.Objects.ObjectContext
+ public partial class DatabaseEntities : 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")
{
- this.OnContextCreated();
+ OnContextCreated();
}
+
/// <summary>
/// Initialize a new DatabaseEntities object.
/// </summary>
- public DatabaseEntities(string connectionString) :
- base(connectionString, "DatabaseEntities")
+ public DatabaseEntities(string connectionString) : base(connectionString, "DatabaseEntities")
{
- this.OnContextCreated();
+ OnContextCreated();
}
+
/// <summary>
/// Initialize a new DatabaseEntities object.
/// </summary>
- public DatabaseEntities(global::System.Data.EntityClient.EntityConnection connection) :
- base(connection, "DatabaseEntities")
+ public DatabaseEntities(EntityConnection connection) : base(connection, "DatabaseEntities")
{
- this.OnContextCreated();
+ OnContextCreated();
}
+
+ #endregion
+
+ #region Partial Methods
+
partial void OnContextCreated();
+
+ #endregion
+
+ #region ObjectSet Properties
+
/// <summary>
- /// There are no comments for Roles in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- public global::System.Data.Objects.ObjectQuery<Role> Roles
+ public ObjectSet<Role> Roles
{
get
{
- if ((this._Roles == null))
+ if ((_Roles == null))
{
- this._Roles = base.CreateQuery<Role>("[Roles]");
+ _Roles = base.CreateObjectSet<Role>("Roles");
}
- return this._Roles;
+ return _Roles;
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private global::System.Data.Objects.ObjectQuery<Role> _Roles;
+ private ObjectSet<Role> _Roles;
+
/// <summary>
- /// There are no comments for Users in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- public global::System.Data.Objects.ObjectQuery<User> Users
+ public ObjectSet<User> Users
{
get
{
- if ((this._Users == null))
+ if ((_Users == null))
{
- this._Users = base.CreateQuery<User>("[Users]");
+ _Users = base.CreateObjectSet<User>("Users");
}
- return this._Users;
+ return _Users;
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private global::System.Data.Objects.ObjectQuery<User> _Users;
+ private ObjectSet<User> _Users;
+
/// <summary>
- /// There are no comments for AuthenticationTokens in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- public global::System.Data.Objects.ObjectQuery<AuthenticationToken> AuthenticationTokens
+ public ObjectSet<AuthenticationToken> AuthenticationTokens
{
get
{
- if ((this._AuthenticationTokens == null))
+ if ((_AuthenticationTokens == null))
{
- this._AuthenticationTokens = base.CreateQuery<AuthenticationToken>("[AuthenticationTokens]");
+ _AuthenticationTokens = base.CreateObjectSet<AuthenticationToken>("AuthenticationTokens");
}
- return this._AuthenticationTokens;
+ return _AuthenticationTokens;
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private global::System.Data.Objects.ObjectQuery<AuthenticationToken> _AuthenticationTokens;
+ private ObjectSet<AuthenticationToken> _AuthenticationTokens;
+
/// <summary>
- /// There are no comments for Nonces in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- public global::System.Data.Objects.ObjectQuery<Nonce> Nonces
+ public ObjectSet<Nonce> Nonces
{
get
{
- if ((this._Nonces == null))
+ if ((_Nonces == null))
{
- this._Nonces = base.CreateQuery<Nonce>("[Nonces]");
+ _Nonces = base.CreateObjectSet<Nonce>("Nonces");
}
- return this._Nonces;
+ return _Nonces;
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private global::System.Data.Objects.ObjectQuery<Nonce> _Nonces;
+ private ObjectSet<Nonce> _Nonces;
+
/// <summary>
- /// There are no comments for Clients in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- public global::System.Data.Objects.ObjectQuery<Client> Clients
+ public ObjectSet<Client> Clients
{
get
{
- if ((this._Clients == null))
+ if ((_Clients == null))
{
- this._Clients = base.CreateQuery<Client>("[Clients]");
+ _Clients = base.CreateObjectSet<Client>("Clients");
}
- return this._Clients;
+ return _Clients;
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private global::System.Data.Objects.ObjectQuery<Client> _Clients;
+ private ObjectSet<Client> _Clients;
+
/// <summary>
- /// There are no comments for ClientAuthorizations in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- public global::System.Data.Objects.ObjectQuery<ClientAuthorization> ClientAuthorizations
+ public ObjectSet<ClientAuthorization> ClientAuthorizations
{
get
{
- if ((this._ClientAuthorizations == null))
+ if ((_ClientAuthorizations == null))
{
- this._ClientAuthorizations = base.CreateQuery<ClientAuthorization>("[ClientAuthorizations]");
+ _ClientAuthorizations = base.CreateObjectSet<ClientAuthorization>("ClientAuthorizations");
}
- return this._ClientAuthorizations;
+ return _ClientAuthorizations;
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private global::System.Data.Objects.ObjectQuery<ClientAuthorization> _ClientAuthorizations;
+ private ObjectSet<ClientAuthorization> _ClientAuthorizations;
+
/// <summary>
- /// There are no comments for SymmetricCryptoKeys in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- public global::System.Data.Objects.ObjectQuery<SymmetricCryptoKey> SymmetricCryptoKeys
+ public ObjectSet<SymmetricCryptoKey> SymmetricCryptoKeys
{
get
{
- if ((this._SymmetricCryptoKeys == null))
+ if ((_SymmetricCryptoKeys == null))
{
- this._SymmetricCryptoKeys = base.CreateQuery<SymmetricCryptoKey>("[SymmetricCryptoKeys]");
+ _SymmetricCryptoKeys = base.CreateObjectSet<SymmetricCryptoKey>("SymmetricCryptoKeys");
}
- return this._SymmetricCryptoKeys;
+ return _SymmetricCryptoKeys;
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private global::System.Data.Objects.ObjectQuery<SymmetricCryptoKey> _SymmetricCryptoKeys;
+ private ObjectSet<SymmetricCryptoKey> _SymmetricCryptoKeys;
+
+ #endregion
+
+ #region AddTo Methods
+
/// <summary>
- /// There are no comments for Roles in the schema.
+ /// Deprecated Method for adding a new object to the Roles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
/// </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>
- /// There are no comments for Users in the schema.
+ /// Deprecated Method for adding a new object to the Users EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
/// </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>
- /// There are no comments for AuthenticationTokens in the schema.
+ /// Deprecated Method for adding a new object to the AuthenticationTokens EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
/// </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>
- /// There are no comments for Nonces in the schema.
+ /// Deprecated Method for adding a new object to the Nonces EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
/// </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>
- /// There are no comments for Clients in the schema.
+ /// Deprecated Method for adding a new object to the Clients EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
/// </summary>
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
public void AddToClients(Client client)
{
base.AddObject("Clients", client);
}
+
/// <summary>
- /// There are no comments for ClientAuthorizations in the schema.
+ /// Deprecated Method for adding a new object to the ClientAuthorizations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
/// </summary>
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
public void AddToClientAuthorizations(ClientAuthorization clientAuthorization)
{
base.AddObject("ClientAuthorizations", clientAuthorization);
}
+
/// <summary>
- /// There are no comments for SymmetricCryptoKeys in the schema.
+ /// Deprecated Method for adding a new object to the SymmetricCryptoKeys EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
/// </summary>
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
public void AddToSymmetricCryptoKeys(SymmetricCryptoKey symmetricCryptoKey)
{
base.AddObject("SymmetricCryptoKeys", symmetricCryptoKey);
}
+
+ #endregion
+
+ #region Function Imports
+
+ /// <summary>
+ /// No Metadata Documentation available.
+ /// </summary>
+ public int ClearExpiredNonces()
+ {
+ return base.ExecuteFunction("ClearExpiredNonces");
+ }
+
+ #endregion
+
}
+
+ #endregion
+
+ #region Entities
+
/// <summary>
- /// There are no comments for DatabaseModel.AuthenticationToken in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- /// <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
+ [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="AuthenticationToken")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ public partial class AuthenticationToken : EntityObject
{
+ #region Factory Method
+
/// <summary>
/// Create a new AuthenticationToken object.
/// </summary>
- /// <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)
+ /// <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)
{
AuthenticationToken authenticationToken = new AuthenticationToken();
authenticationToken.ClaimedIdentifier = claimedIdentifier;
@@ -255,585 +291,644 @@ namespace RelyingPartyLogic
authenticationToken.AuthenticationTokenId = authenticationTokenId;
return authenticationToken;
}
+
+ #endregion
+
+ #region Primitive Properties
+
/// <summary>
- /// There are no comments for property ClaimedIdentifier in the schema.
+ /// No Metadata Documentation available.
/// </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")]
- public string ClaimedIdentifier
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String ClaimedIdentifier
{
get
{
- return this._ClaimedIdentifier;
+ return _ClaimedIdentifier;
}
set
{
- this.OnClaimedIdentifierChanging(value);
- this.ReportPropertyChanging("ClaimedIdentifier");
- this._ClaimedIdentifier = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("ClaimedIdentifier");
- this.OnClaimedIdentifierChanged();
+ OnClaimedIdentifierChanging(value);
+ ReportPropertyChanging("ClaimedIdentifier");
+ _ClaimedIdentifier = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("ClaimedIdentifier");
+ OnClaimedIdentifierChanged();
}
}
- [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")]
+ private global::System.String _ClaimedIdentifier;
+ partial void OnClaimedIdentifierChanging(global::System.String value);
partial void OnClaimedIdentifierChanged();
+
/// <summary>
- /// There are no comments for property FriendlyIdentifier in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [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
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String FriendlyIdentifier
{
get
{
- return this._FriendlyIdentifier;
+ return _FriendlyIdentifier;
}
set
{
- this.OnFriendlyIdentifierChanging(value);
- this.ReportPropertyChanging("FriendlyIdentifier");
- this._FriendlyIdentifier = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("FriendlyIdentifier");
- this.OnFriendlyIdentifierChanged();
+ OnFriendlyIdentifierChanging(value);
+ ReportPropertyChanging("FriendlyIdentifier");
+ _FriendlyIdentifier = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("FriendlyIdentifier");
+ OnFriendlyIdentifierChanged();
}
}
- [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")]
+ private global::System.String _FriendlyIdentifier;
+ partial void OnFriendlyIdentifierChanging(global::System.String value);
partial void OnFriendlyIdentifierChanged();
+
/// <summary>
- /// There are no comments for property CreatedOnUtc in the schema.
+ /// No Metadata Documentation available.
/// </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")]
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
public global::System.DateTime CreatedOnUtc
{
get
{
- return this._CreatedOnUtc;
+ return _CreatedOnUtc;
}
private set
{
- this.OnCreatedOnUtcChanging(value);
- this.ReportPropertyChanging("CreatedOnUtc");
- this._CreatedOnUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("CreatedOnUtc");
- this.OnCreatedOnUtcChanged();
+ OnCreatedOnUtcChanging(value);
+ ReportPropertyChanging("CreatedOnUtc");
+ _CreatedOnUtc = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("CreatedOnUtc");
+ 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>
- /// There are no comments for property LastUsedUtc in the schema.
+ /// No Metadata Documentation available.
/// </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")]
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
public global::System.DateTime LastUsedUtc
{
get
{
- return this._LastUsedUtc;
+ return _LastUsedUtc;
}
set
{
- this.OnLastUsedUtcChanging(value);
- this.ReportPropertyChanging("LastUsedUtc");
- this._LastUsedUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("LastUsedUtc");
- this.OnLastUsedUtcChanged();
+ OnLastUsedUtcChanging(value);
+ ReportPropertyChanging("LastUsedUtc");
+ _LastUsedUtc = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("LastUsedUtc");
+ 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>
- /// There are no comments for property UsageCount in the schema.
+ /// No Metadata Documentation available.
/// </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")]
- public int UsageCount
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 UsageCount
{
get
{
- return this._UsageCount;
+ return _UsageCount;
}
set
{
- this.OnUsageCountChanging(value);
- this.ReportPropertyChanging("UsageCount");
- this._UsageCount = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("UsageCount");
- this.OnUsageCountChanged();
+ OnUsageCountChanging(value);
+ ReportPropertyChanging("UsageCount");
+ _UsageCount = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("UsageCount");
+ OnUsageCountChanged();
}
}
- [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")]
+ private global::System.Int32 _UsageCount;
+ partial void OnUsageCountChanging(global::System.Int32 value);
partial void OnUsageCountChanged();
+
/// <summary>
- /// There are no comments for property AuthenticationTokenId in the schema.
+ /// No Metadata Documentation available.
/// </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 AuthenticationTokenId
+ [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 AuthenticationTokenId
{
get
{
- return this._AuthenticationTokenId;
+ return _AuthenticationTokenId;
}
private set
{
- this.OnAuthenticationTokenIdChanging(value);
- this.ReportPropertyChanging("AuthenticationTokenId");
- this._AuthenticationTokenId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("AuthenticationTokenId");
- this.OnAuthenticationTokenIdChanged();
+ if (_AuthenticationTokenId != value)
+ {
+ OnAuthenticationTokenIdChanging(value);
+ ReportPropertyChanging("AuthenticationTokenId");
+ _AuthenticationTokenId = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("AuthenticationTokenId");
+ OnAuthenticationTokenIdChanged();
+ }
}
}
- [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")]
+ private global::System.Int32 _AuthenticationTokenId;
+ partial void OnAuthenticationTokenIdChanging(global::System.Int32 value);
partial void OnAuthenticationTokenIdChanged();
+
+ #endregion
+
+
+ #region Navigation Properties
+
/// <summary>
- /// There are no comments for User in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [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()]
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_AuthenticationToken_User", "User")]
public User User
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User").Value;
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User").Value;
}
set
{
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User").Value = value;
+ ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User").Value = value;
}
}
/// <summary>
- /// There are no comments for User in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [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
+ [BrowsableAttribute(false)]
+ [DataMemberAttribute()]
+ public EntityReference<User> UserReference
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User");
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User");
}
set
{
if ((value != null))
{
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User", value);
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<User>("DatabaseModel.FK_AuthenticationToken_User", "User", value);
}
}
}
+
+ #endregion
+
}
+
/// <summary>
- /// There are no comments for DatabaseModel.Role in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- /// <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
+ [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Client")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ public partial class Client : EntityObject
{
+ #region Factory Method
+
/// <summary>
- /// Create a new Role object.
+ /// Create a new Client object.
/// </summary>
- /// <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)
+ /// <param name="clientId">Initial value of the ClientId property.</param>
+ /// <param name="clientIdentifier">Initial value of the ClientIdentifier property.</param>
+ /// <param name="name">Initial value of the Name property.</param>
+ /// <param name="clientType">Initial value of the ClientType property.</param>
+ public static Client CreateClient(global::System.Int32 clientId, global::System.String clientIdentifier, global::System.String name, global::System.Int32 clientType)
{
- Role role = new Role();
- role.Name = name;
- role.RoleId = roleId;
- return role;
+ Client client = new Client();
+ client.ClientId = clientId;
+ client.ClientIdentifier = clientIdentifier;
+ client.Name = name;
+ client.ClientType = clientType;
+ return client;
}
+
+ #endregion
+
+ #region Primitive Properties
+
/// <summary>
- /// There are no comments for property Name in the schema.
+ /// No Metadata Documentation available.
/// </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")]
- public string Name
+ [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 ClientId
{
get
{
- return this._Name;
+ return _ClientId;
}
set
{
- this.OnNameChanging(value);
- this.ReportPropertyChanging("Name");
- this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("Name");
- this.OnNameChanged();
+ if (_ClientId != value)
+ {
+ OnClientIdChanging(value);
+ ReportPropertyChanging("ClientId");
+ _ClientId = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("ClientId");
+ OnClientIdChanged();
+ }
}
}
- [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();
+ private global::System.Int32 _ClientId;
+ partial void OnClientIdChanging(global::System.Int32 value);
+ partial void OnClientIdChanged();
+
/// <summary>
- /// There are no comments for property RoleId in the schema.
+ /// No Metadata Documentation available.
/// </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 RoleId
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String ClientIdentifier
{
get
{
- return this._RoleId;
+ return _ClientIdentifier;
}
- private set
+ set
{
- this.OnRoleIdChanging(value);
- this.ReportPropertyChanging("RoleId");
- this._RoleId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("RoleId");
- this.OnRoleIdChanged();
+ OnClientIdentifierChanging(value);
+ ReportPropertyChanging("ClientIdentifier");
+ _ClientIdentifier = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("ClientIdentifier");
+ OnClientIdentifierChanged();
}
}
- [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();
+ private global::System.String _ClientIdentifier;
+ partial void OnClientIdentifierChanging(global::System.String value);
+ partial void OnClientIdentifierChanged();
+
/// <summary>
- /// There are no comments for Users in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [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
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String ClientSecret
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<User>("DatabaseModel.UserRole", "User");
+ return _ClientSecret;
}
set
{
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<User>("DatabaseModel.UserRole", "User", value);
- }
+ OnClientSecretChanging(value);
+ ReportPropertyChanging("ClientSecret");
+ _ClientSecret = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("ClientSecret");
+ OnClientSecretChanged();
}
}
- }
- /// <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
- {
+ private global::System.String _ClientSecret;
+ partial void OnClientSecretChanging(global::System.String value);
+ partial void OnClientSecretChanged();
+
/// <summary>
- /// Create a new User object.
+ /// No Metadata Documentation available.
/// </summary>
- /// <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)
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String CallbackAsString
{
- User user = new User();
- user.EmailAddressVerified = emailAddressVerified;
- user.CreatedOnUtc = createdOnUtc;
- user.UserId = userId;
- return user;
+ get
+ {
+ return _CallbackAsString;
+ }
+ set
+ {
+ OnCallbackAsStringChanging(value);
+ ReportPropertyChanging("CallbackAsString");
+ _CallbackAsString = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("CallbackAsString");
+ OnCallbackAsStringChanged();
+ }
}
+ private global::System.String _CallbackAsString;
+ partial void OnCallbackAsStringChanging(global::System.String value);
+ partial void OnCallbackAsStringChanged();
+
/// <summary>
- /// There are no comments for property FirstName in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [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
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String Name
{
get
{
- return this._FirstName;
+ return _Name;
}
set
{
- this.OnFirstNameChanging(value);
- this.ReportPropertyChanging("FirstName");
- this._FirstName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("FirstName");
- this.OnFirstNameChanged();
+ OnNameChanging(value);
+ ReportPropertyChanging("Name");
+ _Name = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("Name");
+ OnNameChanged();
}
}
- [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();
+ private global::System.String _Name;
+ partial void OnNameChanging(global::System.String value);
+ partial void OnNameChanged();
+
/// <summary>
- /// There are no comments for property LastName in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [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
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 ClientType
{
get
{
- return this._LastName;
+ return _ClientType;
}
set
{
- this.OnLastNameChanging(value);
- this.ReportPropertyChanging("LastName");
- this._LastName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("LastName");
- this.OnLastNameChanged();
+ OnClientTypeChanging(value);
+ ReportPropertyChanging("ClientType");
+ _ClientType = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("ClientType");
+ OnClientTypeChanged();
}
}
- [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();
+ private global::System.Int32 _ClientType;
+ partial void OnClientTypeChanging(global::System.Int32 value);
+ partial void OnClientTypeChanged();
+
+ #endregion
+
+
+ #region Navigation Properties
+
/// <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.
+ /// No Metadata Documentation available.
/// </summary>
- [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
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer", "ClientAuthorization")]
+ public EntityCollection<ClientAuthorization> ClientAuthorizations
{
get
{
- return this._EmailAddress;
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ClientAuthorization>("DatabaseModel.FK_IssuedToken_Consumer", "ClientAuthorization");
}
set
{
- this.OnEmailAddressChanging(value);
- this.ReportPropertyChanging("EmailAddress");
- this._EmailAddress = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("EmailAddress");
- this.OnEmailAddressChanged();
+ if ((value != null))
+ {
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ClientAuthorization>("DatabaseModel.FK_IssuedToken_Consumer", "ClientAuthorization", value);
+ }
}
}
- [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();
+
+ #endregion
+
+ }
+
+ /// <summary>
+ /// No Metadata Documentation available.
+ /// </summary>
+ [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="ClientAuthorization")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ public partial class ClientAuthorization : EntityObject
+ {
+ #region Factory Method
+
/// <summary>
- /// A value indicating whether the email address has been verified as actually owned by this user.
+ /// Create a new ClientAuthorization object.
+ /// </summary>
+ /// <param name="authorizationId">Initial value of the AuthorizationId property.</param>
+ /// <param name="createdOnUtc">Initial value of the CreatedOnUtc property.</param>
+ public static ClientAuthorization CreateClientAuthorization(global::System.Int32 authorizationId, global::System.DateTime createdOnUtc)
+ {
+ ClientAuthorization clientAuthorization = new ClientAuthorization();
+ clientAuthorization.AuthorizationId = authorizationId;
+ clientAuthorization.CreatedOnUtc = createdOnUtc;
+ return clientAuthorization;
+ }
+
+ #endregion
+
+ #region Primitive Properties
+
+ /// <summary>
+ /// No Metadata Documentation available.
/// </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")]
- public bool EmailAddressVerified
+ [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 AuthorizationId
{
get
{
- return this._EmailAddressVerified;
+ return _AuthorizationId;
}
set
{
- this.OnEmailAddressVerifiedChanging(value);
- this.ReportPropertyChanging("EmailAddressVerified");
- this._EmailAddressVerified = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("EmailAddressVerified");
- this.OnEmailAddressVerifiedChanged();
+ if (_AuthorizationId != value)
+ {
+ OnAuthorizationIdChanging(value);
+ ReportPropertyChanging("AuthorizationId");
+ _AuthorizationId = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("AuthorizationId");
+ OnAuthorizationIdChanged();
+ }
}
}
- [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();
+ private global::System.Int32 _AuthorizationId;
+ partial void OnAuthorizationIdChanging(global::System.Int32 value);
+ partial void OnAuthorizationIdChanged();
+
/// <summary>
- /// There are no comments for property CreatedOnUtc in the schema.
+ /// No Metadata Documentation available.
/// </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")]
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
public global::System.DateTime CreatedOnUtc
{
get
{
- return this._CreatedOnUtc;
+ return _CreatedOnUtc;
}
- private set
+ set
{
- this.OnCreatedOnUtcChanging(value);
- this.ReportPropertyChanging("CreatedOnUtc");
- this._CreatedOnUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("CreatedOnUtc");
- this.OnCreatedOnUtcChanged();
+ OnCreatedOnUtcChanging(value);
+ ReportPropertyChanging("CreatedOnUtc");
+ _CreatedOnUtc = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("CreatedOnUtc");
+ 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>
- /// There are no comments for property UserId in the schema.
+ /// No Metadata Documentation available.
/// </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 UserId
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public Nullable<global::System.DateTime> ExpirationDateUtc
{
get
{
- return this._UserId;
+ return _ExpirationDateUtc;
}
- private set
+ set
{
- this.OnUserIdChanging(value);
- this.ReportPropertyChanging("UserId");
- this._UserId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("UserId");
- this.OnUserIdChanged();
+ OnExpirationDateUtcChanging(value);
+ ReportPropertyChanging("ExpirationDateUtc");
+ _ExpirationDateUtc = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("ExpirationDateUtc");
+ OnExpirationDateUtcChanged();
}
}
- [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();
+ private Nullable<global::System.DateTime> _ExpirationDateUtc;
+ partial void OnExpirationDateUtcChanging(Nullable<global::System.DateTime> value);
+ partial void OnExpirationDateUtcChanged();
+
/// <summary>
- /// There are no comments for Roles in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [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
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String Scope
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<Role>("DatabaseModel.UserRole", "Role");
+ return _Scope;
}
set
{
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<Role>("DatabaseModel.UserRole", "Role", value);
- }
+ OnScopeChanging(value);
+ ReportPropertyChanging("Scope");
+ _Scope = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("Scope");
+ OnScopeChanged();
+ }
+ }
+ private global::System.String _Scope;
+ partial void OnScopeChanging(global::System.String value);
+ partial void OnScopeChanged();
+
+ #endregion
+
+
+ #region Navigation Properties
+
+ /// <summary>
+ /// No Metadata Documentation available.
+ /// </summary>
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer", "Client")]
+ public Client Client
+ {
+ get
+ {
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Client>("DatabaseModel.FK_IssuedToken_Consumer", "Client").Value;
+ }
+ set
+ {
+ ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Client>("DatabaseModel.FK_IssuedToken_Consumer", "Client").Value = value;
}
}
/// <summary>
- /// There are no comments for AuthenticationTokens in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [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
+ [BrowsableAttribute(false)]
+ [DataMemberAttribute()]
+ public EntityReference<Client> ClientReference
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<AuthenticationToken>("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken");
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Client>("DatabaseModel.FK_IssuedToken_Consumer", "Client");
}
set
{
if ((value != null))
{
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<AuthenticationToken>("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken", value);
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Client>("DatabaseModel.FK_IssuedToken_Consumer", "Client", value);
}
}
}
+
/// <summary>
- /// There are no comments for ClientAuthorizations in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_User", "ClientAuthorization")]
- [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<ClientAuthorization> ClientAuthorizations
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_User", "User")]
+ public User User
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<ClientAuthorization>("DatabaseModel.FK_IssuedToken_User", "ClientAuthorization");
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User", "User").Value;
+ }
+ set
+ {
+ ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User", "User").Value = value;
+ }
+ }
+ /// <summary>
+ /// No Metadata Documentation available.
+ /// </summary>
+ [BrowsableAttribute(false)]
+ [DataMemberAttribute()]
+ public EntityReference<User> UserReference
+ {
+ get
+ {
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User", "User");
}
set
{
if ((value != null))
{
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<ClientAuthorization>("DatabaseModel.FK_IssuedToken_User", "ClientAuthorization", value);
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<User>("DatabaseModel.FK_IssuedToken_User", "User", value);
}
}
}
+
+ #endregion
+
}
+
/// <summary>
- /// There are no comments for DatabaseModel.Nonce in the schema.
+ /// No Metadata Documentation available.
/// </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
+ [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Nonce")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ public partial class Nonce : EntityObject
{
+ #region Factory Method
+
/// <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)
+ /// <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;
@@ -843,730 +938,661 @@ namespace RelyingPartyLogic
nonce.ExpiresUtc = expiresUtc;
return nonce;
}
+
+ #endregion
+
+ #region Primitive Properties
+
/// <summary>
- /// There are no comments for property NonceId in the schema.
+ /// No Metadata Documentation available.
/// </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 NonceId
+ [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 NonceId
{
get
{
- return this._NonceId;
+ return _NonceId;
}
set
{
- this.OnNonceIdChanging(value);
- this.ReportPropertyChanging("NonceId");
- this._NonceId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("NonceId");
- this.OnNonceIdChanged();
+ if (_NonceId != value)
+ {
+ OnNonceIdChanging(value);
+ ReportPropertyChanging("NonceId");
+ _NonceId = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("NonceId");
+ OnNonceIdChanged();
+ }
}
}
- [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")]
+ private global::System.Int32 _NonceId;
+ partial void OnNonceIdChanging(global::System.Int32 value);
partial void OnNonceIdChanged();
+
/// <summary>
/// Gets or sets the Provider Endpoint URL the nonce came from.
/// </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")]
- public string Context
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String Context
{
get
{
- return this._Context;
+ return _Context;
}
set
{
- this.OnContextChanging(value);
- this.ReportPropertyChanging("Context");
- this._Context = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("Context");
- this.OnContextChanged();
+ OnContextChanging(value);
+ ReportPropertyChanging("Context");
+ _Context = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("Context");
+ OnContextChanged();
}
}
- [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")]
+ private global::System.String _Context;
+ partial void OnContextChanging(global::System.String value);
partial void OnContextChanged();
+
/// <summary>
- /// There are no comments for property Code in the schema.
+ /// No Metadata Documentation available.
/// </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")]
- public string Code
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String Code
{
get
{
- return this._Code;
+ return _Code;
}
set
{
- this.OnCodeChanging(value);
- this.ReportPropertyChanging("Code");
- this._Code = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("Code");
- this.OnCodeChanged();
+ OnCodeChanging(value);
+ ReportPropertyChanging("Code");
+ _Code = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("Code");
+ OnCodeChanged();
}
}
- [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")]
+ private global::System.String _Code;
+ partial void OnCodeChanging(global::System.String value);
partial void OnCodeChanged();
+
/// <summary>
- /// There are no comments for property IssuedUtc in the schema.
+ /// No Metadata Documentation available.
/// </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")]
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
public global::System.DateTime IssuedUtc
{
get
{
- return this._IssuedUtc;
+ return _IssuedUtc;
}
set
{
- this.OnIssuedUtcChanging(value);
- this.ReportPropertyChanging("IssuedUtc");
- this._IssuedUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("IssuedUtc");
- this.OnIssuedUtcChanged();
+ OnIssuedUtcChanging(value);
+ ReportPropertyChanging("IssuedUtc");
+ _IssuedUtc = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("IssuedUtc");
+ OnIssuedUtcChanged();
}
}
- [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>
- /// There are no comments for property ExpiresUtc in the schema.
+ /// No Metadata Documentation available.
/// </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")]
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
public global::System.DateTime ExpiresUtc
{
get
{
- return this._ExpiresUtc;
+ return _ExpiresUtc;
}
set
{
- this.OnExpiresUtcChanging(value);
- this.ReportPropertyChanging("ExpiresUtc");
- this._ExpiresUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("ExpiresUtc");
- this.OnExpiresUtcChanged();
+ OnExpiresUtcChanging(value);
+ ReportPropertyChanging("ExpiresUtc");
+ _ExpiresUtc = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("ExpiresUtc");
+ OnExpiresUtcChanged();
}
}
- [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();
+
+ #endregion
+
+
}
+
/// <summary>
- /// There are no comments for DatabaseModel.Client in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- /// <KeyProperties>
- /// ClientId
- /// </KeyProperties>
- [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Client")]
- [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
- [global::System.Serializable()]
- public partial class Client : global::System.Data.Objects.DataClasses.EntityObject
+ [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Role")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ public partial class Role : EntityObject
{
+ #region Factory Method
+
/// <summary>
- /// Create a new Client object.
- /// </summary>
- /// <param name="clientId">Initial value of ClientId.</param>
- /// <param name="clientIdentifier">Initial value of ClientIdentifier.</param>
- /// <param name="name">Initial value of Name.</param>
- /// <param name="clientType">Initial value of ClientType.</param>
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- public static Client CreateClient(int clientId, string clientIdentifier, string name, int clientType)
- {
- Client client = new Client();
- client.ClientId = clientId;
- client.ClientIdentifier = clientIdentifier;
- client.Name = name;
- client.ClientType = clientType;
- return client;
- }
- /// <summary>
- /// There are no comments for property ClientId in the schema.
+ /// Create a new Role object.
/// </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 ClientId
+ /// <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)
{
- get
- {
- return this._ClientId;
- }
- set
- {
- this.OnClientIdChanging(value);
- this.ReportPropertyChanging("ClientId");
- this._ClientId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("ClientId");
- this.OnClientIdChanged();
- }
+ Role role = new Role();
+ role.Name = name;
+ role.RoleId = roleId;
+ return role;
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private int _ClientId;
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnClientIdChanging(int value);
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnClientIdChanged();
+
+ #endregion
+
+ #region Primitive Properties
+
/// <summary>
- /// There are no comments for property ClientIdentifier in the schema.
+ /// No Metadata Documentation available.
/// </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")]
- public string ClientIdentifier
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String Name
{
get
{
- return this._ClientIdentifier;
+ return _Name;
}
set
{
- this.OnClientIdentifierChanging(value);
- this.ReportPropertyChanging("ClientIdentifier");
- this._ClientIdentifier = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("ClientIdentifier");
- this.OnClientIdentifierChanged();
+ OnNameChanging(value);
+ ReportPropertyChanging("Name");
+ _Name = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("Name");
+ OnNameChanged();
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private string _ClientIdentifier;
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnClientIdentifierChanging(string value);
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnClientIdentifierChanged();
+ private global::System.String _Name;
+ partial void OnNameChanging(global::System.String value);
+ partial void OnNameChanged();
+
/// <summary>
- /// There are no comments for property ClientSecret in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [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 ClientSecret
+ [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 RoleId
{
get
{
- return this._ClientSecret;
+ return _RoleId;
}
- set
+ private set
{
- this.OnClientSecretChanging(value);
- this.ReportPropertyChanging("ClientSecret");
- this._ClientSecret = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("ClientSecret");
- this.OnClientSecretChanged();
+ if (_RoleId != value)
+ {
+ OnRoleIdChanging(value);
+ ReportPropertyChanging("RoleId");
+ _RoleId = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("RoleId");
+ OnRoleIdChanged();
+ }
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private string _ClientSecret;
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnClientSecretChanging(string value);
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnClientSecretChanged();
+ private global::System.Int32 _RoleId;
+ partial void OnRoleIdChanging(global::System.Int32 value);
+ partial void OnRoleIdChanged();
+
+ #endregion
+
+
+ #region Navigation Properties
+
/// <summary>
- /// There are no comments for property CallbackAsString in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [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
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "UserRole", "User")]
+ public EntityCollection<User> Users
{
get
{
- return this._CallbackAsString;
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<User>("DatabaseModel.UserRole", "User");
}
set
{
- this.OnCallbackAsStringChanging(value);
- this.ReportPropertyChanging("CallbackAsString");
- this._CallbackAsString = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("CallbackAsString");
- this.OnCallbackAsStringChanged();
+ if ((value != null))
+ {
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<User>("DatabaseModel.UserRole", "User", value);
+ }
}
}
- [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();
+
+ #endregion
+
+ }
+
+ /// <summary>
+ /// No Metadata Documentation available.
+ /// </summary>
+ [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="SymmetricCryptoKey")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ public partial class SymmetricCryptoKey : EntityObject
+ {
+ #region Factory Method
+
/// <summary>
- /// There are no comments for property Name in the schema.
+ /// Create a new SymmetricCryptoKey object.
/// </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")]
- public string Name
+ /// <param name="cryptoKeyId">Initial value of the CryptoKeyId property.</param>
+ /// <param name="bucket">Initial value of the Bucket property.</param>
+ /// <param name="handle">Initial value of the Handle property.</param>
+ /// <param name="expirationUtc">Initial value of the ExpirationUtc property.</param>
+ /// <param name="secret">Initial value of the Secret property.</param>
+ public static SymmetricCryptoKey CreateSymmetricCryptoKey(global::System.Int32 cryptoKeyId, global::System.String bucket, global::System.String handle, global::System.DateTime expirationUtc, global::System.Byte[] secret)
{
- get
- {
- return this._Name;
- }
- set
- {
- this.OnNameChanging(value);
- this.ReportPropertyChanging("Name");
- this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("Name");
- this.OnNameChanged();
- }
+ SymmetricCryptoKey symmetricCryptoKey = new SymmetricCryptoKey();
+ symmetricCryptoKey.CryptoKeyId = cryptoKeyId;
+ symmetricCryptoKey.Bucket = bucket;
+ symmetricCryptoKey.Handle = handle;
+ symmetricCryptoKey.ExpirationUtc = expirationUtc;
+ symmetricCryptoKey.Secret = secret;
+ return symmetricCryptoKey;
}
- [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();
+
+ #endregion
+
+ #region Primitive Properties
+
/// <summary>
- /// There are no comments for property ClientType in the schema.
+ /// No Metadata Documentation available.
/// </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")]
- public int ClientType
+ [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 CryptoKeyId
{
get
{
- return this._ClientType;
+ return _CryptoKeyId;
}
set
{
- this.OnClientTypeChanging(value);
- this.ReportPropertyChanging("ClientType");
- this._ClientType = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("ClientType");
- this.OnClientTypeChanged();
+ if (_CryptoKeyId != value)
+ {
+ OnCryptoKeyIdChanging(value);
+ ReportPropertyChanging("CryptoKeyId");
+ _CryptoKeyId = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("CryptoKeyId");
+ OnCryptoKeyIdChanged();
+ }
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private int _ClientType;
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnClientTypeChanging(int value);
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnClientTypeChanged();
+ private global::System.Int32 _CryptoKeyId;
+ partial void OnCryptoKeyIdChanging(global::System.Int32 value);
+ partial void OnCryptoKeyIdChanged();
+
/// <summary>
- /// There are no comments for ClientAuthorizations in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer", "ClientAuthorization")]
- [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<ClientAuthorization> ClientAuthorizations
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String Bucket
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<ClientAuthorization>("DatabaseModel.FK_IssuedToken_Consumer", "ClientAuthorization");
+ return _Bucket;
}
set
{
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<ClientAuthorization>("DatabaseModel.FK_IssuedToken_Consumer", "ClientAuthorization", value);
- }
+ OnBucketChanging(value);
+ ReportPropertyChanging("Bucket");
+ _Bucket = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("Bucket");
+ OnBucketChanged();
}
}
- }
- /// <summary>
- /// There are no comments for DatabaseModel.ClientAuthorization in the schema.
- /// </summary>
- /// <KeyProperties>
- /// AuthorizationId
- /// </KeyProperties>
- [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="ClientAuthorization")]
- [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
- [global::System.Serializable()]
- public partial class ClientAuthorization : global::System.Data.Objects.DataClasses.EntityObject
- {
- /// <summary>
- /// Create a new ClientAuthorization object.
- /// </summary>
- /// <param name="authorizationId">Initial value of AuthorizationId.</param>
- /// <param name="createdOnUtc">Initial value of CreatedOnUtc.</param>
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- public static ClientAuthorization CreateClientAuthorization(int authorizationId, global::System.DateTime createdOnUtc)
- {
- ClientAuthorization clientAuthorization = new ClientAuthorization();
- clientAuthorization.AuthorizationId = authorizationId;
- clientAuthorization.CreatedOnUtc = createdOnUtc;
- return clientAuthorization;
- }
+ private global::System.String _Bucket;
+ partial void OnBucketChanging(global::System.String value);
+ partial void OnBucketChanged();
+
/// <summary>
- /// There are no comments for property AuthorizationId in the schema.
+ /// No Metadata Documentation available.
/// </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 AuthorizationId
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String Handle
{
get
{
- return this._AuthorizationId;
+ return _Handle;
}
set
{
- this.OnAuthorizationIdChanging(value);
- this.ReportPropertyChanging("AuthorizationId");
- this._AuthorizationId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("AuthorizationId");
- this.OnAuthorizationIdChanged();
+ OnHandleChanging(value);
+ ReportPropertyChanging("Handle");
+ _Handle = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("Handle");
+ OnHandleChanged();
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private int _AuthorizationId;
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnAuthorizationIdChanging(int value);
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnAuthorizationIdChanged();
+ private global::System.String _Handle;
+ partial void OnHandleChanging(global::System.String value);
+ partial void OnHandleChanged();
+
/// <summary>
- /// There are no comments for property CreatedOnUtc in the schema.
+ /// No Metadata Documentation available.
/// </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")]
- public global::System.DateTime CreatedOnUtc
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.DateTime ExpirationUtc
{
get
{
- return this._CreatedOnUtc;
+ return _ExpirationUtc;
}
set
{
- this.OnCreatedOnUtcChanging(value);
- this.ReportPropertyChanging("CreatedOnUtc");
- this._CreatedOnUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("CreatedOnUtc");
- this.OnCreatedOnUtcChanged();
+ OnExpirationUtcChanging(value);
+ ReportPropertyChanging("ExpirationUtc");
+ _ExpirationUtc = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("ExpirationUtc");
+ OnExpirationUtcChanged();
}
}
- [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();
+ private global::System.DateTime _ExpirationUtc;
+ partial void OnExpirationUtcChanging(global::System.DateTime value);
+ partial void OnExpirationUtcChanged();
+
/// <summary>
- /// There are no comments for property ExpirationDateUtc in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [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
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Byte[] Secret
{
get
{
- return this._ExpirationDateUtc;
+ return StructuralObject.GetValidValue(_Secret);
}
set
{
- this.OnExpirationDateUtcChanging(value);
- this.ReportPropertyChanging("ExpirationDateUtc");
- this._ExpirationDateUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("ExpirationDateUtc");
- this.OnExpirationDateUtcChanged();
+ OnSecretChanging(value);
+ ReportPropertyChanging("Secret");
+ _Secret = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("Secret");
+ OnSecretChanged();
}
}
- [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();
+ private global::System.Byte[] _Secret;
+ partial void OnSecretChanging(global::System.Byte[] value);
+ partial void OnSecretChanged();
+
+ #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>
- /// There are no comments for property Scope in the schema.
+ /// Create a new User object.
/// </summary>
- [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
+ /// <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)
{
- get
- {
- return this._Scope;
- }
- set
- {
- this.OnScopeChanging(value);
- this.ReportPropertyChanging("Scope");
- this._Scope = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("Scope");
- this.OnScopeChanged();
- }
+ User user = new User();
+ user.EmailAddressVerified = emailAddressVerified;
+ user.CreatedOnUtc = createdOnUtc;
+ user.UserId = userId;
+ return user;
}
- [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();
+
+ #endregion
+
+ #region Primitive Properties
+
/// <summary>
- /// There are no comments for Client in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer", "Client")]
- [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 Client Client
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String FirstName
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Client>("DatabaseModel.FK_IssuedToken_Consumer", "Client").Value;
+ return _FirstName;
}
set
{
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Client>("DatabaseModel.FK_IssuedToken_Consumer", "Client").Value = value;
+ OnFirstNameChanging(value);
+ ReportPropertyChanging("FirstName");
+ _FirstName = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("FirstName");
+ OnFirstNameChanged();
}
}
+ private global::System.String _FirstName;
+ partial void OnFirstNameChanging(global::System.String value);
+ partial void OnFirstNameChanged();
+
/// <summary>
- /// There are no comments for Client in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [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<Client> ClientReference
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String LastName
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Client>("DatabaseModel.FK_IssuedToken_Consumer", "Client");
+ return _LastName;
}
set
{
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<Client>("DatabaseModel.FK_IssuedToken_Consumer", "Client", value);
- }
+ OnLastNameChanging(value);
+ ReportPropertyChanging("LastName");
+ _LastName = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("LastName");
+ OnLastNameChanged();
}
}
+ private global::System.String _LastName;
+ partial void OnLastNameChanging(global::System.String value);
+ partial void OnLastNameChanged();
+
/// <summary>
- /// There are no comments for User in the schema.
+ /// 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>
- [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_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
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String EmailAddress
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User", "User").Value;
+ return _EmailAddress;
}
set
{
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User", "User").Value = value;
+ OnEmailAddressChanging(value);
+ ReportPropertyChanging("EmailAddress");
+ _EmailAddress = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("EmailAddress");
+ OnEmailAddressChanged();
}
}
+ private global::System.String _EmailAddress;
+ partial void OnEmailAddressChanging(global::System.String value);
+ partial void OnEmailAddressChanged();
+
/// <summary>
- /// There are no comments for User in the schema.
+ /// A value indicating whether the email address has been verified as actually owned by this user.
/// </summary>
- [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
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Boolean EmailAddressVerified
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User", "User");
+ return _EmailAddressVerified;
}
set
{
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<User>("DatabaseModel.FK_IssuedToken_User", "User", value);
- }
+ OnEmailAddressVerifiedChanging(value);
+ ReportPropertyChanging("EmailAddressVerified");
+ _EmailAddressVerified = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("EmailAddressVerified");
+ OnEmailAddressVerifiedChanged();
}
}
- }
- /// <summary>
- /// There are no comments for DatabaseModel.SymmetricCryptoKey in the schema.
- /// </summary>
- /// <KeyProperties>
- /// CryptoKeyId
- /// </KeyProperties>
- [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="SymmetricCryptoKey")]
- [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
- [global::System.Serializable()]
- public partial class SymmetricCryptoKey : global::System.Data.Objects.DataClasses.EntityObject
- {
- /// <summary>
- /// Create a new SymmetricCryptoKey object.
- /// </summary>
- /// <param name="cryptoKeyId">Initial value of CryptoKeyId.</param>
- /// <param name="bucket">Initial value of Bucket.</param>
- /// <param name="handle">Initial value of Handle.</param>
- /// <param name="expirationUtc">Initial value of ExpirationUtc.</param>
- /// <param name="secret">Initial value of Secret.</param>
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- public static SymmetricCryptoKey CreateSymmetricCryptoKey(int cryptoKeyId, string bucket, string handle, global::System.DateTime expirationUtc, byte[] secret)
- {
- SymmetricCryptoKey symmetricCryptoKey = new SymmetricCryptoKey();
- symmetricCryptoKey.CryptoKeyId = cryptoKeyId;
- symmetricCryptoKey.Bucket = bucket;
- symmetricCryptoKey.Handle = handle;
- symmetricCryptoKey.ExpirationUtc = expirationUtc;
- symmetricCryptoKey.Secret = secret;
- return symmetricCryptoKey;
- }
+ private global::System.Boolean _EmailAddressVerified;
+ partial void OnEmailAddressVerifiedChanging(global::System.Boolean value);
+ partial void OnEmailAddressVerifiedChanged();
+
/// <summary>
- /// There are no comments for property CryptoKeyId in the schema.
+ /// No Metadata Documentation available.
/// </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 CryptoKeyId
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.DateTime CreatedOnUtc
{
get
{
- return this._CryptoKeyId;
+ return _CreatedOnUtc;
}
- set
+ private set
{
- this.OnCryptoKeyIdChanging(value);
- this.ReportPropertyChanging("CryptoKeyId");
- this._CryptoKeyId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("CryptoKeyId");
- this.OnCryptoKeyIdChanged();
+ OnCreatedOnUtcChanging(value);
+ ReportPropertyChanging("CreatedOnUtc");
+ _CreatedOnUtc = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("CreatedOnUtc");
+ OnCreatedOnUtcChanged();
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private int _CryptoKeyId;
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnCryptoKeyIdChanging(int value);
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnCryptoKeyIdChanged();
+ private global::System.DateTime _CreatedOnUtc;
+ partial void OnCreatedOnUtcChanging(global::System.DateTime value);
+ partial void OnCreatedOnUtcChanged();
+
/// <summary>
- /// There are no comments for property Bucket in the schema.
+ /// No Metadata Documentation available.
/// </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")]
- public string Bucket
+ [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 UserId
{
get
{
- return this._Bucket;
+ return _UserId;
}
- set
+ private set
{
- this.OnBucketChanging(value);
- this.ReportPropertyChanging("Bucket");
- this._Bucket = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("Bucket");
- this.OnBucketChanged();
+ if (_UserId != value)
+ {
+ OnUserIdChanging(value);
+ ReportPropertyChanging("UserId");
+ _UserId = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("UserId");
+ OnUserIdChanged();
+ }
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private string _Bucket;
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnBucketChanging(string value);
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnBucketChanged();
+ private global::System.Int32 _UserId;
+ partial void OnUserIdChanging(global::System.Int32 value);
+ partial void OnUserIdChanged();
+
+ #endregion
+
+
+ #region Navigation Properties
+
/// <summary>
- /// There are no comments for property Handle in the schema.
+ /// No Metadata Documentation available.
/// </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")]
- public string Handle
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "UserRole", "Role")]
+ public EntityCollection<Role> Roles
{
get
{
- return this._Handle;
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Role>("DatabaseModel.UserRole", "Role");
}
set
{
- this.OnHandleChanging(value);
- this.ReportPropertyChanging("Handle");
- this._Handle = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("Handle");
- this.OnHandleChanged();
+ if ((value != null))
+ {
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Role>("DatabaseModel.UserRole", "Role", value);
+ }
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private string _Handle;
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnHandleChanging(string value);
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnHandleChanged();
+
/// <summary>
- /// There are no comments for property ExpirationUtc in the schema.
+ /// No Metadata Documentation available.
/// </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")]
- public global::System.DateTime ExpirationUtc
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_AuthenticationToken_User", "AuthenticationToken")]
+ public EntityCollection<AuthenticationToken> AuthenticationTokens
{
get
{
- return this._ExpirationUtc;
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AuthenticationToken>("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken");
}
set
{
- this.OnExpirationUtcChanging(value);
- this.ReportPropertyChanging("ExpirationUtc");
- this._ExpirationUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("ExpirationUtc");
- this.OnExpirationUtcChanged();
+ if ((value != null))
+ {
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AuthenticationToken>("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken", value);
+ }
}
}
- [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>
- /// There are no comments for property Secret in the schema.
+ /// No Metadata Documentation available.
/// </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")]
- public byte[] Secret
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_User", "ClientAuthorization")]
+ public EntityCollection<ClientAuthorization> ClientAuthorizations
{
get
{
- return global::System.Data.Objects.DataClasses.StructuralObject.GetValidValue(this._Secret);
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ClientAuthorization>("DatabaseModel.FK_IssuedToken_User", "ClientAuthorization");
}
set
{
- this.OnSecretChanging(value);
- this.ReportPropertyChanging("Secret");
- this._Secret = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("Secret");
- this.OnSecretChanged();
+ if ((value != null))
+ {
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ClientAuthorization>("DatabaseModel.FK_IssuedToken_User", "ClientAuthorization", value);
+ }
}
}
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- private byte[] _Secret;
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnSecretChanging(byte[] value);
- [global::System.CodeDom.Compiler.GeneratedCode("System.Data.Entity.Design.EntityClassGenerator", "4.0.0.0")]
- partial void OnSecretChanged();
+
+ #endregion
+
}
+
+ #endregion
+
+
}