C# 클래스 Models.User

상속: Role
파일 보기 프로젝트 열기: IowaCodeCamp/IowaCodeCamp 1 사용 예제들

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
SendPropertyChanged ( String propertyName ) : void
SendPropertyChanging ( ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

AddUserToRole() 공개 정적인 메소드

public static AddUserToRole ( string UserName, string RoleName ) : bool
UserName string
RoleName string
리턴 bool

Create() 공개 정적인 메소드

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
리턴 User

Get() 공개 정적인 메소드

public static Get ( string email ) : User
email string
리턴 User

GetAttendees() 공개 정적인 메소드

public static GetAttendees ( ) : List
리턴 List

GetCurrentEventAttendees() 공개 정적인 메소드

public static GetCurrentEventAttendees ( ) : List
리턴 List

IsEmailUnique() 공개 정적인 메소드

public static IsEmailUnique ( string Email ) : bool
Email string
리턴 bool

SendPropertyChanged() 보호된 메소드

protected SendPropertyChanged ( String propertyName ) : void
propertyName String
리턴 void

SendPropertyChanging() 보호된 메소드

protected SendPropertyChanging ( ) : void
리턴 void

Update() 공개 정적인 메소드

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
리턴 void

User() 공개 메소드

public User ( ) : System.Data.Linq
리턴 System.Data.Linq

Validate() 공개 정적인 메소드

public static Validate ( string email, string password ) : bool
email string
password string
리턴 bool

ValidateUserAccount() 공개 정적인 메소드

public static ValidateUserAccount ( string code ) : bool
code string
리턴 bool