C# Class Contrive.Sample.Data.RoleRepository

The AdventureWorks database does not contain a role concept.
Inheritance: Contrive.Common.Data.DataServiceBase, IRoleRepository
显示文件 Open project: alanstevens/Contrive

Public Methods

Method Description
Delete ( IRole role ) : void
FindUsersInRole ( string roleName, string usernameToMatch ) : IEnumerable
GetAll ( ) : IEnumerable
GetRoleByName ( string roleName ) : IRole
GetRolesForRoleNames ( IEnumerable roleNames ) : IEnumerable
Insert ( IRole role ) : void
Update ( IRole role ) : void

Method Details

Delete() public method

public Delete ( IRole role ) : void
role IRole
return void

FindUsersInRole() public method

public FindUsersInRole ( string roleName, string usernameToMatch ) : IEnumerable
roleName string
usernameToMatch string
return IEnumerable

GetAll() public method

public GetAll ( ) : IEnumerable
return IEnumerable

GetRoleByName() public method

public GetRoleByName ( string roleName ) : IRole
roleName string
return IRole

GetRolesForRoleNames() public method

public GetRolesForRoleNames ( IEnumerable roleNames ) : IEnumerable
roleNames IEnumerable
return IEnumerable

Insert() public method

public Insert ( IRole role ) : void
role IRole
return void

Update() public method

public Update ( IRole role ) : void
role IRole
return void