C# Class Models.User

Inheritance: Role
Show file Open project: IowaCodeCamp/IowaCodeCamp Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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

Protected Methods

Method Description
SendPropertyChanged ( String propertyName ) : void
SendPropertyChanging ( ) : void

Private Methods

Method 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 method

public static AddUserToRole ( string UserName, string RoleName ) : bool
UserName string
RoleName string
return bool

Create() public static method

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
return User

Get() public static method

public static Get ( string email ) : User
email string
return User

GetAttendees() public static method

public static GetAttendees ( ) : List
return List

GetCurrentEventAttendees() public static method

public static GetCurrentEventAttendees ( ) : List
return List

IsEmailUnique() public static method

public static IsEmailUnique ( string Email ) : bool
Email string
return bool

SendPropertyChanged() protected method

protected SendPropertyChanged ( String propertyName ) : void
propertyName String
return void

SendPropertyChanging() protected method

protected SendPropertyChanging ( ) : void
return void

Update() public static method

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
return void

User() public method

public User ( ) : System.Data.Linq
return System.Data.Linq

Validate() public static method

public static Validate ( string email, string password ) : bool
email string
password string
return bool

ValidateUserAccount() public static method

public static ValidateUserAccount ( string code ) : bool
code string
return bool