//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
[assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()]
[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "UserRole", "Role", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.Role), "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.User))]
[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "FK_AuthenticationToken_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.User), "AuthenticationToken", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.AuthenticationToken))]
[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "FK_IssuedToken_Consumer1", "Consumer", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.Consumer), "IssuedToken", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.IssuedToken))]
[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "FK_IssuedToken_User1", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(RelyingPartyLogic.User), "IssuedToken", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.IssuedToken))]
// Original file name:
// Generation date: 11/18/2009 9:09:23 AM
namespace RelyingPartyLogic
{
///
/// There are no comments for DatabaseEntities in the schema.
///
public partial class DatabaseEntities : global::System.Data.Objects.ObjectContext
{
///
/// Initializes a new DatabaseEntities object using the connection string found in the 'DatabaseEntities' section of the application configuration file.
///
public DatabaseEntities() :
base("name=DatabaseEntities", "DatabaseEntities")
{
this.OnContextCreated();
}
///
/// Initialize a new DatabaseEntities object.
///
public DatabaseEntities(string connectionString) :
base(connectionString, "DatabaseEntities")
{
this.OnContextCreated();
}
///
/// Initialize a new DatabaseEntities object.
///
public DatabaseEntities(global::System.Data.EntityClient.EntityConnection connection) :
base(connection, "DatabaseEntities")
{
this.OnContextCreated();
}
partial void OnContextCreated();
///
/// There are no comments for Role in the schema.
///
public global::System.Data.Objects.ObjectQuery Role
{
get
{
if ((this._Role == null))
{
this._Role = base.CreateQuery("[Role]");
}
return this._Role;
}
}
private global::System.Data.Objects.ObjectQuery _Role;
///
/// There are no comments for User in the schema.
///
public global::System.Data.Objects.ObjectQuery User
{
get
{
if ((this._User == null))
{
this._User = base.CreateQuery("[User]");
}
return this._User;
}
}
private global::System.Data.Objects.ObjectQuery _User;
///
/// There are no comments for AuthenticationToken in the schema.
///
public global::System.Data.Objects.ObjectQuery AuthenticationToken
{
get
{
if ((this._AuthenticationToken == null))
{
this._AuthenticationToken = base.CreateQuery("[AuthenticationToken]");
}
return this._AuthenticationToken;
}
}
private global::System.Data.Objects.ObjectQuery _AuthenticationToken;
///
/// There are no comments for Consumer in the schema.
///
public global::System.Data.Objects.ObjectQuery Consumer
{
get
{
if ((this._Consumer == null))
{
this._Consumer = base.CreateQuery("[Consumer]");
}
return this._Consumer;
}
}
private global::System.Data.Objects.ObjectQuery _Consumer;
///
/// There are no comments for IssuedToken in the schema.
///
public global::System.Data.Objects.ObjectQuery IssuedToken
{
get
{
if ((this._IssuedToken == null))
{
this._IssuedToken = base.CreateQuery("[IssuedToken]");
}
return this._IssuedToken;
}
}
private global::System.Data.Objects.ObjectQuery _IssuedToken;
///
/// There are no comments for Nonces in the schema.
///
public global::System.Data.Objects.ObjectQuery Nonces
{
get
{
if ((this._Nonces == null))
{
this._Nonces = base.CreateQuery("[Nonces]");
}
return this._Nonces;
}
}
private global::System.Data.Objects.ObjectQuery _Nonces;
///
/// There are no comments for OpenIdAssociations in the schema.
///
public global::System.Data.Objects.ObjectQuery OpenIdAssociations
{
get
{
if ((this._OpenIdAssociations == null))
{
this._OpenIdAssociations = base.CreateQuery("[OpenIdAssociations]");
}
return this._OpenIdAssociations;
}
}
private global::System.Data.Objects.ObjectQuery _OpenIdAssociations;
///
/// There are no comments for Role in the schema.
///
public void AddToRole(Role role)
{
base.AddObject("Role", role);
}
///
/// There are no comments for User in the schema.
///
public void AddToUser(User user)
{
base.AddObject("User", user);
}
///
/// There are no comments for AuthenticationToken in the schema.
///
public void AddToAuthenticationToken(AuthenticationToken authenticationToken)
{
base.AddObject("AuthenticationToken", authenticationToken);
}
///
/// There are no comments for Consumer in the schema.
///
public void AddToConsumer(Consumer consumer)
{
base.AddObject("Consumer", consumer);
}
///
/// There are no comments for IssuedToken in the schema.
///
public void AddToIssuedToken(IssuedToken issuedToken)
{
base.AddObject("IssuedToken", issuedToken);
}
///
/// There are no comments for Nonces in the schema.
///
public void AddToNonces(Nonce nonce)
{
base.AddObject("Nonces", nonce);
}
///
/// There are no comments for OpenIdAssociations in the schema.
///
public void AddToOpenIdAssociations(OpenIdAssociation openIdAssociation)
{
base.AddObject("OpenIdAssociations", openIdAssociation);
}
}
///
/// There are no comments for DatabaseModel.AuthenticationToken in the schema.
///
///
/// AuthenticationTokenId
///
[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
{
///
/// Create a new AuthenticationToken object.
///
/// Initial value of ClaimedIdentifier.
/// Initial value of CreatedOnUtc.
/// Initial value of LastUsedUtc.
/// Initial value of UsageCount.
/// Initial value of AuthenticationTokenId.
public static AuthenticationToken CreateAuthenticationToken(string claimedIdentifier, global::System.DateTime createdOnUtc, global::System.DateTime lastUsedUtc, int usageCount, int authenticationTokenId)
{
AuthenticationToken authenticationToken = new AuthenticationToken();
authenticationToken.ClaimedIdentifier = claimedIdentifier;
authenticationToken.CreatedOnUtc = createdOnUtc;
authenticationToken.LastUsedUtc = lastUsedUtc;
authenticationToken.UsageCount = usageCount;
authenticationToken.AuthenticationTokenId = authenticationTokenId;
return authenticationToken;
}
///
/// There are no comments for Property ClaimedIdentifier in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string ClaimedIdentifier
{
get
{
return this._ClaimedIdentifier;
}
set
{
this.OnClaimedIdentifierChanging(value);
this.ReportPropertyChanging("ClaimedIdentifier");
this._ClaimedIdentifier = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
this.ReportPropertyChanged("ClaimedIdentifier");
this.OnClaimedIdentifierChanged();
}
}
private string _ClaimedIdentifier;
partial void OnClaimedIdentifierChanging(string value);
partial void OnClaimedIdentifierChanged();
///
/// There are no comments for Property FriendlyIdentifier in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string FriendlyIdentifier
{
get
{
return this._FriendlyIdentifier;
}
set
{
this.OnFriendlyIdentifierChanging(value);
this.ReportPropertyChanging("FriendlyIdentifier");
this._FriendlyIdentifier = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
this.ReportPropertyChanged("FriendlyIdentifier");
this.OnFriendlyIdentifierChanged();
}
}
private string _FriendlyIdentifier;
partial void OnFriendlyIdentifierChanging(string value);
partial void OnFriendlyIdentifierChanged();
///
/// There are no comments for Property CreatedOnUtc in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public global::System.DateTime CreatedOnUtc
{
get
{
return this._CreatedOnUtc;
}
private set
{
this.OnCreatedOnUtcChanging(value);
this.ReportPropertyChanging("CreatedOnUtc");
this._CreatedOnUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("CreatedOnUtc");
this.OnCreatedOnUtcChanged();
}
}
private global::System.DateTime _CreatedOnUtc;
partial void OnCreatedOnUtcChanging(global::System.DateTime value);
partial void OnCreatedOnUtcChanged();
///
/// There are no comments for Property LastUsedUtc in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public global::System.DateTime LastUsedUtc
{
get
{
return this._LastUsedUtc;
}
set
{
this.OnLastUsedUtcChanging(value);
this.ReportPropertyChanging("LastUsedUtc");
this._LastUsedUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("LastUsedUtc");
this.OnLastUsedUtcChanged();
}
}
private global::System.DateTime _LastUsedUtc;
partial void OnLastUsedUtcChanging(global::System.DateTime value);
partial void OnLastUsedUtcChanged();
///
/// There are no comments for Property UsageCount in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public int UsageCount
{
get
{
return this._UsageCount;
}
set
{
this.OnUsageCountChanging(value);
this.ReportPropertyChanging("UsageCount");
this._UsageCount = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("UsageCount");
this.OnUsageCountChanged();
}
}
private int _UsageCount;
partial void OnUsageCountChanging(int value);
partial void OnUsageCountChanged();
///
/// There are no comments for Property AuthenticationTokenId in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public int AuthenticationTokenId
{
get
{
return this._AuthenticationTokenId;
}
private set
{
this.OnAuthenticationTokenIdChanging(value);
this.ReportPropertyChanging("AuthenticationTokenId");
this._AuthenticationTokenId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("AuthenticationTokenId");
this.OnAuthenticationTokenIdChanged();
}
}
private int _AuthenticationTokenId;
partial void OnAuthenticationTokenIdChanging(int value);
partial void OnAuthenticationTokenIdChanged();
///
/// There are no comments for User in the schema.
///
[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()]
public User User
{
get
{
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("DatabaseModel.FK_AuthenticationToken_User", "User").Value;
}
set
{
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("DatabaseModel.FK_AuthenticationToken_User", "User").Value = value;
}
}
///
/// There are no comments for User in the schema.
///
[global::System.ComponentModel.BrowsableAttribute(false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public global::System.Data.Objects.DataClasses.EntityReference UserReference
{
get
{
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("DatabaseModel.FK_AuthenticationToken_User", "User");
}
set
{
if ((value != null))
{
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference("DatabaseModel.FK_AuthenticationToken_User", "User", value);
}
}
}
}
///
/// There are no comments for DatabaseModel.Role in the schema.
///
///
/// RoleId
///
[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
{
///
/// Create a new Role object.
///
/// Initial value of Name.
/// Initial value of RoleId.
public static Role CreateRole(string name, int roleId)
{
Role role = new Role();
role.Name = name;
role.RoleId = roleId;
return role;
}
///
/// There are no comments for Property Name in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string Name
{
get
{
return this._Name;
}
set
{
this.OnNameChanging(value);
this.ReportPropertyChanging("Name");
this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
this.ReportPropertyChanged("Name");
this.OnNameChanged();
}
}
private string _Name;
partial void OnNameChanging(string value);
partial void OnNameChanged();
///
/// There are no comments for Property RoleId in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public int RoleId
{
get
{
return this._RoleId;
}
private set
{
this.OnRoleIdChanging(value);
this.ReportPropertyChanging("RoleId");
this._RoleId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("RoleId");
this.OnRoleIdChanged();
}
}
private int _RoleId;
partial void OnRoleIdChanging(int value);
partial void OnRoleIdChanged();
///
/// There are no comments for Users in the schema.
///
[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 Users
{
get
{
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection("DatabaseModel.UserRole", "User");
}
set
{
if ((value != null))
{
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection("DatabaseModel.UserRole", "User", value);
}
}
}
}
///
/// There are no comments for DatabaseModel.User in the schema.
///
///
/// UserId
///
[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
{
///
/// Create a new User object.
///
/// Initial value of EmailAddressVerified.
/// Initial value of CreatedOnUtc.
/// Initial value of UserId.
public static User CreateUser(bool emailAddressVerified, global::System.DateTime createdOnUtc, int userId)
{
User user = new User();
user.EmailAddressVerified = emailAddressVerified;
user.CreatedOnUtc = createdOnUtc;
user.UserId = userId;
return user;
}
///
/// There are no comments for Property FirstName in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string FirstName
{
get
{
return this._FirstName;
}
set
{
this.OnFirstNameChanging(value);
this.ReportPropertyChanging("FirstName");
this._FirstName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
this.ReportPropertyChanged("FirstName");
this.OnFirstNameChanged();
}
}
private string _FirstName;
partial void OnFirstNameChanging(string value);
partial void OnFirstNameChanged();
///
/// There are no comments for Property LastName in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string LastName
{
get
{
return this._LastName;
}
set
{
this.OnLastNameChanging(value);
this.ReportPropertyChanging("LastName");
this._LastName = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
this.ReportPropertyChanged("LastName");
this.OnLastNameChanged();
}
}
private string _LastName;
partial void OnLastNameChanging(string value);
partial void OnLastNameChanged();
///
/// The email address claimed to be controlled by the user. Whether it is actually owned by the user is indicated by the EmailAddressVerified property.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string EmailAddress
{
get
{
return this._EmailAddress;
}
set
{
this.OnEmailAddressChanging(value);
this.ReportPropertyChanging("EmailAddress");
this._EmailAddress = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
this.ReportPropertyChanged("EmailAddress");
this.OnEmailAddressChanged();
}
}
private string _EmailAddress;
partial void OnEmailAddressChanging(string value);
partial void OnEmailAddressChanged();
///
/// A value indicating whether the email address has been verified as actually owned by this user.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public bool EmailAddressVerified
{
get
{
return this._EmailAddressVerified;
}
set
{
this.OnEmailAddressVerifiedChanging(value);
this.ReportPropertyChanging("EmailAddressVerified");
this._EmailAddressVerified = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("EmailAddressVerified");
this.OnEmailAddressVerifiedChanged();
}
}
private bool _EmailAddressVerified;
partial void OnEmailAddressVerifiedChanging(bool value);
partial void OnEmailAddressVerifiedChanged();
///
/// There are no comments for Property CreatedOnUtc in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public global::System.DateTime CreatedOnUtc
{
get
{
return this._CreatedOnUtc;
}
private set
{
this.OnCreatedOnUtcChanging(value);
this.ReportPropertyChanging("CreatedOnUtc");
this._CreatedOnUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("CreatedOnUtc");
this.OnCreatedOnUtcChanged();
}
}
private global::System.DateTime _CreatedOnUtc;
partial void OnCreatedOnUtcChanging(global::System.DateTime value);
partial void OnCreatedOnUtcChanged();
///
/// There are no comments for Property UserId in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public int UserId
{
get
{
return this._UserId;
}
private set
{
this.OnUserIdChanging(value);
this.ReportPropertyChanging("UserId");
this._UserId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("UserId");
this.OnUserIdChanged();
}
}
private int _UserId;
partial void OnUserIdChanging(int value);
partial void OnUserIdChanged();
///
/// There are no comments for Roles in the schema.
///
[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 Roles
{
get
{
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection("DatabaseModel.UserRole", "Role");
}
set
{
if ((value != null))
{
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection("DatabaseModel.UserRole", "Role", value);
}
}
}
///
/// There are no comments for AuthenticationTokens in the schema.
///
[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 AuthenticationTokens
{
get
{
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken");
}
set
{
if ((value != null))
{
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection("DatabaseModel.FK_AuthenticationToken_User", "AuthenticationToken", value);
}
}
}
///
/// There are no comments for IssuedTokens in the schema.
///
[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 IssuedTokens
{
get
{
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection("DatabaseModel.FK_IssuedToken_User1", "IssuedToken");
}
set
{
if ((value != null))
{
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection("DatabaseModel.FK_IssuedToken_User1", "IssuedToken", value);
}
}
}
}
///
/// There are no comments for DatabaseModel.Consumer in the schema.
///
///
/// ConsumerId
///
[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
{
///
/// Create a new Consumer object.
///
/// Initial value of ConsumerKey.
/// Initial value of VerificationCodeLength.
/// Initial value of ConsumerId.
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;
}
///
/// There are no comments for Property ConsumerKey in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string ConsumerKey
{
get
{
return this._ConsumerKey;
}
set
{
this.OnConsumerKeyChanging(value);
this.ReportPropertyChanging("ConsumerKey");
this._ConsumerKey = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
this.ReportPropertyChanged("ConsumerKey");
this.OnConsumerKeyChanged();
}
}
private string _ConsumerKey;
partial void OnConsumerKeyChanging(string value);
partial void OnConsumerKeyChanged();
///
/// There are no comments for Property ConsumerSecret in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string ConsumerSecret
{
get
{
return this._ConsumerSecret;
}
set
{
this.OnConsumerSecretChanging(value);
this.ReportPropertyChanging("ConsumerSecret");
this._ConsumerSecret = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
this.ReportPropertyChanged("ConsumerSecret");
this.OnConsumerSecretChanged();
}
}
private string _ConsumerSecret;
partial void OnConsumerSecretChanging(string value);
partial void OnConsumerSecretChanged();
///
/// There are no comments for Property X509CertificateAsBinary in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
[global::System.Runtime.Serialization.DataMemberAttribute()]
private byte[] X509CertificateAsBinary
{
get
{
return global::System.Data.Objects.DataClasses.StructuralObject.GetValidValue(this._X509CertificateAsBinary);
}
set
{
this.OnX509CertificateAsBinaryChanging(value);
this.ReportPropertyChanging("X509CertificateAsBinary");
this._X509CertificateAsBinary = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
this.ReportPropertyChanged("X509CertificateAsBinary");
this.OnX509CertificateAsBinaryChanged();
}
}
private byte[] _X509CertificateAsBinary;
partial void OnX509CertificateAsBinaryChanging(byte[] value);
partial void OnX509CertificateAsBinaryChanged();
///
/// There are no comments for Property CallbackAsString in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string CallbackAsString
{
get
{
return this._CallbackAsString;
}
set
{
this.OnCallbackAsStringChanging(value);
this.ReportPropertyChanging("CallbackAsString");
this._CallbackAsString = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
this.ReportPropertyChanged("CallbackAsString");
this.OnCallbackAsStringChanged();
}
}
private string _CallbackAsString;
partial void OnCallbackAsStringChanging(string value);
partial void OnCallbackAsStringChanged();
///
/// There are no comments for Property VerificationCodeFormatAsInt in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
private int VerificationCodeFormatAsInt
{
get
{
return this._VerificationCodeFormatAsInt;
}
set
{
this.OnVerificationCodeFormatAsIntChanging(value);
this.ReportPropertyChanging("VerificationCodeFormatAsInt");
this._VerificationCodeFormatAsInt = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("VerificationCodeFormatAsInt");
this.OnVerificationCodeFormatAsIntChanged();
}
}
private int _VerificationCodeFormatAsInt;
partial void OnVerificationCodeFormatAsIntChanging(int value);
partial void OnVerificationCodeFormatAsIntChanged();
///
/// There are no comments for Property VerificationCodeLength in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public int VerificationCodeLength
{
get
{
return this._VerificationCodeLength;
}
set
{
this.OnVerificationCodeLengthChanging(value);
this.ReportPropertyChanging("VerificationCodeLength");
this._VerificationCodeLength = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("VerificationCodeLength");
this.OnVerificationCodeLengthChanged();
}
}
private int _VerificationCodeLength;
partial void OnVerificationCodeLengthChanging(int value);
partial void OnVerificationCodeLengthChanged();
///
/// There are no comments for Property ConsumerId in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public int ConsumerId
{
get
{
return this._ConsumerId;
}
private set
{
this.OnConsumerIdChanging(value);
this.ReportPropertyChanging("ConsumerId");
this._ConsumerId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("ConsumerId");
this.OnConsumerIdChanged();
}
}
private int _ConsumerId;
partial void OnConsumerIdChanging(int value);
partial void OnConsumerIdChanged();
///
/// There are no comments for Property Name in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string Name
{
get
{
return this._Name;
}
set
{
this.OnNameChanging(value);
this.ReportPropertyChanging("Name");
this._Name = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
this.ReportPropertyChanged("Name");
this.OnNameChanged();
}
}
private string _Name;
partial void OnNameChanging(string value);
partial void OnNameChanged();
///
/// There are no comments for IssuedTokens in the schema.
///
[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 IssuedTokens
{
get
{
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection("DatabaseModel.FK_IssuedToken_Consumer1", "IssuedToken");
}
set
{
if ((value != null))
{
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection("DatabaseModel.FK_IssuedToken_Consumer1", "IssuedToken", value);
}
}
}
}
///
/// There are no comments for DatabaseModel.IssuedToken in the schema.
///
///
/// IssuedTokenId
///
[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
{
///
/// There are no comments for Property Token in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string Token
{
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();
}
}
private string _Token;
partial void OnTokenChanging(string value);
partial void OnTokenChanged();
///
/// There are no comments for Property TokenSecret in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string TokenSecret
{
get
{
return this._TokenSecret;
}
set
{
this.OnTokenSecretChanging(value);
this.ReportPropertyChanging("TokenSecret");
this._TokenSecret = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
this.ReportPropertyChanged("TokenSecret");
this.OnTokenSecretChanged();
}
}
private string _TokenSecret;
partial void OnTokenSecretChanging(string value);
partial void OnTokenSecretChanged();
///
/// There are no comments for Property CreatedOnUtc in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public global::System.DateTime CreatedOnUtc
{
get
{
return this._CreatedOnUtc;
}
internal set
{
this.OnCreatedOnUtcChanging(value);
this.ReportPropertyChanging("CreatedOnUtc");
this._CreatedOnUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("CreatedOnUtc");
this.OnCreatedOnUtcChanged();
}
}
private global::System.DateTime _CreatedOnUtc;
partial void OnCreatedOnUtcChanging(global::System.DateTime value);
partial void OnCreatedOnUtcChanged();
///
/// There are no comments for Property Scope in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string Scope
{
get
{
return this._Scope;
}
set
{
this.OnScopeChanging(value);
this.ReportPropertyChanging("Scope");
this._Scope = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
this.ReportPropertyChanged("Scope");
this.OnScopeChanged();
}
}
private string _Scope;
partial void OnScopeChanging(string value);
partial void OnScopeChanged();
///
/// There are no comments for Property IssuedTokenId in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public int IssuedTokenId
{
get
{
return this._IssuedTokenId;
}
internal set
{
this.OnIssuedTokenIdChanging(value);
this.ReportPropertyChanging("IssuedTokenId");
this._IssuedTokenId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("IssuedTokenId");
this.OnIssuedTokenIdChanged();
}
}
private int _IssuedTokenId;
partial void OnIssuedTokenIdChanging(int value);
partial void OnIssuedTokenIdChanged();
///
/// There are no comments for Consumer in the schema.
///
[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
{
get
{
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer").Value;
}
set
{
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer").Value = value;
}
}
///
/// There are no comments for Consumer in the schema.
///
[global::System.ComponentModel.BrowsableAttribute(false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public global::System.Data.Objects.DataClasses.EntityReference ConsumerReference
{
get
{
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer");
}
set
{
if ((value != null))
{
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference("DatabaseModel.FK_IssuedToken_Consumer1", "Consumer", value);
}
}
}
///
/// There are no comments for User in the schema.
///
[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
{
get
{
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("DatabaseModel.FK_IssuedToken_User1", "User").Value;
}
set
{
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("DatabaseModel.FK_IssuedToken_User1", "User").Value = value;
}
}
///
/// There are no comments for User in the schema.
///
[global::System.ComponentModel.BrowsableAttribute(false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public global::System.Data.Objects.DataClasses.EntityReference UserReference
{
get
{
return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("DatabaseModel.FK_IssuedToken_User1", "User");
}
set
{
if ((value != null))
{
((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference("DatabaseModel.FK_IssuedToken_User1", "User", value);
}
}
}
}
///
/// There are no comments for DatabaseModel.IssuedRequestToken in the schema.
///
///
/// IssuedTokenId
///
[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
{
///
/// Create a new IssuedRequestToken object.
///
/// Initial value of Token.
/// Initial value of TokenSecret.
/// Initial value of CreatedOnUtc.
/// Initial value of IssuedTokenId.
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;
}
///
/// There are no comments for Property ConsumerVersionAsString in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
private string ConsumerVersionAsString
{
get
{
return this._ConsumerVersionAsString;
}
set
{
this.OnConsumerVersionAsStringChanging(value);
this.ReportPropertyChanging("ConsumerVersionAsString");
this._ConsumerVersionAsString = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
this.ReportPropertyChanged("ConsumerVersionAsString");
this.OnConsumerVersionAsStringChanged();
}
}
private string _ConsumerVersionAsString;
partial void OnConsumerVersionAsStringChanging(string value);
partial void OnConsumerVersionAsStringChanged();
///
/// There are no comments for Property VerificationCode in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string VerificationCode
{
get
{
return this._VerificationCode;
}
set
{
this.OnVerificationCodeChanging(value);
this.ReportPropertyChanging("VerificationCode");
this._VerificationCode = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
this.ReportPropertyChanged("VerificationCode");
this.OnVerificationCodeChanged();
}
}
private string _VerificationCode;
partial void OnVerificationCodeChanging(string value);
partial void OnVerificationCodeChanged();
///
/// There are no comments for Property CallbackAsString in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
[global::System.Runtime.Serialization.DataMemberAttribute()]
private string CallbackAsString
{
get
{
return this._CallbackAsString;
}
set
{
this.OnCallbackAsStringChanging(value);
this.ReportPropertyChanging("CallbackAsString");
this._CallbackAsString = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
this.ReportPropertyChanged("CallbackAsString");
this.OnCallbackAsStringChanged();
}
}
private string _CallbackAsString;
partial void OnCallbackAsStringChanging(string value);
partial void OnCallbackAsStringChanged();
}
///
/// There are no comments for DatabaseModel.IssuedAccessToken in the schema.
///
///
/// IssuedTokenId
///
[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
{
///
/// Create a new IssuedAccessToken object.
///
/// Initial value of Token.
/// Initial value of TokenSecret.
/// Initial value of CreatedOnUtc.
/// Initial value of IssuedTokenId.
public static IssuedAccessToken CreateIssuedAccessToken(string token, string tokenSecret, global::System.DateTime createdOnUtc, int issuedTokenId)
{
IssuedAccessToken issuedAccessToken = new IssuedAccessToken();
issuedAccessToken.Token = token;
issuedAccessToken.TokenSecret = tokenSecret;
issuedAccessToken.CreatedOnUtc = createdOnUtc;
issuedAccessToken.IssuedTokenId = issuedTokenId;
return issuedAccessToken;
}
///
/// There are no comments for Property ExpirationDateUtc in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public global::System.Nullable ExpirationDateUtc
{
get
{
return this._ExpirationDateUtc;
}
set
{
this.OnExpirationDateUtcChanging(value);
this.ReportPropertyChanging("ExpirationDateUtc");
this._ExpirationDateUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("ExpirationDateUtc");
this.OnExpirationDateUtcChanged();
}
}
private global::System.Nullable _ExpirationDateUtc;
partial void OnExpirationDateUtcChanging(global::System.Nullable value);
partial void OnExpirationDateUtcChanged();
}
///
/// There are no comments for DatabaseModel.Nonce in the schema.
///
///
/// NonceId
///
[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
{
///
/// Create a new Nonce object.
///
/// Initial value of NonceId.
/// Initial value of Context.
/// Initial value of Code.
/// Initial value of IssuedUtc.
/// Initial value of ExpiresUtc.
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;
}
///
/// There are no comments for Property NonceId in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public int NonceId
{
get
{
return this._NonceId;
}
set
{
this.OnNonceIdChanging(value);
this.ReportPropertyChanging("NonceId");
this._NonceId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("NonceId");
this.OnNonceIdChanged();
}
}
private int _NonceId;
partial void OnNonceIdChanging(int value);
partial void OnNonceIdChanged();
///
/// Gets or sets the Provider Endpoint URL the nonce came from.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string Context
{
get
{
return this._Context;
}
set
{
this.OnContextChanging(value);
this.ReportPropertyChanging("Context");
this._Context = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
this.ReportPropertyChanged("Context");
this.OnContextChanged();
}
}
private string _Context;
partial void OnContextChanging(string value);
partial void OnContextChanged();
///
/// There are no comments for Property Code in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string Code
{
get
{
return this._Code;
}
set
{
this.OnCodeChanging(value);
this.ReportPropertyChanging("Code");
this._Code = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
this.ReportPropertyChanged("Code");
this.OnCodeChanged();
}
}
private string _Code;
partial void OnCodeChanging(string value);
partial void OnCodeChanged();
///
/// There are no comments for Property IssuedUtc in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public global::System.DateTime IssuedUtc
{
get
{
return this._IssuedUtc;
}
set
{
this.OnIssuedUtcChanging(value);
this.ReportPropertyChanging("IssuedUtc");
this._IssuedUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("IssuedUtc");
this.OnIssuedUtcChanged();
}
}
private global::System.DateTime _IssuedUtc;
partial void OnIssuedUtcChanging(global::System.DateTime value);
partial void OnIssuedUtcChanged();
///
/// There are no comments for Property ExpiresUtc in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public global::System.DateTime ExpiresUtc
{
get
{
return this._ExpiresUtc;
}
set
{
this.OnExpiresUtcChanging(value);
this.ReportPropertyChanging("ExpiresUtc");
this._ExpiresUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("ExpiresUtc");
this.OnExpiresUtcChanged();
}
}
private global::System.DateTime _ExpiresUtc;
partial void OnExpiresUtcChanging(global::System.DateTime value);
partial void OnExpiresUtcChanged();
}
///
/// There are no comments for DatabaseModel.OpenIdAssociation in the schema.
///
///
/// AssociationId
///
[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
{
///
/// Create a new OpenIdAssociation object.
///
/// Initial value of AssociationId.
/// Initial value of DistinguishingFactor.
/// Initial value of AssociationHandle.
/// Initial value of ExpirationUtc.
/// Initial value of PrivateData.
/// Initial value of PrivateDataLength.
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;
}
///
/// There are no comments for Property AssociationId in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public int AssociationId
{
get
{
return this._AssociationId;
}
set
{
this.OnAssociationIdChanging(value);
this.ReportPropertyChanging("AssociationId");
this._AssociationId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("AssociationId");
this.OnAssociationIdChanged();
}
}
private int _AssociationId;
partial void OnAssociationIdChanging(int value);
partial void OnAssociationIdChanged();
///
/// Gets or sets the Provider Endpoint URL the association is with.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string DistinguishingFactor
{
get
{
return this._DistinguishingFactor;
}
set
{
this.OnDistinguishingFactorChanging(value);
this.ReportPropertyChanging("DistinguishingFactor");
this._DistinguishingFactor = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
this.ReportPropertyChanged("DistinguishingFactor");
this.OnDistinguishingFactorChanged();
}
}
private string _DistinguishingFactor;
partial void OnDistinguishingFactorChanging(string value);
partial void OnDistinguishingFactorChanged();
///
/// There are no comments for Property AssociationHandle in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public string AssociationHandle
{
get
{
return this._AssociationHandle;
}
set
{
this.OnAssociationHandleChanging(value);
this.ReportPropertyChanging("AssociationHandle");
this._AssociationHandle = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
this.ReportPropertyChanged("AssociationHandle");
this.OnAssociationHandleChanged();
}
}
private string _AssociationHandle;
partial void OnAssociationHandleChanging(string value);
partial void OnAssociationHandleChanged();
///
/// There are no comments for Property ExpirationUtc in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public global::System.DateTime ExpirationUtc
{
get
{
return this._ExpirationUtc;
}
set
{
this.OnExpirationUtcChanging(value);
this.ReportPropertyChanging("ExpirationUtc");
this._ExpirationUtc = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("ExpirationUtc");
this.OnExpirationUtcChanged();
}
}
private global::System.DateTime _ExpirationUtc;
partial void OnExpirationUtcChanging(global::System.DateTime value);
partial void OnExpirationUtcChanged();
///
/// There are no comments for Property PrivateData in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public byte[] PrivateData
{
get
{
return global::System.Data.Objects.DataClasses.StructuralObject.GetValidValue(this._PrivateData);
}
set
{
this.OnPrivateDataChanging(value);
this.ReportPropertyChanging("PrivateData");
this._PrivateData = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, false);
this.ReportPropertyChanged("PrivateData");
this.OnPrivateDataChanged();
}
}
private byte[] _PrivateData;
partial void OnPrivateDataChanging(byte[] value);
partial void OnPrivateDataChanged();
///
/// There are no comments for Property PrivateDataLength in the schema.
///
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
public int PrivateDataLength
{
get
{
return this._PrivateDataLength;
}
set
{
this.OnPrivateDataLengthChanging(value);
this.ReportPropertyChanging("PrivateDataLength");
this._PrivateDataLength = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value);
this.ReportPropertyChanged("PrivateDataLength");
this.OnPrivateDataLengthChanged();
}
}
private int _PrivateDataLength;
partial void OnPrivateDataLengthChanging(int value);
partial void OnPrivateDataLengthChanged();
}
}