C# Class ERP.Web.User

Extensions to the User class.
Datei anzeigen Open project: arthurgfonseca/ERP-Grupo5

Private Properties

Property Type Description
OnCreated void
OnFriendlyNameChanged void
OnFriendlyNameChanging void
OnNameChanged void
OnNameChanging void
OnRolesChanged void
OnRolesChanging void

Public Methods

Method Description
GetIdentity ( ) : object

Computes a value from the key fields that uniquely identifies this entity instance.

IsInRole ( string role ) : bool

Return whether the principal is in the role.

Returns whether the specified role is contained in the roles. This implementation is case sensitive.

User ( ) : System

Initializes a new instance of the User class.

Protected Methods

Method Description
OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Override of the OnPropertyChanged method that generates property change notifications when User.DisplayName changes.

Private Methods

Method Description
OnCreated ( ) : void

This method is invoked from the constructor once initialization is complete and can be used for further object setup.

OnFriendlyNameChanged ( ) : void
OnFriendlyNameChanging ( string value ) : void
OnNameChanged ( ) : void
OnNameChanging ( string value ) : void
OnRolesChanged ( ) : void
OnRolesChanging ( IEnumerable value ) : void

Method Details

GetIdentity() public method

Computes a value from the key fields that uniquely identifies this entity instance.
public GetIdentity ( ) : object
return object

IsInRole() public method

Return whether the principal is in the role.
Returns whether the specified role is contained in the roles. This implementation is case sensitive.
public IsInRole ( string role ) : bool
role string The name of the role for which to check membership.
return bool

OnPropertyChanged() protected method

Override of the OnPropertyChanged method that generates property change notifications when User.DisplayName changes.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs The property change event args.
return void

User() public method

Initializes a new instance of the User class.
public User ( ) : System
return System