Class AliasRepository
- Namespace
- Oqtane.Repository
- Assembly
- Oqtane.Server.dll
public class AliasRepository : IAliasRepository
- Inheritance
-
AliasRepository
- Implements
-
Constructors
AliasRepository(MasterDBContext, IMemoryCache)
public AliasRepository(MasterDBContext context, IMemoryCache cache)
Parameters
context
MasterDBContext
cache
IMemoryCache
Methods
AddAlias(Alias)
public Alias AddAlias(Alias alias)
Parameters
alias
Alias
Returns
- Alias
DeleteAlias(int)
public void DeleteAlias(int aliasId)
Parameters
aliasId
int
GetAlias(int)
public Alias GetAlias(int aliasId)
Parameters
aliasId
int
Returns
- Alias
GetAlias(int, bool)
public Alias GetAlias(int aliasId, bool tracking)
Parameters
aliasId
int
tracking
bool
Returns
- Alias
GetAlias(string)
public Alias GetAlias(string url)
Parameters
url
string
Returns
- Alias
GetAliases()
public IEnumerable<Alias> GetAliases()
Returns
- IEnumerable<Alias>
UpdateAlias(Alias)
public Alias UpdateAlias(Alias alias)
Parameters
alias
Alias
Returns
- Alias