Table of Contents

Class RoleRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public class RoleRepository : IRoleRepository
Inheritance
object
RoleRepository
Implements

Constructors

RoleRepository(IDbContextFactory<TenantDBContext>)

public RoleRepository(IDbContextFactory<TenantDBContext> dbContextFactory)

Parameters

dbContextFactory IDbContextFactory<TenantDBContext>

Methods

AddRole(Role)

public Role AddRole(Role role)

Parameters

role Role

Returns

Role

DeleteRole(int)

public void DeleteRole(int roleId)

Parameters

roleId int

GetRole(int)

public Role GetRole(int roleId)

Parameters

roleId int

Returns

Role

GetRole(int, bool)

public Role GetRole(int roleId, bool tracking)

Parameters

roleId int
tracking bool

Returns

Role

GetRoles(int)

public IEnumerable<Role> GetRoles(int siteId)

Parameters

siteId int

Returns

IEnumerable<Role>

GetRoles(int, bool)

public IEnumerable<Role> GetRoles(int siteId, bool includeGlobalRoles)

Parameters

siteId int
includeGlobalRoles bool

Returns

IEnumerable<Role>

UpdateRole(Role)

public Role UpdateRole(Role role)

Parameters

role Role

Returns

Role