Table of Contents

Class ProfileRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public class ProfileRepository : IProfileRepository
Inheritance
ProfileRepository
Implements

Constructors

ProfileRepository(IDbContextFactory<TenantDBContext>)

public ProfileRepository(IDbContextFactory<TenantDBContext> dbContextFactory)

Parameters

dbContextFactory IDbContextFactory<TenantDBContext>

Methods

AddProfile(Profile)

public Profile AddProfile(Profile profile)

Parameters

profile Profile

Returns

Profile

DeleteProfile(int)

public void DeleteProfile(int profileId)

Parameters

profileId int

GetProfile(int)

public Profile GetProfile(int profileId)

Parameters

profileId int

Returns

Profile

GetProfile(int, bool)

public Profile GetProfile(int profileId, bool tracking)

Parameters

profileId int
tracking bool

Returns

Profile

GetProfiles(int)

public IEnumerable<Profile> GetProfiles(int siteId)

Parameters

siteId int

Returns

IEnumerable<Profile>

UpdateProfile(Profile)

public Profile UpdateProfile(Profile profile)

Parameters

profile Profile

Returns

Profile