diff options
Diffstat (limited to 'starterkits/WebFormsRelyingParty/Model.Designer.cs')
-rw-r--r-- | starterkits/WebFormsRelyingParty/Model.Designer.cs | 494 |
1 files changed, 494 insertions, 0 deletions
diff --git a/starterkits/WebFormsRelyingParty/Model.Designer.cs b/starterkits/WebFormsRelyingParty/Model.Designer.cs new file mode 100644 index 0000000..f34f21c --- /dev/null +++ b/starterkits/WebFormsRelyingParty/Model.Designer.cs @@ -0,0 +1,494 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// 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. +// </auto-generated> +//------------------------------------------------------------------------------ + +[assembly: global::System.Data.Objects.DataClasses.EdmSchemaAttribute()] +[assembly: global::System.Data.Objects.DataClasses.EdmRelationshipAttribute("DatabaseModel", "UserRole", "Role", global::System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(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 +{ + + /// <summary> + /// There are no comments for DatabaseEntities in the schema. + /// </summary> + public partial class DatabaseEntities : global::System.Data.Objects.ObjectContext + { + /// <summary> + /// Initializes a new DatabaseEntities object using the connection string found in the 'DatabaseEntities' section of the application configuration file. + /// </summary> + public DatabaseEntities() : + base("name=DatabaseEntities", "DatabaseEntities") + { + this.OnContextCreated(); + } + /// <summary> + /// Initialize a new DatabaseEntities object. + /// </summary> + public DatabaseEntities(string connectionString) : + base(connectionString, "DatabaseEntities") + { + this.OnContextCreated(); + } + /// <summary> + /// Initialize a new DatabaseEntities object. + /// </summary> + public DatabaseEntities(global::System.Data.EntityClient.EntityConnection connection) : + base(connection, "DatabaseEntities") + { + this.OnContextCreated(); + } + partial void OnContextCreated(); + /// <summary> + /// There are no comments for Role in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<Role> Role + { + get + { + if ((this._Role == null)) + { + this._Role = base.CreateQuery<Role>("[Role]"); + } + return this._Role; + } + } + private global::System.Data.Objects.ObjectQuery<Role> _Role; + /// <summary> + /// There are no comments for User in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<User> User + { + get + { + if ((this._User == null)) + { + this._User = base.CreateQuery<User>("[User]"); + } + return this._User; + } + } + private global::System.Data.Objects.ObjectQuery<User> _User; + /// <summary> + /// There are no comments for AuthenticationToken in the schema. + /// </summary> + public global::System.Data.Objects.ObjectQuery<AuthenticationToken> AuthenticationToken + { + get + { + if ((this._AuthenticationToken == null)) + { + this._AuthenticationToken = base.CreateQuery<AuthenticationToken>("[AuthenticationToken]"); + } + return this._AuthenticationToken; + } + } + private global::System.Data.Objects.ObjectQuery<AuthenticationToken> _AuthenticationToken; + /// <summary> + /// There are no comments for Role in the schema. + /// </summary> + public void AddToRole(Role role) + { + base.AddObject("Role", role); + } + /// <summary> + /// There are no comments for User in the schema. + /// </summary> + public void AddToUser(User user) + { + base.AddObject("User", user); + } + /// <summary> + /// There are no comments for AuthenticationToken in the schema. + /// </summary> + public void AddToAuthenticationToken(AuthenticationToken authenticationToken) + { + base.AddObject("AuthenticationToken", authenticationToken); + } + } + /// <summary> + /// There are no comments for DatabaseModel.AuthenticationToken in the schema. + /// </summary> + /// <KeyProperties> + /// Id + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="AuthenticationToken")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class AuthenticationToken : global::System.Data.Objects.DataClasses.EntityObject + { + /// <summary> + /// Create a new AuthenticationToken object. + /// </summary> + /// <param name="id">Initial value of Id.</param> + /// <param name="claimedIdentifier">Initial value of ClaimedIdentifier.</param> + public static AuthenticationToken CreateAuthenticationToken(int id, string claimedIdentifier) + { + AuthenticationToken authenticationToken = new AuthenticationToken(); + authenticationToken.Id = id; + authenticationToken.ClaimedIdentifier = claimedIdentifier; + return authenticationToken; + } + /// <summary> + /// There are no comments for Property Id in the schema. + /// </summary> + [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(); + /// <summary> + /// There are no comments for Property ClaimedIdentifier in the schema. + /// </summary> + [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(); + /// <summary> + /// There are no comments for Property FriendlyIdentifier in the schema. + /// </summary> + [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(); + /// <summary> + /// There are no comments for User in the schema. + /// </summary> + [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<User>("DatabaseModel.UserAuthenticationToken", "User").Value; + } + set + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.UserAuthenticationToken", "User").Value = value; + } + } + /// <summary> + /// There are no comments for User in the schema. + /// </summary> + [global::System.ComponentModel.BrowsableAttribute(false)] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityReference<User> UserReference + { + get + { + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedReference<User>("DatabaseModel.UserAuthenticationToken", "User"); + } + set + { + if ((value != null)) + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedReference<User>("DatabaseModel.UserAuthenticationToken", "User", value); + } + } + } + } + /// <summary> + /// There are no comments for DatabaseModel.Role in the schema. + /// </summary> + /// <KeyProperties> + /// Id + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="Role")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class Role : global::System.Data.Objects.DataClasses.EntityObject + { + /// <summary> + /// Create a new Role object. + /// </summary> + /// <param name="id">Initial value of Id.</param> + /// <param name="name">Initial value of Name.</param> + public static Role CreateRole(int id, string name) + { + Role role = new Role(); + role.Id = id; + role.Name = name; + return role; + } + /// <summary> + /// There are no comments for Property Id in the schema. + /// </summary> + [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(); + /// <summary> + /// There are no comments for Property Name in the schema. + /// </summary> + [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(); + /// <summary> + /// There are no comments for Users in the schema. + /// </summary> + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "UserRole", "User")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityCollection<User> Users + { + get + { + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<User>("DatabaseModel.UserRole", "User"); + } + set + { + if ((value != null)) + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<User>("DatabaseModel.UserRole", "User", value); + } + } + } + } + /// <summary> + /// There are no comments for DatabaseModel.User in the schema. + /// </summary> + /// <KeyProperties> + /// Id + /// </KeyProperties> + [global::System.Data.Objects.DataClasses.EdmEntityTypeAttribute(NamespaceName="DatabaseModel", Name="User")] + [global::System.Runtime.Serialization.DataContractAttribute(IsReference=true)] + [global::System.Serializable()] + public partial class User : global::System.Data.Objects.DataClasses.EntityObject + { + /// <summary> + /// Create a new User object. + /// </summary> + /// <param name="id">Initial value of Id.</param> + public static User CreateUser(int id) + { + User user = new User(); + user.Id = id; + return user; + } + /// <summary> + /// There are no comments for Property Id in the schema. + /// </summary> + [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(); + /// <summary> + /// There are no comments for Property FirstName in the schema. + /// </summary> + [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(); + /// <summary> + /// There are no comments for Property LastName in the schema. + /// </summary> + [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(); + /// <summary> + /// There are no comments for Property EmailAddress in the schema. + /// </summary> + [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(); + /// <summary> + /// There are no comments for Roles in the schema. + /// </summary> + [global::System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute("DatabaseModel", "UserRole", "Role")] + [global::System.Xml.Serialization.XmlIgnoreAttribute()] + [global::System.Xml.Serialization.SoapIgnoreAttribute()] + [global::System.Runtime.Serialization.DataMemberAttribute()] + public global::System.Data.Objects.DataClasses.EntityCollection<Role> Roles + { + get + { + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<Role>("DatabaseModel.UserRole", "Role"); + } + set + { + if ((value != null)) + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<Role>("DatabaseModel.UserRole", "Role", value); + } + } + } + /// <summary> + /// There are no comments for AuthenticationTokens in the schema. + /// </summary> + [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<AuthenticationToken> AuthenticationTokens + { + get + { + return ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.GetRelatedCollection<AuthenticationToken>("DatabaseModel.UserAuthenticationToken", "AuthenticationToken"); + } + set + { + if ((value != null)) + { + ((global::System.Data.Objects.DataClasses.IEntityWithRelationships)(this)).RelationshipManager.InitializeRelatedCollection<AuthenticationToken>("DatabaseModel.UserAuthenticationToken", "AuthenticationToken", value); + } + } + } + } +} |