//------------------------------------------------------------------------------ // // 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(WebFormsOpenIdRelyingParty.Role), "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(WebFormsOpenIdRelyingParty.User))] [assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "UserAuthenticationToken", "User", global::System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(WebFormsOpenIdRelyingParty.User), "AuthenticationToken", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(WebFormsOpenIdRelyingParty.AuthenticationToken))] // Original file name: // Generation date: 10/8/2009 12:07:35 PM namespace WebFormsOpenIdRelyingParty { /// /// 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 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 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. public static User CreateUser(int id) { User user = new User(); user.Id = id; 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(); /// /// There are no comments for Property EmailAddress in the schema. /// [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(); /// /// 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); } } } } }