C# Class Rock.Model.AuthService

Data access/service class for Rock.Model.Auth entity type objects.
Mostrar archivo Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method Description
Get ( int entityTypeId, int entityId ) : IQueryable

Returns an enumerable collection of Rock.Model.Auth entities by Rock.Model.EntityType and entity Id.

GetAuths ( int entityTypeId, int entityId, string action ) : IQueryable

Returns a queryable collection of Rock.Model.Auth entities (Authorizations) by entity and action.

Method Details

Get() public method

Returns an enumerable collection of Rock.Model.Auth entities by Rock.Model.EntityType and entity Id.
public Get ( int entityTypeId, int entityId ) : IQueryable
entityTypeId int A representing the EntityId of the that this Auth entity applies to.
entityId int A represent the EntityId of the entity that is being secured.
return IQueryable

GetAuths() public method

Returns a queryable collection of Rock.Model.Auth entities (Authorizations) by entity and action.
public GetAuths ( int entityTypeId, int entityId, string action ) : IQueryable
entityTypeId int A representing the EntityTypeId of the to search by.
entityId int A representing the EntityId of the entity to search by.
action string A representing the name of the action to search by.
return IQueryable