C# Class System.Data.Entity.UserBase

Entity base object for user.
Inheritance: System.Data.Entity.EntityBase, IPassword, IRoleEntity
Datei anzeigen Open project: Kation/ComBoost

Private Properties

Property Type Description

Public Methods

Method Description
IsInRole ( object role ) : bool

Ensure this user is belong to a role.

SetPassword ( string password ) : void

Set a new password.

VerifyPassword ( string password ) : bool

Verify a password is equal to this entity.

Method Details

IsInRole() public method

Ensure this user is belong to a role.
public IsInRole ( object role ) : bool
role object Role name.
return bool

SetPassword() public method

Set a new password.
public SetPassword ( string password ) : void
password string New password.
return void

VerifyPassword() public method

Verify a password is equal to this entity.
public VerifyPassword ( string password ) : bool
password string Password to verify.
return bool