C# Class Models.User

Inheritance: Role
Afficher le fichier Open project: IowaCodeCamp/IowaCodeCamp Class Usage Examples

Private Properties

Свойство Type Description
CreatePasswordHash string
CreateSalt string
OnCityChanged void
OnCityChanging void
OnCommentsChanged void
OnCommentsChanging void
OnCountryChanged void
OnCountryChanging void
OnCreated void
OnCreatedByChanged void
OnCreatedByChanging void
OnCreatedOnChanged void
OnCreatedOnChanging void
OnDisplayNameChanged void
OnDisplayNameChanging void
OnEmailChanged void
OnEmailChanging void
OnFirstNameChanged void
OnFirstNameChanging void
OnIdChanged void
OnIdChanging void
OnIsDeletedChanged void
OnIsDeletedChanging void
OnIsValidatedChanged void
OnIsValidatedChanging void
OnLastNameChanged void
OnLastNameChanging void
OnLoaded void
OnModifiedByChanged void
OnModifiedByChanging void
OnModifiedOnChanged void
OnModifiedOnChanging void
OnOrganizationChanged void
OnOrganizationChanging void
OnPasswordChanged void
OnPasswordChanging void
OnPasswordSaltChanged void
OnPasswordSaltChanging void
OnRegionChanged void
OnRegionChanging void
OnSiteChanged void
OnSiteChanging void
OnValidate void
OnValidationCodeChanged void
OnValidationCodeChanging void
SetCreated void
SetModified void
SetPassword void
attach_Attendees void
attach_NewsItems void
attach_Speakers void
attach_UserEvents void
attach_UserRoles void
detach_Attendees void
detach_NewsItems void
detach_Speakers void
detach_UserEvents void
detach_UserRoles void

Méthodes publiques

Méthode Description
AddUserToRole ( string UserName, string RoleName ) : bool
Create ( string FirstName, string LastName, string Password, string Email, string DisplayName, string Site, string Organization, string Comments, string City, string Region, string Country ) : User
Get ( string email ) : User
GetAttendees ( ) : List
GetCurrentEventAttendees ( ) : List
IsEmailUnique ( string Email ) : bool
Update ( string email, string firstname, string lastname, string password, string displayname, string site, string organization, string city, string region, string country, string comments ) : void
User ( ) : System.Data.Linq
Validate ( string email, string password ) : bool
ValidateUserAccount ( string code ) : bool

Méthodes protégées

Méthode Description
SendPropertyChanged ( String propertyName ) : void
SendPropertyChanging ( ) : void

Private Methods

Méthode Description
CreatePasswordHash ( string pwd, string salt ) : string

Create a password hash based on a password and salt. Adapted from: http://davidhayden.com/blog/dave/archive/2004/02/16/157.aspx used from codecampserver

CreateSalt ( ) : string

Create salt for encrypting user passwords. Original Source: http://davidhayden.com/blog/dave/archive/2004/02/16/157.aspx used from codecampserver

OnCityChanged ( ) : void
OnCityChanging ( string value ) : void
OnCommentsChanged ( ) : void
OnCommentsChanging ( string value ) : void
OnCountryChanged ( ) : void
OnCountryChanging ( string value ) : void
OnCreated ( ) : void
OnCreatedByChanged ( ) : void
OnCreatedByChanging ( string value ) : void
OnCreatedOnChanged ( ) : void
OnCreatedOnChanging ( System value ) : void
OnDisplayNameChanged ( ) : void
OnDisplayNameChanging ( string value ) : void
OnEmailChanged ( ) : void
OnEmailChanging ( string value ) : void
OnFirstNameChanged ( ) : void
OnFirstNameChanging ( string value ) : void
OnIdChanged ( ) : void
OnIdChanging ( int value ) : void
OnIsDeletedChanged ( ) : void
OnIsDeletedChanging ( bool value ) : void
OnIsValidatedChanged ( ) : void
OnIsValidatedChanging ( bool value ) : void
OnLastNameChanged ( ) : void
OnLastNameChanging ( string value ) : void
OnLoaded ( ) : void
OnModifiedByChanged ( ) : void
OnModifiedByChanging ( string value ) : void
OnModifiedOnChanged ( ) : void
OnModifiedOnChanging ( System value ) : void
OnOrganizationChanged ( ) : void
OnOrganizationChanging ( string value ) : void
OnPasswordChanged ( ) : void
OnPasswordChanging ( string value ) : void
OnPasswordSaltChanged ( ) : void
OnPasswordSaltChanging ( string value ) : void
OnRegionChanged ( ) : void
OnRegionChanging ( string value ) : void
OnSiteChanged ( ) : void
OnSiteChanging ( string value ) : void
OnValidate ( System action ) : void
OnValidationCodeChanged ( ) : void
OnValidationCodeChanging ( string value ) : void
SetCreated ( ) : void
SetModified ( ) : void
SetPassword ( User CurrentUser, string Password ) : void
attach_Attendees ( Attendee entity ) : void
attach_NewsItems ( NewsItem entity ) : void
attach_Speakers ( Speaker entity ) : void
attach_UserEvents ( UserEvent entity ) : void
attach_UserRoles ( UserRole entity ) : void
detach_Attendees ( Attendee entity ) : void
detach_NewsItems ( NewsItem entity ) : void
detach_Speakers ( Speaker entity ) : void
detach_UserEvents ( UserEvent entity ) : void
detach_UserRoles ( UserRole entity ) : void

Method Details

AddUserToRole() public static méthode

public static AddUserToRole ( string UserName, string RoleName ) : bool
UserName string
RoleName string
Résultat bool

Create() public static méthode

public static Create ( string FirstName, string LastName, string Password, string Email, string DisplayName, string Site, string Organization, string Comments, string City, string Region, string Country ) : User
FirstName string
LastName string
Password string
Email string
DisplayName string
Site string
Organization string
Comments string
City string
Region string
Country string
Résultat User

Get() public static méthode

public static Get ( string email ) : User
email string
Résultat User

GetAttendees() public static méthode

public static GetAttendees ( ) : List
Résultat List

GetCurrentEventAttendees() public static méthode

public static GetCurrentEventAttendees ( ) : List
Résultat List

IsEmailUnique() public static méthode

public static IsEmailUnique ( string Email ) : bool
Email string
Résultat bool

SendPropertyChanged() protected méthode

protected SendPropertyChanged ( String propertyName ) : void
propertyName String
Résultat void

SendPropertyChanging() protected méthode

protected SendPropertyChanging ( ) : void
Résultat void

Update() public static méthode

public static Update ( string email, string firstname, string lastname, string password, string displayname, string site, string organization, string city, string region, string country, string comments ) : void
email string
firstname string
lastname string
password string
displayname string
site string
organization string
city string
region string
country string
comments string
Résultat void

User() public méthode

public User ( ) : System.Data.Linq
Résultat System.Data.Linq

Validate() public static méthode

public static Validate ( string email, string password ) : bool
email string
password string
Résultat bool

ValidateUserAccount() public static méthode

public static ValidateUserAccount ( string code ) : bool
code string
Résultat bool