Table of Contents

Class UrlMappingRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public class UrlMappingRepository : IUrlMappingRepository
Inheritance
object
UrlMappingRepository
Implements

Constructors

UrlMappingRepository(IDbContextFactory<TenantDBContext>, ISiteRepository)

public UrlMappingRepository(IDbContextFactory<TenantDBContext> dbContextFactory, ISiteRepository sites)

Parameters

dbContextFactory IDbContextFactory<TenantDBContext>
sites ISiteRepository

Methods

AddUrlMapping(UrlMapping)

public UrlMapping AddUrlMapping(UrlMapping urlMapping)

Parameters

urlMapping UrlMapping

Returns

UrlMapping

DeleteUrlMapping(int)

public void DeleteUrlMapping(int urlMappingId)

Parameters

urlMappingId int

GetUrlMapping(int)

public UrlMapping GetUrlMapping(int urlMappingId)

Parameters

urlMappingId int

Returns

UrlMapping

GetUrlMapping(int, bool)

public UrlMapping GetUrlMapping(int urlMappingId, bool tracking)

Parameters

urlMappingId int
tracking bool

Returns

UrlMapping

GetUrlMapping(int, string)

public UrlMapping GetUrlMapping(int siteId, string url)

Parameters

siteId int
url string

Returns

UrlMapping

GetUrlMappings(int, bool)

public IEnumerable<UrlMapping> GetUrlMappings(int siteId, bool isMapped)

Parameters

siteId int
isMapped bool

Returns

IEnumerable<UrlMapping>

UpdateUrlMapping(UrlMapping)

public UrlMapping UpdateUrlMapping(UrlMapping urlMapping)

Parameters

urlMapping UrlMapping

Returns

UrlMapping