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.cs2022
1 files changed, 1108 insertions, 914 deletions
diff --git a/projecttemplates/RelyingPartyLogic/Model.Designer.cs b/projecttemplates/RelyingPartyLogic/Model.Designer.cs
index 93753a2..814920e 100644
--- a/projecttemplates/RelyingPartyLogic/Model.Designer.cs
+++ b/projecttemplates/RelyingPartyLogic/Model.Designer.cs
@@ -1,229 +1,284 @@
//------------------------------------------------------------------------------
// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:2.0.50727.4927
+// 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_Consumer1", "Consumer", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.Consumer), "IssuedToken", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.IssuedToken))]
-[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "FK_IssuedToken_User1", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(RelyingPartyLogic.User), "IssuedToken", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.IssuedToken))]
+using System;
+using System.Data.Objects;
+using System.Data.Objects.DataClasses;
+using System.Data.EntityClient;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using System.Runtime.Serialization;
+
+[assembly: EdmSchemaAttribute()]
+#region EDM Relationship Metadata
+
+[assembly: EdmRelationshipAttribute("DatabaseModel", "UserRole", "Role", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.Role), "User", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.User))]
+[assembly: EdmRelationshipAttribute("DatabaseModel", "FK_AuthenticationToken_User", "User", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.User), "AuthenticationToken", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.AuthenticationToken))]
+[assembly: EdmRelationshipAttribute("DatabaseModel", "FK_IssuedToken_Consumer1", "Consumer", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.Consumer), "IssuedToken", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.IssuedToken))]
+[assembly: EdmRelationshipAttribute("DatabaseModel", "FK_IssuedToken_User1", "User", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(RelyingPartyLogic.User), "IssuedToken", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.IssuedToken))]
+
+#endregion
-// Original file name:
-// Generation date: 12/9/2009 8:19:16 AM
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>
- 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;
}
}
- 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>
- 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;
}
}
- 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>
- 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;
}
}
- private global::System.Data.Objects.ObjectQuery<AuthenticationToken> _AuthenticationTokens;
+ private ObjectSet<AuthenticationToken> _AuthenticationTokens;
+
/// <summary>
- /// There are no comments for Consumers in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- public global::System.Data.Objects.ObjectQuery<Consumer> Consumers
+ public ObjectSet<Consumer> Consumers
{
get
{
- if ((this._Consumers == null))
+ if ((_Consumers == null))
{
- this._Consumers = base.CreateQuery<Consumer>("[Consumers]");
+ _Consumers = base.CreateObjectSet<Consumer>("Consumers");
}
- return this._Consumers;
+ return _Consumers;
}
}
- private global::System.Data.Objects.ObjectQuery<Consumer> _Consumers;
+ private ObjectSet<Consumer> _Consumers;
+
/// <summary>
- /// There are no comments for IssuedTokens in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- public global::System.Data.Objects.ObjectQuery<IssuedToken> IssuedTokens
+ public ObjectSet<IssuedToken> IssuedTokens
{
get
{
- if ((this._IssuedTokens == null))
+ if ((_IssuedTokens == null))
{
- this._IssuedTokens = base.CreateQuery<IssuedToken>("[IssuedTokens]");
+ _IssuedTokens = base.CreateObjectSet<IssuedToken>("IssuedTokens");
}
- return this._IssuedTokens;
+ return _IssuedTokens;
}
}
- private global::System.Data.Objects.ObjectQuery<IssuedToken> _IssuedTokens;
+ private ObjectSet<IssuedToken> _IssuedTokens;
+
/// <summary>
- /// There are no comments for Nonces in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- 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;
}
}
- private global::System.Data.Objects.ObjectQuery<Nonce> _Nonces;
+ private ObjectSet<Nonce> _Nonces;
+
/// <summary>
- /// There are no comments for OpenIdAssociations in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- public global::System.Data.Objects.ObjectQuery<OpenIdAssociation> OpenIdAssociations
+ public ObjectSet<OpenIdAssociation> OpenIdAssociations
{
get
{
- if ((this._OpenIdAssociations == null))
+ if ((_OpenIdAssociations == null))
{
- this._OpenIdAssociations = base.CreateQuery<OpenIdAssociation>("[OpenIdAssociations]");
+ _OpenIdAssociations = base.CreateObjectSet<OpenIdAssociation>("OpenIdAssociations");
}
- return this._OpenIdAssociations;
+ return _OpenIdAssociations;
}
}
- private global::System.Data.Objects.ObjectQuery<OpenIdAssociation> _OpenIdAssociations;
+ private ObjectSet<OpenIdAssociation> _OpenIdAssociations;
+
+ #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>
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>
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>
public void AddToAuthenticationTokens(AuthenticationToken authenticationToken)
{
base.AddObject("AuthenticationTokens", authenticationToken);
}
+
/// <summary>
- /// There are no comments for Consumers in the schema.
+ /// Deprecated Method for adding a new object to the Consumers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
/// </summary>
public void AddToConsumers(Consumer consumer)
{
base.AddObject("Consumers", consumer);
}
+
/// <summary>
- /// There are no comments for IssuedTokens in the schema.
+ /// Deprecated Method for adding a new object to the IssuedTokens EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
/// </summary>
public void AddToIssuedTokens(IssuedToken issuedToken)
{
base.AddObject("IssuedTokens", issuedToken);
}
+
/// <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>
public void AddToNonces(Nonce nonce)
{
base.AddObject("Nonces", nonce);
}
+
/// <summary>
- /// There are no comments for OpenIdAssociations in the schema.
+ /// Deprecated Method for adding a new object to the OpenIdAssociations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
/// </summary>
public void AddToOpenIdAssociations(OpenIdAssociation openIdAssociation)
{
base.AddObject("OpenIdAssociations", openIdAssociation);
}
+
+ #endregion
+ #region Function Imports
+
+ /// <summary>
+ /// No Metadata Documentation available.
+ /// </summary>
+ public int ClearExpiredNonces()
+ {
+ return base.ExecuteFunction("ClearExpiredNonces");
+ }
+
+ #endregion
}
+
+
+ #endregion
+
+ #region Entities
+
/// <summary>
- /// 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>
- 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;
@@ -233,1395 +288,1534 @@ 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()]
- 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();
}
}
- private string _ClaimedIdentifier;
- partial void OnClaimedIdentifierChanging(string value);
+ 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()]
- 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();
}
}
- private string _FriendlyIdentifier;
- partial void OnFriendlyIdentifierChanging(string value);
+ 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()]
+ [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();
}
}
private global::System.DateTime _CreatedOnUtc;
partial void OnCreatedOnUtcChanging(global::System.DateTime value);
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()]
+ [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();
}
}
private global::System.DateTime _LastUsedUtc;
partial void OnLastUsedUtcChanging(global::System.DateTime value);
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()]
- 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();
}
}
- private int _UsageCount;
- partial void OnUsageCountChanging(int value);
+ 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()]
- 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();
+ }
}
}
- private int _AuthenticationTokenId;
- partial void OnAuthenticationTokenIdChanging(int value);
+ 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.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.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="Consumer")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ public partial class Consumer : EntityObject
{
+ #region Factory Method
+
/// <summary>
- /// Create a new Role object.
+ /// Create a new Consumer object.
/// </summary>
- /// <param name="name">Initial value of Name.</param>
- /// <param name="roleId">Initial value of RoleId.</param>
- public static Role CreateRole(string name, int roleId)
+ /// <param name="consumerKey">Initial value of the ConsumerKey property.</param>
+ /// <param name="verificationCodeLength">Initial value of the VerificationCodeLength property.</param>
+ /// <param name="consumerId">Initial value of the ConsumerId property.</param>
+ public static Consumer CreateConsumer(global::System.String consumerKey, global::System.Int32 verificationCodeLength, global::System.Int32 consumerId)
{
- Role role = new Role();
- role.Name = name;
- role.RoleId = roleId;
- return role;
+ Consumer consumer = new Consumer();
+ consumer.ConsumerKey = consumerKey;
+ consumer.VerificationCodeLength = verificationCodeLength;
+ consumer.ConsumerId = consumerId;
+ return consumer;
}
+
+ #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()]
- public string Name
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String ConsumerKey
{
get
{
- return this._Name;
+ return _ConsumerKey;
}
set
{
- this.OnNameChanging(value);
- this.ReportPropertyChanging("Name");
- this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("Name");
- this.OnNameChanged();
+ OnConsumerKeyChanging(value);
+ ReportPropertyChanging("ConsumerKey");
+ _ConsumerKey = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("ConsumerKey");
+ OnConsumerKeyChanged();
}
}
- private string _Name;
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
+ private global::System.String _ConsumerKey;
+ partial void OnConsumerKeyChanging(global::System.String value);
+ partial void OnConsumerKeyChanged();
+
/// <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()]
- public int RoleId
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String ConsumerSecret
{
get
{
- return this._RoleId;
+ return _ConsumerSecret;
}
- private set
+ set
{
- this.OnRoleIdChanging(value);
- this.ReportPropertyChanging("RoleId");
- this._RoleId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("RoleId");
- this.OnRoleIdChanged();
+ OnConsumerSecretChanging(value);
+ ReportPropertyChanging("ConsumerSecret");
+ _ConsumerSecret = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("ConsumerSecret");
+ OnConsumerSecretChanged();
}
}
- private int _RoleId;
- partial void OnRoleIdChanging(int value);
- partial void OnRoleIdChanged();
+ private global::System.String _ConsumerSecret;
+ partial void OnConsumerSecretChanging(global::System.String value);
+ partial void OnConsumerSecretChanged();
+
/// <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.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()]
+ private global::System.Byte[] X509CertificateAsBinary
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<User>("DatabaseModel.UserRole", "User");
+ return StructuralObject.GetValidValue(_X509CertificateAsBinary);
}
set
{
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<User>("DatabaseModel.UserRole", "User", value);
- }
+ OnX509CertificateAsBinaryChanging(value);
+ ReportPropertyChanging("X509CertificateAsBinary");
+ _X509CertificateAsBinary = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("X509CertificateAsBinary");
+ OnX509CertificateAsBinaryChanged();
}
}
- }
- /// <summary>
- /// There are no comments for DatabaseModel.User in the schema.
- /// </summary>
- /// <KeyProperties>
- /// UserId
- /// </KeyProperties>
- [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="User")]
- [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
- [global::System.Serializable()]
- public partial class User : global::System.Data.Objects.DataClasses.EntityObject
- {
+ private global::System.Byte[] _X509CertificateAsBinary;
+ partial void OnX509CertificateAsBinaryChanging(global::System.Byte[] value);
+ partial void OnX509CertificateAsBinaryChanged();
+
/// <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>
- 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()]
- public string FirstName
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ private global::System.Int32 VerificationCodeFormatAsInt
{
get
{
- return this._FirstName;
+ return _VerificationCodeFormatAsInt;
}
set
{
- this.OnFirstNameChanging(value);
- this.ReportPropertyChanging("FirstName");
- this._FirstName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("FirstName");
- this.OnFirstNameChanged();
+ OnVerificationCodeFormatAsIntChanging(value);
+ ReportPropertyChanging("VerificationCodeFormatAsInt");
+ _VerificationCodeFormatAsInt = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("VerificationCodeFormatAsInt");
+ OnVerificationCodeFormatAsIntChanged();
}
}
- private string _FirstName;
- partial void OnFirstNameChanging(string value);
- partial void OnFirstNameChanged();
+ private global::System.Int32 _VerificationCodeFormatAsInt;
+ partial void OnVerificationCodeFormatAsIntChanging(global::System.Int32 value);
+ partial void OnVerificationCodeFormatAsIntChanged();
+
/// <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()]
- public string LastName
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 VerificationCodeLength
{
get
{
- return this._LastName;
+ return _VerificationCodeLength;
}
set
{
- this.OnLastNameChanging(value);
- this.ReportPropertyChanging("LastName");
- this._LastName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("LastName");
- this.OnLastNameChanged();
+ OnVerificationCodeLengthChanging(value);
+ ReportPropertyChanging("VerificationCodeLength");
+ _VerificationCodeLength = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("VerificationCodeLength");
+ OnVerificationCodeLengthChanged();
}
}
- private string _LastName;
- partial void OnLastNameChanging(string value);
- partial void OnLastNameChanged();
+ private global::System.Int32 _VerificationCodeLength;
+ partial void OnVerificationCodeLengthChanging(global::System.Int32 value);
+ partial void OnVerificationCodeLengthChanged();
+
/// <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()]
- public string EmailAddress
+ [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 ConsumerId
{
get
{
- return this._EmailAddress;
+ return _ConsumerId;
}
- set
+ private set
{
- this.OnEmailAddressChanging(value);
- this.ReportPropertyChanging("EmailAddress");
- this._EmailAddress = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("EmailAddress");
- this.OnEmailAddressChanged();
+ if (_ConsumerId != value)
+ {
+ OnConsumerIdChanging(value);
+ ReportPropertyChanging("ConsumerId");
+ _ConsumerId = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("ConsumerId");
+ OnConsumerIdChanged();
+ }
}
}
- private string _EmailAddress;
- partial void OnEmailAddressChanging(string value);
- partial void OnEmailAddressChanged();
+ private global::System.Int32 _ConsumerId;
+ partial void OnConsumerIdChanging(global::System.Int32 value);
+ partial void OnConsumerIdChanged();
+
/// <summary>
- /// A value indicating whether the email address has been verified as actually owned by this user.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public bool EmailAddressVerified
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String Name
{
get
{
- return this._EmailAddressVerified;
+ return _Name;
}
set
{
- this.OnEmailAddressVerifiedChanging(value);
- this.ReportPropertyChanging("EmailAddressVerified");
- this._EmailAddressVerified = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("EmailAddressVerified");
- this.OnEmailAddressVerifiedChanged();
+ OnNameChanging(value);
+ ReportPropertyChanging("Name");
+ _Name = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("Name");
+ OnNameChanged();
}
}
- private bool _EmailAddressVerified;
- partial void OnEmailAddressVerifiedChanging(bool value);
- partial void OnEmailAddressVerifiedChanged();
+ private global::System.String _Name;
+ partial void OnNameChanging(global::System.String value);
+ partial void OnNameChanged();
+
+ #endregion
+
+ #region Navigation Properties
+
/// <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()]
- public global::System.DateTime CreatedOnUtc
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer1", "IssuedToken")]
+ public EntityCollection<IssuedToken> IssuedTokens
{
get
{
- return this._CreatedOnUtc;
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_Consumer1", "IssuedToken");
}
- private set
+ set
{
- this.OnCreatedOnUtcChanging(value);
- this.ReportPropertyChanging("CreatedOnUtc");
- this._CreatedOnUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("CreatedOnUtc");
- this.OnCreatedOnUtcChanged();
+ if ((value != null))
+ {
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_Consumer1", "IssuedToken", value);
+ }
}
}
- private global::System.DateTime _CreatedOnUtc;
- partial void OnCreatedOnUtcChanging(global::System.DateTime value);
- partial void OnCreatedOnUtcChanged();
+
+ #endregion
+ }
+
+ /// <summary>
+ /// No Metadata Documentation available.
+ /// </summary>
+ [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="IssuedAccessToken")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ public partial class IssuedAccessToken : IssuedToken
+ {
+ #region Factory Method
+
/// <summary>
- /// There are no comments for Property UserId in the schema.
+ /// Create a new IssuedAccessToken object.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public int UserId
+ /// <param name="token">Initial value of the Token property.</param>
+ /// <param name="tokenSecret">Initial value of the TokenSecret property.</param>
+ /// <param name="createdOnUtc">Initial value of the CreatedOnUtc property.</param>
+ /// <param name="issuedTokenId">Initial value of the IssuedTokenId property.</param>
+ public static IssuedAccessToken CreateIssuedAccessToken(global::System.String token, global::System.String tokenSecret, global::System.DateTime createdOnUtc, global::System.Int32 issuedTokenId)
+ {
+ IssuedAccessToken issuedAccessToken = new IssuedAccessToken();
+ issuedAccessToken.Token = token;
+ issuedAccessToken.TokenSecret = tokenSecret;
+ issuedAccessToken.CreatedOnUtc = createdOnUtc;
+ issuedAccessToken.IssuedTokenId = issuedTokenId;
+ return issuedAccessToken;
+ }
+
+ #endregion
+ #region Primitive Properties
+
+ /// <summary>
+ /// No Metadata Documentation available.
+ /// </summary>
+ [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();
}
}
- private int _UserId;
- partial void OnUserIdChanging(int value);
- partial void OnUserIdChanged();
+ private Nullable<global::System.DateTime> _ExpirationDateUtc;
+ partial void OnExpirationDateUtcChanging(Nullable<global::System.DateTime> value);
+ partial void OnExpirationDateUtcChanged();
+
+ #endregion
+
+ }
+
+ /// <summary>
+ /// No Metadata Documentation available.
+ /// </summary>
+ [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="IssuedRequestToken")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ public partial class IssuedRequestToken : IssuedToken
+ {
+ #region Factory Method
+
/// <summary>
- /// There are no comments for Roles in the schema.
+ /// Create a new IssuedRequestToken object.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "UserRole", "Role")]
- [global::System.Xml.Serialization.XmlIgnoreAttribute()]
- [global::System.Xml.Serialization.SoapIgnoreAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public global::System.Data.Objects.DataClasses.EntityCollection<Role> Roles
+ /// <param name="token">Initial value of the Token property.</param>
+ /// <param name="tokenSecret">Initial value of the TokenSecret property.</param>
+ /// <param name="createdOnUtc">Initial value of the CreatedOnUtc property.</param>
+ /// <param name="issuedTokenId">Initial value of the IssuedTokenId property.</param>
+ public static IssuedRequestToken CreateIssuedRequestToken(global::System.String token, global::System.String tokenSecret, global::System.DateTime createdOnUtc, global::System.Int32 issuedTokenId)
+ {
+ IssuedRequestToken issuedRequestToken = new IssuedRequestToken();
+ issuedRequestToken.Token = token;
+ issuedRequestToken.TokenSecret = tokenSecret;
+ issuedRequestToken.CreatedOnUtc = createdOnUtc;
+ issuedRequestToken.IssuedTokenId = issuedTokenId;
+ return issuedRequestToken;
+ }
+
+ #endregion
+ #region Primitive Properties
+
+ /// <summary>
+ /// No Metadata Documentation available.
+ /// </summary>
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ private global::System.String ConsumerVersionAsString
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<Role>("DatabaseModel.UserRole", "Role");
+ return _ConsumerVersionAsString;
}
set
{
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<Role>("DatabaseModel.UserRole", "Role", value);
- }
+ OnConsumerVersionAsStringChanging(value);
+ ReportPropertyChanging("ConsumerVersionAsString");
+ _ConsumerVersionAsString = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("ConsumerVersionAsString");
+ OnConsumerVersionAsStringChanged();
}
}
+ private global::System.String _ConsumerVersionAsString;
+ partial void OnConsumerVersionAsStringChanging(global::System.String value);
+ partial void OnConsumerVersionAsStringChanged();
+
/// <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.Xml.Serialization.XmlIgnoreAttribute()]
- [global::System.Xml.Serialization.SoapIgnoreAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public global::System.Data.Objects.DataClasses.EntityCollection<AuthenticationToken> AuthenticationTokens
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String VerificationCode
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<AuthenticationToken>("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken");
+ return _VerificationCode;
}
set
{
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<AuthenticationToken>("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken", value);
- }
+ OnVerificationCodeChanging(value);
+ ReportPropertyChanging("VerificationCode");
+ _VerificationCode = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("VerificationCode");
+ OnVerificationCodeChanged();
}
}
+ private global::System.String _VerificationCode;
+ partial void OnVerificationCodeChanging(global::System.String value);
+ partial void OnVerificationCodeChanged();
+
/// <summary>
- /// There are no comments for IssuedTokens in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_User1", "IssuedToken")]
- [global::System.Xml.Serialization.XmlIgnoreAttribute()]
- [global::System.Xml.Serialization.SoapIgnoreAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public global::System.Data.Objects.DataClasses.EntityCollection<IssuedToken> IssuedTokens
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ private global::System.String CallbackAsString
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_User1", "IssuedToken");
+ return _CallbackAsString;
}
set
{
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_User1", "IssuedToken", value);
- }
+ 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();
+
+ #endregion
+
}
+
/// <summary>
- /// There are no comments for DatabaseModel.Consumer in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- /// <KeyProperties>
- /// ConsumerId
- /// </KeyProperties>
- [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Consumer")]
- [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
- [global::System.Serializable()]
- public partial class Consumer : global::System.Data.Objects.DataClasses.EntityObject
+ [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="IssuedToken")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ [KnownTypeAttribute(typeof(IssuedRequestToken))]
+ [KnownTypeAttribute(typeof(IssuedAccessToken))]
+ public abstract partial class IssuedToken : EntityObject
{
+ #region Primitive Properties
+
/// <summary>
- /// Create a new Consumer object.
- /// </summary>
- /// <param name="consumerKey">Initial value of ConsumerKey.</param>
- /// <param name="verificationCodeLength">Initial value of VerificationCodeLength.</param>
- /// <param name="consumerId">Initial value of ConsumerId.</param>
- public static Consumer CreateConsumer(string consumerKey, int verificationCodeLength, int consumerId)
- {
- Consumer consumer = new Consumer();
- consumer.ConsumerKey = consumerKey;
- consumer.VerificationCodeLength = verificationCodeLength;
- consumer.ConsumerId = consumerId;
- return consumer;
- }
- /// <summary>
- /// There are no comments for Property ConsumerKey in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string ConsumerKey
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String Token
{
get
{
- return this._ConsumerKey;
+ return _Token;
}
set
{
- this.OnConsumerKeyChanging(value);
- this.ReportPropertyChanging("ConsumerKey");
- this._ConsumerKey = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("ConsumerKey");
- this.OnConsumerKeyChanged();
+ OnTokenChanging(value);
+ ReportPropertyChanging("Token");
+ _Token = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("Token");
+ OnTokenChanged();
}
}
- private string _ConsumerKey;
- partial void OnConsumerKeyChanging(string value);
- partial void OnConsumerKeyChanged();
+ private global::System.String _Token;
+ partial void OnTokenChanging(global::System.String value);
+ partial void OnTokenChanged();
+
/// <summary>
- /// There are no comments for Property ConsumerSecret in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string ConsumerSecret
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String TokenSecret
{
get
{
- return this._ConsumerSecret;
+ return _TokenSecret;
}
set
{
- this.OnConsumerSecretChanging(value);
- this.ReportPropertyChanging("ConsumerSecret");
- this._ConsumerSecret = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("ConsumerSecret");
- this.OnConsumerSecretChanged();
+ OnTokenSecretChanging(value);
+ ReportPropertyChanging("TokenSecret");
+ _TokenSecret = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("TokenSecret");
+ OnTokenSecretChanged();
}
}
- private string _ConsumerSecret;
- partial void OnConsumerSecretChanging(string value);
- partial void OnConsumerSecretChanged();
+ private global::System.String _TokenSecret;
+ partial void OnTokenSecretChanging(global::System.String value);
+ partial void OnTokenSecretChanged();
+
/// <summary>
- /// There are no comments for Property X509CertificateAsBinary in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- private byte[] X509CertificateAsBinary
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.DateTime CreatedOnUtc
{
get
{
- return global::System.Data.Objects.DataClasses.StructuralObject.GetValidValue(this._X509CertificateAsBinary);
+ return _CreatedOnUtc;
}
- set
+ internal set
{
- this.OnX509CertificateAsBinaryChanging(value);
- this.ReportPropertyChanging("X509CertificateAsBinary");
- this._X509CertificateAsBinary = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("X509CertificateAsBinary");
- this.OnX509CertificateAsBinaryChanged();
+ OnCreatedOnUtcChanging(value);
+ ReportPropertyChanging("CreatedOnUtc");
+ _CreatedOnUtc = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("CreatedOnUtc");
+ OnCreatedOnUtcChanged();
}
}
- private byte[] _X509CertificateAsBinary;
- partial void OnX509CertificateAsBinaryChanging(byte[] value);
- partial void OnX509CertificateAsBinaryChanged();
+ private global::System.DateTime _CreatedOnUtc;
+ partial void OnCreatedOnUtcChanging(global::System.DateTime value);
+ partial void OnCreatedOnUtcChanged();
+
/// <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()]
- public string CallbackAsString
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String Scope
{
get
{
- return this._CallbackAsString;
+ return _Scope;
}
set
{
- this.OnCallbackAsStringChanging(value);
- this.ReportPropertyChanging("CallbackAsString");
- this._CallbackAsString = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("CallbackAsString");
- this.OnCallbackAsStringChanged();
+ OnScopeChanging(value);
+ ReportPropertyChanging("Scope");
+ _Scope = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("Scope");
+ OnScopeChanged();
}
}
- private string _CallbackAsString;
- partial void OnCallbackAsStringChanging(string value);
- partial void OnCallbackAsStringChanged();
+ private global::System.String _Scope;
+ partial void OnScopeChanging(global::System.String value);
+ partial void OnScopeChanged();
+
/// <summary>
- /// There are no comments for Property VerificationCodeFormatAsInt in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- private int VerificationCodeFormatAsInt
+ [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 IssuedTokenId
{
get
{
- return this._VerificationCodeFormatAsInt;
+ return _IssuedTokenId;
}
- set
+ internal set
{
- this.OnVerificationCodeFormatAsIntChanging(value);
- this.ReportPropertyChanging("VerificationCodeFormatAsInt");
- this._VerificationCodeFormatAsInt = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("VerificationCodeFormatAsInt");
- this.OnVerificationCodeFormatAsIntChanged();
+ if (_IssuedTokenId != value)
+ {
+ OnIssuedTokenIdChanging(value);
+ ReportPropertyChanging("IssuedTokenId");
+ _IssuedTokenId = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("IssuedTokenId");
+ OnIssuedTokenIdChanged();
+ }
}
}
- private int _VerificationCodeFormatAsInt;
- partial void OnVerificationCodeFormatAsIntChanging(int value);
- partial void OnVerificationCodeFormatAsIntChanged();
+ private global::System.Int32 _IssuedTokenId;
+ partial void OnIssuedTokenIdChanging(global::System.Int32 value);
+ partial void OnIssuedTokenIdChanged();
+
+ #endregion
+
+ #region Navigation Properties
+
/// <summary>
- /// There are no comments for Property VerificationCodeLength in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public int VerificationCodeLength
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer1", "Consumer")]
+ public Consumer Consumer
{
get
{
- return this._VerificationCodeLength;
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer").Value;
}
set
{
- this.OnVerificationCodeLengthChanging(value);
- this.ReportPropertyChanging("VerificationCodeLength");
- this._VerificationCodeLength = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("VerificationCodeLength");
- this.OnVerificationCodeLengthChanged();
+ ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer").Value = value;
}
}
- private int _VerificationCodeLength;
- partial void OnVerificationCodeLengthChanging(int value);
- partial void OnVerificationCodeLengthChanged();
/// <summary>
- /// There are no comments for Property ConsumerId in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public int ConsumerId
+ [BrowsableAttribute(false)]
+ [DataMemberAttribute()]
+ public EntityReference<Consumer> ConsumerReference
{
get
{
- return this._ConsumerId;
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer");
}
- private set
+ set
{
- this.OnConsumerIdChanging(value);
- this.ReportPropertyChanging("ConsumerId");
- this._ConsumerId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("ConsumerId");
- this.OnConsumerIdChanged();
+ if ((value != null))
+ {
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer", value);
+ }
}
}
- private int _ConsumerId;
- partial void OnConsumerIdChanging(int value);
- partial void OnConsumerIdChanged();
+
/// <summary>
- /// There are no comments for Property Name in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string Name
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_User1", "User")]
+ public User User
{
get
{
- return this._Name;
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User").Value;
}
set
{
- this.OnNameChanging(value);
- this.ReportPropertyChanging("Name");
- this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("Name");
- this.OnNameChanged();
+ ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User").Value = value;
}
}
- private string _Name;
- partial void OnNameChanging(string value);
- partial void OnNameChanged();
/// <summary>
- /// There are no comments for IssuedTokens in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer1", "IssuedToken")]
- [global::System.Xml.Serialization.XmlIgnoreAttribute()]
- [global::System.Xml.Serialization.SoapIgnoreAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public global::System.Data.Objects.DataClasses.EntityCollection<IssuedToken> IssuedTokens
+ [BrowsableAttribute(false)]
+ [DataMemberAttribute()]
+ public EntityReference<User> UserReference
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_Consumer1", "IssuedToken");
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User");
}
set
{
if ((value != null))
{
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_Consumer1", "IssuedToken", value);
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User", value);
}
}
}
+
+ #endregion
}
+
/// <summary>
- /// There are no comments for DatabaseModel.IssuedToken in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- /// <KeyProperties>
- /// IssuedTokenId
- /// </KeyProperties>
- [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="IssuedToken")]
- [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
- [global::System.Serializable()]
- [global::System.Runtime.Serialization.KnownTypeAttribute(typeof(global::RelyingPartyLogic.IssuedRequestToken))]
- [global::System.Runtime.Serialization.KnownTypeAttribute(typeof(global::RelyingPartyLogic.IssuedAccessToken))]
- public abstract partial class IssuedToken : global::System.Data.Objects.DataClasses.EntityObject
+ [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Nonce")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ public partial class Nonce : EntityObject
{
+ #region Factory Method
+
/// <summary>
- /// There are no comments for Property Token in the schema.
+ /// Create a new Nonce object.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string Token
+ /// <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)
{
- get
- {
- return this._Token;
- }
- set
- {
- this.OnTokenChanging(value);
- this.ReportPropertyChanging("Token");
- this._Token = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("Token");
- this.OnTokenChanged();
- }
+ Nonce nonce = new Nonce();
+ nonce.NonceId = nonceId;
+ nonce.Context = context;
+ nonce.Code = code;
+ nonce.IssuedUtc = issuedUtc;
+ nonce.ExpiresUtc = expiresUtc;
+ return nonce;
}
- private string _Token;
- partial void OnTokenChanging(string value);
- partial void OnTokenChanged();
+
+ #endregion
+ #region Primitive Properties
+
/// <summary>
- /// There are no comments for Property TokenSecret in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string TokenSecret
+ [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 NonceId
{
get
{
- return this._TokenSecret;
+ return _NonceId;
}
set
{
- this.OnTokenSecretChanging(value);
- this.ReportPropertyChanging("TokenSecret");
- this._TokenSecret = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("TokenSecret");
- this.OnTokenSecretChanged();
+ if (_NonceId != value)
+ {
+ OnNonceIdChanging(value);
+ ReportPropertyChanging("NonceId");
+ _NonceId = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("NonceId");
+ OnNonceIdChanged();
+ }
}
}
- private string _TokenSecret;
- partial void OnTokenSecretChanging(string value);
- partial void OnTokenSecretChanged();
+ private global::System.Int32 _NonceId;
+ partial void OnNonceIdChanging(global::System.Int32 value);
+ partial void OnNonceIdChanged();
+
/// <summary>
- /// There are no comments for Property CreatedOnUtc in the schema.
+ /// 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()]
- public global::System.DateTime CreatedOnUtc
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String Context
{
get
{
- return this._CreatedOnUtc;
+ return _Context;
}
- internal set
+ set
{
- this.OnCreatedOnUtcChanging(value);
- this.ReportPropertyChanging("CreatedOnUtc");
- this._CreatedOnUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("CreatedOnUtc");
- this.OnCreatedOnUtcChanged();
+ OnContextChanging(value);
+ ReportPropertyChanging("Context");
+ _Context = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("Context");
+ OnContextChanged();
}
}
- private global::System.DateTime _CreatedOnUtc;
- partial void OnCreatedOnUtcChanging(global::System.DateTime value);
- partial void OnCreatedOnUtcChanged();
+ private global::System.String _Context;
+ partial void OnContextChanging(global::System.String value);
+ partial void OnContextChanged();
+
/// <summary>
- /// There are no comments for Property Scope in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string Scope
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String Code
{
get
{
- return this._Scope;
+ return _Code;
}
set
{
- this.OnScopeChanging(value);
- this.ReportPropertyChanging("Scope");
- this._Scope = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("Scope");
- this.OnScopeChanged();
+ OnCodeChanging(value);
+ ReportPropertyChanging("Code");
+ _Code = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("Code");
+ OnCodeChanged();
}
}
- private string _Scope;
- partial void OnScopeChanging(string value);
- partial void OnScopeChanged();
+ private global::System.String _Code;
+ partial void OnCodeChanging(global::System.String value);
+ partial void OnCodeChanged();
+
/// <summary>
- /// There are no comments for Property IssuedTokenId in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public int IssuedTokenId
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.DateTime IssuedUtc
{
get
{
- return this._IssuedTokenId;
+ return _IssuedUtc;
}
- internal set
+ set
{
- this.OnIssuedTokenIdChanging(value);
- this.ReportPropertyChanging("IssuedTokenId");
- this._IssuedTokenId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("IssuedTokenId");
- this.OnIssuedTokenIdChanged();
+ OnIssuedUtcChanging(value);
+ ReportPropertyChanging("IssuedUtc");
+ _IssuedUtc = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("IssuedUtc");
+ OnIssuedUtcChanged();
}
}
- private int _IssuedTokenId;
- partial void OnIssuedTokenIdChanging(int value);
- partial void OnIssuedTokenIdChanged();
+ private global::System.DateTime _IssuedUtc;
+ partial void OnIssuedUtcChanging(global::System.DateTime value);
+ partial void OnIssuedUtcChanged();
+
/// <summary>
- /// There are no comments for Consumer in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer1", "Consumer")]
- [global::System.Xml.Serialization.XmlIgnoreAttribute()]
- [global::System.Xml.Serialization.SoapIgnoreAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public Consumer Consumer
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.DateTime ExpiresUtc
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer").Value;
+ return _ExpiresUtc;
}
set
{
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer").Value = value;
+ OnExpiresUtcChanging(value);
+ ReportPropertyChanging("ExpiresUtc");
+ _ExpiresUtc = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("ExpiresUtc");
+ OnExpiresUtcChanged();
}
}
+ private global::System.DateTime _ExpiresUtc;
+ partial void OnExpiresUtcChanging(global::System.DateTime value);
+ partial void OnExpiresUtcChanged();
+
+ #endregion
+
+ }
+
+ /// <summary>
+ /// No Metadata Documentation available.
+ /// </summary>
+ [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="OpenIdAssociation")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ public partial class OpenIdAssociation : EntityObject
+ {
+ #region Factory Method
+
+ /// <summary>
+ /// Create a new OpenIdAssociation object.
+ /// </summary>
+ /// <param name="associationId">Initial value of the AssociationId property.</param>
+ /// <param name="distinguishingFactor">Initial value of the DistinguishingFactor property.</param>
+ /// <param name="associationHandle">Initial value of the AssociationHandle property.</param>
+ /// <param name="expirationUtc">Initial value of the ExpirationUtc property.</param>
+ /// <param name="privateData">Initial value of the PrivateData property.</param>
+ /// <param name="privateDataLength">Initial value of the PrivateDataLength property.</param>
+ public static OpenIdAssociation CreateOpenIdAssociation(global::System.Int32 associationId, global::System.String distinguishingFactor, global::System.String associationHandle, global::System.DateTime expirationUtc, global::System.Byte[] privateData, global::System.Int32 privateDataLength)
+ {
+ OpenIdAssociation openIdAssociation = new OpenIdAssociation();
+ openIdAssociation.AssociationId = associationId;
+ openIdAssociation.DistinguishingFactor = distinguishingFactor;
+ openIdAssociation.AssociationHandle = associationHandle;
+ openIdAssociation.ExpirationUtc = expirationUtc;
+ openIdAssociation.PrivateData = privateData;
+ openIdAssociation.PrivateDataLength = privateDataLength;
+ return openIdAssociation;
+ }
+
+ #endregion
+ #region Primitive Properties
+
/// <summary>
- /// There are no comments for Consumer in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.ComponentModel.BrowsableAttribute(false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public global::System.Data.Objects.DataClasses.EntityReference<Consumer> ConsumerReference
+ [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 AssociationId
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer");
+ return _AssociationId;
}
set
{
- if ((value != null))
+ if (_AssociationId != value)
{
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<Consumer>("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer", value);
+ OnAssociationIdChanging(value);
+ ReportPropertyChanging("AssociationId");
+ _AssociationId = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("AssociationId");
+ OnAssociationIdChanged();
}
}
}
+ private global::System.Int32 _AssociationId;
+ partial void OnAssociationIdChanging(global::System.Int32 value);
+ partial void OnAssociationIdChanged();
+
/// <summary>
- /// There are no comments for User in the schema.
+ /// Gets or sets the Provider Endpoint URL the association is with.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_User1", "User")]
- [global::System.Xml.Serialization.XmlIgnoreAttribute()]
- [global::System.Xml.Serialization.SoapIgnoreAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public User User
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String DistinguishingFactor
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User").Value;
+ return _DistinguishingFactor;
}
set
{
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User").Value = value;
+ OnDistinguishingFactorChanging(value);
+ ReportPropertyChanging("DistinguishingFactor");
+ _DistinguishingFactor = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("DistinguishingFactor");
+ OnDistinguishingFactorChanged();
}
}
+ private global::System.String _DistinguishingFactor;
+ partial void OnDistinguishingFactorChanging(global::System.String value);
+ partial void OnDistinguishingFactorChanged();
+
/// <summary>
- /// There are no comments for User in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.ComponentModel.BrowsableAttribute(false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public global::System.Data.Objects.DataClasses.EntityReference<User> UserReference
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String AssociationHandle
{
get
{
- return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User");
+ return _AssociationHandle;
}
set
{
- if ((value != null))
- {
- ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<User>("DatabaseModel.FK_IssuedToken_User1", "User", value);
- }
+ OnAssociationHandleChanging(value);
+ ReportPropertyChanging("AssociationHandle");
+ _AssociationHandle = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("AssociationHandle");
+ OnAssociationHandleChanged();
}
}
- }
- /// <summary>
- /// There are no comments for DatabaseModel.IssuedRequestToken in the schema.
- /// </summary>
- /// <KeyProperties>
- /// IssuedTokenId
- /// </KeyProperties>
- [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="IssuedRequestToken")]
- [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
- [global::System.Serializable()]
- public partial class IssuedRequestToken : IssuedToken
- {
- /// <summary>
- /// Create a new IssuedRequestToken object.
- /// </summary>
- /// <param name="token">Initial value of Token.</param>
- /// <param name="tokenSecret">Initial value of TokenSecret.</param>
- /// <param name="createdOnUtc">Initial value of CreatedOnUtc.</param>
- /// <param name="issuedTokenId">Initial value of IssuedTokenId.</param>
- public static IssuedRequestToken CreateIssuedRequestToken(string token, string tokenSecret, global::System.DateTime createdOnUtc, int issuedTokenId)
- {
- IssuedRequestToken issuedRequestToken = new IssuedRequestToken();
- issuedRequestToken.Token = token;
- issuedRequestToken.TokenSecret = tokenSecret;
- issuedRequestToken.CreatedOnUtc = createdOnUtc;
- issuedRequestToken.IssuedTokenId = issuedTokenId;
- return issuedRequestToken;
- }
+ private global::System.String _AssociationHandle;
+ partial void OnAssociationHandleChanging(global::System.String value);
+ partial void OnAssociationHandleChanged();
+
/// <summary>
- /// There are no comments for Property ConsumerVersionAsString in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- private string ConsumerVersionAsString
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.DateTime ExpirationUtc
{
get
{
- return this._ConsumerVersionAsString;
+ return _ExpirationUtc;
}
set
{
- this.OnConsumerVersionAsStringChanging(value);
- this.ReportPropertyChanging("ConsumerVersionAsString");
- this._ConsumerVersionAsString = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("ConsumerVersionAsString");
- this.OnConsumerVersionAsStringChanged();
+ OnExpirationUtcChanging(value);
+ ReportPropertyChanging("ExpirationUtc");
+ _ExpirationUtc = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("ExpirationUtc");
+ OnExpirationUtcChanged();
}
}
- private string _ConsumerVersionAsString;
- partial void OnConsumerVersionAsStringChanging(string value);
- partial void OnConsumerVersionAsStringChanged();
+ private global::System.DateTime _ExpirationUtc;
+ partial void OnExpirationUtcChanging(global::System.DateTime value);
+ partial void OnExpirationUtcChanged();
+
/// <summary>
- /// There are no comments for Property VerificationCode in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string VerificationCode
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Byte[] PrivateData
{
get
{
- return this._VerificationCode;
+ return StructuralObject.GetValidValue(_PrivateData);
}
set
{
- this.OnVerificationCodeChanging(value);
- this.ReportPropertyChanging("VerificationCode");
- this._VerificationCode = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("VerificationCode");
- this.OnVerificationCodeChanged();
+ OnPrivateDataChanging(value);
+ ReportPropertyChanging("PrivateData");
+ _PrivateData = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("PrivateData");
+ OnPrivateDataChanged();
}
}
- private string _VerificationCode;
- partial void OnVerificationCodeChanging(string value);
- partial void OnVerificationCodeChanged();
+ private global::System.Byte[] _PrivateData;
+ partial void OnPrivateDataChanging(global::System.Byte[] value);
+ partial void OnPrivateDataChanged();
+
/// <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()]
- private string CallbackAsString
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 PrivateDataLength
{
get
{
- return this._CallbackAsString;
+ return _PrivateDataLength;
}
set
{
- this.OnCallbackAsStringChanging(value);
- this.ReportPropertyChanging("CallbackAsString");
- this._CallbackAsString = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
- this.ReportPropertyChanged("CallbackAsString");
- this.OnCallbackAsStringChanged();
+ OnPrivateDataLengthChanging(value);
+ ReportPropertyChanging("PrivateDataLength");
+ _PrivateDataLength = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("PrivateDataLength");
+ OnPrivateDataLengthChanged();
}
}
- private string _CallbackAsString;
- partial void OnCallbackAsStringChanging(string value);
- partial void OnCallbackAsStringChanged();
+ private global::System.Int32 _PrivateDataLength;
+ partial void OnPrivateDataLengthChanging(global::System.Int32 value);
+ partial void OnPrivateDataLengthChanged();
+
+ #endregion
+
}
+
/// <summary>
- /// There are no comments for DatabaseModel.IssuedAccessToken in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- /// <KeyProperties>
- /// IssuedTokenId
- /// </KeyProperties>
- [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="IssuedAccessToken")]
- [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
- [global::System.Serializable()]
- public partial class IssuedAccessToken : IssuedToken
+ [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Role")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ public partial class Role : EntityObject
{
+ #region Factory Method
+
/// <summary>
- /// Create a new IssuedAccessToken object.
+ /// Create a new Role object.
/// </summary>
- /// <param name="token">Initial value of Token.</param>
- /// <param name="tokenSecret">Initial value of TokenSecret.</param>
- /// <param name="createdOnUtc">Initial value of CreatedOnUtc.</param>
- /// <param name="issuedTokenId">Initial value of IssuedTokenId.</param>
- public static IssuedAccessToken CreateIssuedAccessToken(string token, string tokenSecret, global::System.DateTime createdOnUtc, int issuedTokenId)
+ /// <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)
{
- IssuedAccessToken issuedAccessToken = new IssuedAccessToken();
- issuedAccessToken.Token = token;
- issuedAccessToken.TokenSecret = tokenSecret;
- issuedAccessToken.CreatedOnUtc = createdOnUtc;
- issuedAccessToken.IssuedTokenId = issuedTokenId;
- return issuedAccessToken;
+ Role role = new Role();
+ role.Name = name;
+ role.RoleId = roleId;
+ return role;
}
+
+ #endregion
+ #region Primitive Properties
+
/// <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()]
- public global::System.Nullable<global::System.DateTime> ExpirationDateUtc
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.String Name
{
get
{
- return this._ExpirationDateUtc;
+ return _Name;
}
set
{
- this.OnExpirationDateUtcChanging(value);
- this.ReportPropertyChanging("ExpirationDateUtc");
- this._ExpirationDateUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("ExpirationDateUtc");
- this.OnExpirationDateUtcChanged();
+ OnNameChanging(value);
+ ReportPropertyChanging("Name");
+ _Name = StructuralObject.SetValidValue(value, false);
+ ReportPropertyChanged("Name");
+ OnNameChanged();
}
}
- private global::System.Nullable<global::System.DateTime> _ExpirationDateUtc;
- partial void OnExpirationDateUtcChanging(global::System.Nullable<global::System.DateTime> value);
- partial void OnExpirationDateUtcChanged();
- }
- /// <summary>
- /// There are no comments for DatabaseModel.Nonce in the schema.
- /// </summary>
- /// <KeyProperties>
- /// NonceId
- /// </KeyProperties>
- [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Nonce")]
- [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
- [global::System.Serializable()]
- public partial class Nonce : global::System.Data.Objects.DataClasses.EntityObject
- {
- /// <summary>
- /// Create a new Nonce object.
- /// </summary>
- /// <param name="nonceId">Initial value of NonceId.</param>
- /// <param name="context">Initial value of Context.</param>
- /// <param name="code">Initial value of Code.</param>
- /// <param name="issuedUtc">Initial value of IssuedUtc.</param>
- /// <param name="expiresUtc">Initial value of ExpiresUtc.</param>
- public static Nonce CreateNonce(int nonceId, string context, string code, global::System.DateTime issuedUtc, global::System.DateTime expiresUtc)
- {
- Nonce nonce = new Nonce();
- nonce.NonceId = nonceId;
- nonce.Context = context;
- nonce.Code = code;
- nonce.IssuedUtc = issuedUtc;
- nonce.ExpiresUtc = expiresUtc;
- return nonce;
- }
+ private global::System.String _Name;
+ partial void OnNameChanging(global::System.String value);
+ partial void OnNameChanged();
+
/// <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()]
- public int NonceId
+ [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 RoleId
{
get
{
- return this._NonceId;
+ return _RoleId;
}
- set
+ private set
{
- this.OnNonceIdChanging(value);
- this.ReportPropertyChanging("NonceId");
- this._NonceId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("NonceId");
- this.OnNonceIdChanged();
+ if (_RoleId != value)
+ {
+ OnRoleIdChanging(value);
+ ReportPropertyChanging("RoleId");
+ _RoleId = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("RoleId");
+ OnRoleIdChanged();
+ }
}
}
- private int _NonceId;
- partial void OnNonceIdChanging(int value);
- partial void OnNonceIdChanged();
+ private global::System.Int32 _RoleId;
+ partial void OnRoleIdChanging(global::System.Int32 value);
+ partial void OnRoleIdChanged();
+
+ #endregion
+
+ #region Navigation Properties
+
/// <summary>
- /// Gets or sets the Provider Endpoint URL the nonce came from.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string Context
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "UserRole", "User")]
+ public EntityCollection<User> Users
{
get
{
- return this._Context;
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<User>("DatabaseModel.UserRole", "User");
}
set
{
- this.OnContextChanging(value);
- this.ReportPropertyChanging("Context");
- this._Context = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("Context");
- this.OnContextChanged();
+ if ((value != null))
+ {
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<User>("DatabaseModel.UserRole", "User", value);
+ }
}
}
- private string _Context;
- partial void OnContextChanging(string value);
- partial void OnContextChanged();
+
+ #endregion
+ }
+
+ /// <summary>
+ /// No Metadata Documentation available.
+ /// </summary>
+ [EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="User")]
+ [Serializable()]
+ [DataContractAttribute(IsReference=true)]
+ public partial class User : EntityObject
+ {
+ #region Factory Method
+
/// <summary>
- /// There are no comments for Property Code in the schema.
+ /// Create a new User object.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string Code
+ /// <param name="emailAddressVerified">Initial value of the EmailAddressVerified property.</param>
+ /// <param name="createdOnUtc">Initial value of the CreatedOnUtc property.</param>
+ /// <param name="userId">Initial value of the UserId property.</param>
+ public static User CreateUser(global::System.Boolean emailAddressVerified, global::System.DateTime createdOnUtc, global::System.Int32 userId)
+ {
+ User user = new User();
+ user.EmailAddressVerified = emailAddressVerified;
+ user.CreatedOnUtc = createdOnUtc;
+ user.UserId = userId;
+ return user;
+ }
+
+ #endregion
+ #region Primitive Properties
+
+ /// <summary>
+ /// No Metadata Documentation available.
+ /// </summary>
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String FirstName
{
get
{
- return this._Code;
+ return _FirstName;
}
set
{
- this.OnCodeChanging(value);
- this.ReportPropertyChanging("Code");
- this._Code = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("Code");
- this.OnCodeChanged();
+ OnFirstNameChanging(value);
+ ReportPropertyChanging("FirstName");
+ _FirstName = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("FirstName");
+ OnFirstNameChanged();
}
}
- private string _Code;
- partial void OnCodeChanging(string value);
- partial void OnCodeChanged();
+ private global::System.String _FirstName;
+ partial void OnFirstNameChanging(global::System.String value);
+ partial void OnFirstNameChanged();
+
/// <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()]
- public global::System.DateTime IssuedUtc
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String LastName
{
get
{
- return this._IssuedUtc;
+ return _LastName;
}
set
{
- this.OnIssuedUtcChanging(value);
- this.ReportPropertyChanging("IssuedUtc");
- this._IssuedUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("IssuedUtc");
- this.OnIssuedUtcChanged();
+ OnLastNameChanging(value);
+ ReportPropertyChanging("LastName");
+ _LastName = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("LastName");
+ OnLastNameChanged();
}
}
- private global::System.DateTime _IssuedUtc;
- partial void OnIssuedUtcChanging(global::System.DateTime value);
- partial void OnIssuedUtcChanged();
+ private global::System.String _LastName;
+ partial void OnLastNameChanging(global::System.String value);
+ partial void OnLastNameChanged();
+
/// <summary>
- /// There are no comments for Property ExpiresUtc 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.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public global::System.DateTime ExpiresUtc
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
+ [DataMemberAttribute()]
+ public global::System.String EmailAddress
{
get
{
- return this._ExpiresUtc;
+ return _EmailAddress;
}
set
{
- this.OnExpiresUtcChanging(value);
- this.ReportPropertyChanging("ExpiresUtc");
- this._ExpiresUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("ExpiresUtc");
- this.OnExpiresUtcChanged();
+ OnEmailAddressChanging(value);
+ ReportPropertyChanging("EmailAddress");
+ _EmailAddress = StructuralObject.SetValidValue(value, true);
+ ReportPropertyChanged("EmailAddress");
+ OnEmailAddressChanged();
}
}
- private global::System.DateTime _ExpiresUtc;
- partial void OnExpiresUtcChanging(global::System.DateTime value);
- partial void OnExpiresUtcChanged();
- }
- /// <summary>
- /// There are no comments for DatabaseModel.OpenIdAssociation in the schema.
- /// </summary>
- /// <KeyProperties>
- /// AssociationId
- /// </KeyProperties>
- [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="OpenIdAssociation")]
- [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)]
- [global::System.Serializable()]
- public partial class OpenIdAssociation : global::System.Data.Objects.DataClasses.EntityObject
- {
- /// <summary>
- /// Create a new OpenIdAssociation object.
- /// </summary>
- /// <param name="associationId">Initial value of AssociationId.</param>
- /// <param name="distinguishingFactor">Initial value of DistinguishingFactor.</param>
- /// <param name="associationHandle">Initial value of AssociationHandle.</param>
- /// <param name="expirationUtc">Initial value of ExpirationUtc.</param>
- /// <param name="privateData">Initial value of PrivateData.</param>
- /// <param name="privateDataLength">Initial value of PrivateDataLength.</param>
- public static OpenIdAssociation CreateOpenIdAssociation(int associationId, string distinguishingFactor, string associationHandle, global::System.DateTime expirationUtc, byte[] privateData, int privateDataLength)
- {
- OpenIdAssociation openIdAssociation = new OpenIdAssociation();
- openIdAssociation.AssociationId = associationId;
- openIdAssociation.DistinguishingFactor = distinguishingFactor;
- openIdAssociation.AssociationHandle = associationHandle;
- openIdAssociation.ExpirationUtc = expirationUtc;
- openIdAssociation.PrivateData = privateData;
- openIdAssociation.PrivateDataLength = privateDataLength;
- return openIdAssociation;
- }
+ private global::System.String _EmailAddress;
+ partial void OnEmailAddressChanging(global::System.String value);
+ partial void OnEmailAddressChanged();
+
/// <summary>
- /// There are no comments for Property AssociationId in the schema.
+ /// A value indicating whether the email address has been verified as actually owned by this user.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public int AssociationId
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Boolean EmailAddressVerified
{
get
{
- return this._AssociationId;
+ return _EmailAddressVerified;
}
set
{
- this.OnAssociationIdChanging(value);
- this.ReportPropertyChanging("AssociationId");
- this._AssociationId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("AssociationId");
- this.OnAssociationIdChanged();
+ OnEmailAddressVerifiedChanging(value);
+ ReportPropertyChanging("EmailAddressVerified");
+ _EmailAddressVerified = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("EmailAddressVerified");
+ OnEmailAddressVerifiedChanged();
}
}
- private int _AssociationId;
- partial void OnAssociationIdChanging(int value);
- partial void OnAssociationIdChanged();
+ private global::System.Boolean _EmailAddressVerified;
+ partial void OnEmailAddressVerifiedChanging(global::System.Boolean value);
+ partial void OnEmailAddressVerifiedChanged();
+
/// <summary>
- /// Gets or sets the Provider Endpoint URL the association is with.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string DistinguishingFactor
+ [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.DateTime CreatedOnUtc
{
get
{
- return this._DistinguishingFactor;
+ return _CreatedOnUtc;
}
- set
+ private set
{
- this.OnDistinguishingFactorChanging(value);
- this.ReportPropertyChanging("DistinguishingFactor");
- this._DistinguishingFactor = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("DistinguishingFactor");
- this.OnDistinguishingFactorChanged();
+ OnCreatedOnUtcChanging(value);
+ ReportPropertyChanging("CreatedOnUtc");
+ _CreatedOnUtc = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("CreatedOnUtc");
+ OnCreatedOnUtcChanged();
}
}
- private string _DistinguishingFactor;
- partial void OnDistinguishingFactorChanging(string value);
- partial void OnDistinguishingFactorChanged();
+ private global::System.DateTime _CreatedOnUtc;
+ partial void OnCreatedOnUtcChanging(global::System.DateTime value);
+ partial void OnCreatedOnUtcChanged();
+
/// <summary>
- /// There are no comments for Property AssociationHandle in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public string AssociationHandle
+ [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
+ [DataMemberAttribute()]
+ public global::System.Int32 UserId
{
get
{
- return this._AssociationHandle;
+ return _UserId;
}
- set
+ private set
{
- this.OnAssociationHandleChanging(value);
- this.ReportPropertyChanging("AssociationHandle");
- this._AssociationHandle = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("AssociationHandle");
- this.OnAssociationHandleChanged();
+ if (_UserId != value)
+ {
+ OnUserIdChanging(value);
+ ReportPropertyChanging("UserId");
+ _UserId = StructuralObject.SetValidValue(value);
+ ReportPropertyChanged("UserId");
+ OnUserIdChanged();
+ }
}
}
- private string _AssociationHandle;
- partial void OnAssociationHandleChanging(string value);
- partial void OnAssociationHandleChanged();
+ 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 ExpirationUtc in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public global::System.DateTime ExpirationUtc
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "UserRole", "Role")]
+ public EntityCollection<Role> Roles
{
get
{
- return this._ExpirationUtc;
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Role>("DatabaseModel.UserRole", "Role");
}
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<Role>("DatabaseModel.UserRole", "Role", value);
+ }
}
}
- private global::System.DateTime _ExpirationUtc;
- partial void OnExpirationUtcChanging(global::System.DateTime value);
- partial void OnExpirationUtcChanged();
+
/// <summary>
- /// There are no comments for Property PrivateData in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public byte[] PrivateData
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_AuthenticationToken_User", "AuthenticationToken")]
+ public EntityCollection<AuthenticationToken> AuthenticationTokens
{
get
{
- return global::System.Data.Objects.DataClasses.StructuralObject.GetValidValue(this._PrivateData);
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AuthenticationToken>("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken");
}
set
{
- this.OnPrivateDataChanging(value);
- this.ReportPropertyChanging("PrivateData");
- this._PrivateData = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
- this.ReportPropertyChanged("PrivateData");
- this.OnPrivateDataChanged();
+ if ((value != null))
+ {
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AuthenticationToken>("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken", value);
+ }
}
}
- private byte[] _PrivateData;
- partial void OnPrivateDataChanging(byte[] value);
- partial void OnPrivateDataChanged();
+
/// <summary>
- /// There are no comments for Property PrivateDataLength in the schema.
+ /// No Metadata Documentation available.
/// </summary>
- [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
- [global::System.Runtime.Serialization.DataMemberAttribute()]
- public int PrivateDataLength
+ [XmlIgnoreAttribute()]
+ [SoapIgnoreAttribute()]
+ [DataMemberAttribute()]
+ [EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_User1", "IssuedToken")]
+ public EntityCollection<IssuedToken> IssuedTokens
{
get
{
- return this._PrivateDataLength;
+ return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_User1", "IssuedToken");
}
set
{
- this.OnPrivateDataLengthChanging(value);
- this.ReportPropertyChanging("PrivateDataLength");
- this._PrivateDataLength = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
- this.ReportPropertyChanged("PrivateDataLength");
- this.OnPrivateDataLengthChanged();
+ if ((value != null))
+ {
+ ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<IssuedToken>("DatabaseModel.FK_IssuedToken_User1", "IssuedToken", value);
+ }
}
}
- private int _PrivateDataLength;
- partial void OnPrivateDataLengthChanging(int value);
- partial void OnPrivateDataLengthChanged();
+
+ #endregion
}
+
+ #endregion
+
}