Table of Contents

Class UserRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public class UserRepository : IUserRepository
Inheritance
object
UserRepository
Implements

Constructors

UserRepository(IDbContextFactory<TenantDBContext>, IFolderRepository, IRoleRepository, IUserRoleRepository)

public UserRepository(IDbContextFactory<TenantDBContext> dbContextFactory, IFolderRepository folders, IRoleRepository roles, IUserRoleRepository userroles)

Parameters

dbContextFactory IDbContextFactory<TenantDBContext>
folders IFolderRepository
roles IRoleRepository
userroles IUserRoleRepository

Methods

AddUser(User)

public User AddUser(User user)

Parameters

user User

Returns

User

DeleteUser(int)

public void DeleteUser(int userId)

Parameters

userId int

GetUser(int)

public User GetUser(int userId)

Parameters

userId int

Returns

User

GetUser(int, bool)

public User GetUser(int userId, bool tracking)

Parameters

userId int
tracking bool

Returns

User

GetUser(string)

public User GetUser(string username)

Parameters

username string

Returns

User

GetUser(string, string)

public User GetUser(string username, string email)

Parameters

username string
email string

Returns

User

GetUsers()

public IEnumerable<User> GetUsers()

Returns

IEnumerable<User>

UpdateUser(User)

public User UpdateUser(User user)

Parameters

user User

Returns

User