Class VisitorRepository
- Namespace
- Oqtane.Repository
- Assembly
- Oqtane.Server.dll
public class VisitorRepository : IVisitorRepository
- Inheritance
-
VisitorRepository
- Implements
-
Constructors
VisitorRepository(IDbContextFactory<TenantDBContext>)
public VisitorRepository(IDbContextFactory<TenantDBContext> dbContextFactory)
Parameters
dbContextFactory
IDbContextFactory<TenantDBContext>
Methods
AddVisitor(Visitor)
public Visitor AddVisitor(Visitor visitor)
Parameters
visitor
Visitor
Returns
- Visitor
DeleteVisitor(int)
public void DeleteVisitor(int visitorId)
Parameters
visitorId
int
DeleteVisitors(int, int)
public int DeleteVisitors(int siteId, int age)
Parameters
siteId
int
age
int
Returns
- int
GetVisitor(int)
public Visitor GetVisitor(int visitorId)
Parameters
visitorId
int
Returns
- Visitor
GetVisitor(int, string)
public Visitor GetVisitor(int siteId, string IPAddress)
Parameters
siteId
int
IPAddress
string
Returns
- Visitor
GetVisitors(int, DateTime)
public IEnumerable<Visitor> GetVisitors(int siteId, DateTime fromDate)
Parameters
siteId
int
fromDate
DateTime
Returns
- IEnumerable<Visitor>
UpdateVisitor(Visitor)
public Visitor UpdateVisitor(Visitor visitor)
Parameters
visitor
Visitor
Returns
- Visitor