//------------------------------------------------------------------------------ // // 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", "UserAuthenticationToken", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.User), "AuthenticationToken", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.AuthenticationToken))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "FK_IssuedToken_Consumer", "Consumer", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(RelyingPartyLogic.Consumer), "IssuedTokens", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.IssuedToken))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "FK_IssuedToken_User", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(RelyingPartyLogic.User), "IssuedTokens", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(RelyingPartyLogic.IssuedToken))] // Original file name: // Generation date: 11/13/2009 4:45:45 PM 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 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 DatabaseModel.AuthenticationToken in the schema. /// /// /// Id /// [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 Id. /// Initial value of ClaimedIdentifier. public static AuthenticationToken CreateAuthenticationToken(int id, string claimedIdentifier) { AuthenticationToken authenticationToken = new AuthenticationToken(); authenticationToken.Id = id; authenticationToken.ClaimedIdentifier = claimedIdentifier; return authenticationToken; } /// /// There are no comments for Property Id in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public int Id { get { return this._Id; } set { this.OnIdChanging(value); this.ReportPropertyChanging("Id"); this._Id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("Id"); this.OnIdChanged(); } } private int _Id; partial void OnIdChanging(int value); partial void OnIdChanged(); /// /// 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 User in the schema. /// [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "UserAuthenticationToken", "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.UserAuthenticationToken", "User").Value; } set { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("DatabaseModel.UserAuthenticationToken", "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.UserAuthenticationToken", "User"); } set { if ((value != null)) { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference("DatabaseModel.UserAuthenticationToken", "User", value); } } } } /// /// There are no comments for DatabaseModel.Role in the schema. /// /// /// Id /// [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 Id. /// Initial value of Name. public static Role CreateRole(int id, string name) { Role role = new Role(); role.Id = id; role.Name = name; return role; } /// /// There are no comments for Property Id in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public int Id { get { return this._Id; } private set { this.OnIdChanging(value); this.ReportPropertyChanging("Id"); this._Id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("Id"); this.OnIdChanged(); } } private int _Id; partial void OnIdChanging(int value); partial void OnIdChanged(); /// /// 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 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. /// /// /// Id /// [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 Id. /// Initial value of EmailAddressVerified. public static User CreateUser(int id, bool emailAddressVerified) { User user = new User(); user.Id = id; user.EmailAddressVerified = emailAddressVerified; return user; } /// /// There are no comments for Property Id in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public int Id { get { return this._Id; } private set { this.OnIdChanging(value); this.ReportPropertyChanging("Id"); this._Id = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("Id"); this.OnIdChanged(); } } private int _Id; partial void OnIdChanging(int value); partial void OnIdChanged(); /// /// 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 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", "UserAuthenticationToken", "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.UserAuthenticationToken", "AuthenticationToken"); } set { if ((value != null)) { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection("DatabaseModel.UserAuthenticationToken", "AuthenticationToken", value); } } } /// /// There are no comments for IssuedToken in the schema. /// [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_User", "IssuedTokens")] [global::System.Xml.Serialization.XmlIgnoreAttribute()] [global::System.Xml.Serialization.SoapIgnoreAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Data.Objects.DataClasses.EntityCollection IssuedToken { get { return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection("DatabaseModel.FK_IssuedToken_User", "IssuedTokens"); } set { if ((value != null)) { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection("DatabaseModel.FK_IssuedToken_User", "IssuedTokens", 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; } 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 IssuedToken in the schema. /// [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer", "IssuedTokens")] [global::System.Xml.Serialization.XmlIgnoreAttribute()] [global::System.Xml.Serialization.SoapIgnoreAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Data.Objects.DataClasses.EntityCollection IssuedToken { get { return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection("DatabaseModel.FK_IssuedToken_Consumer", "IssuedTokens"); } set { if ((value != null)) { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection("DatabaseModel.FK_IssuedToken_Consumer", "IssuedTokens", value); } } } } /// /// There are no comments for DatabaseModel.IssuedToken in the schema. /// /// /// TokenId /// [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 TokenId in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public int TokenId { get { return this._TokenId; } set { this.OnTokenIdChanging(value); this.ReportPropertyChanging("TokenId"); this._TokenId = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("TokenId"); this.OnTokenIdChanged(); } } private int _TokenId; partial void OnTokenIdChanging(int value); partial void OnTokenIdChanged(); /// /// 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 CreatedOn in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable=false)] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.DateTime CreatedOn { get { return this._CreatedOn; } set { this.OnCreatedOnChanging(value); this.ReportPropertyChanging("CreatedOn"); this._CreatedOn = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("CreatedOn"); this.OnCreatedOnChanged(); } } private global::System.DateTime _CreatedOn; partial void OnCreatedOnChanging(global::System.DateTime value); partial void OnCreatedOnChanged(); /// /// 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 Consumer in the schema. /// [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_Consumer", "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_Consumer", "Consumer").Value; } set { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("DatabaseModel.FK_IssuedToken_Consumer", "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_Consumer", "Consumer"); } set { if ((value != null)) { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference("DatabaseModel.FK_IssuedToken_Consumer", "Consumer", value); } } } /// /// There are no comments for User in the schema. /// [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "FK_IssuedToken_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_IssuedToken_User", "User").Value; } set { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference("DatabaseModel.FK_IssuedToken_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_IssuedToken_User", "User"); } set { if ((value != null)) { ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference("DatabaseModel.FK_IssuedToken_User", "User", value); } } } } /// /// There are no comments for DatabaseModel.IssuedRequestToken in the schema. /// /// /// TokenId /// [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 TokenId. /// Initial value of Token. /// Initial value of TokenSecret. /// Initial value of CreatedOn. public static IssuedRequestToken CreateIssuedRequestToken(int tokenId, string token, string tokenSecret, global::System.DateTime createdOn) { IssuedRequestToken issuedRequestToken = new IssuedRequestToken(); issuedRequestToken.TokenId = tokenId; issuedRequestToken.Token = token; issuedRequestToken.TokenSecret = tokenSecret; issuedRequestToken.CreatedOn = createdOn; 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. /// /// /// TokenId /// [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 TokenId. /// Initial value of Token. /// Initial value of TokenSecret. /// Initial value of CreatedOn. public static IssuedAccessToken CreateIssuedAccessToken(int tokenId, string token, string tokenSecret, global::System.DateTime createdOn) { IssuedAccessToken issuedAccessToken = new IssuedAccessToken(); issuedAccessToken.TokenId = tokenId; issuedAccessToken.Token = token; issuedAccessToken.TokenSecret = tokenSecret; issuedAccessToken.CreatedOn = createdOn; return issuedAccessToken; } /// /// There are no comments for Property ExpirationDate in the schema. /// [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute()] [global::System.Runtime.Serialization.DataMemberAttribute()] public global::System.Nullable ExpirationDate { get { return this._ExpirationDate; } set { this.OnExpirationDateChanging(value); this.ReportPropertyChanging("ExpirationDate"); this._ExpirationDate = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value); this.ReportPropertyChanged("ExpirationDate"); this.OnExpirationDateChanged(); } } private global::System.Nullable _ExpirationDate; partial void OnExpirationDateChanging(global::System.Nullable value); partial void OnExpirationDateChanged(); } }