Ejemplo n.º 1
0
    public int?InsertLog(string UserAgent, string QueryString, string UserInfo, string UserHostAddress, string AbsolutePath, DateTime LogDate, string Http_referer, bool HCReqTypeCode, ref int?Result)
    {
        LogsDataContext dataContext = new LogsDataContext();

        dataContext.spInsertLog(UserAgent, QueryString, UserInfo, UserHostAddress, AbsolutePath, LogDate, Http_referer, HCReqTypeCode, ref Result);
        return(Result);
    }
Ejemplo n.º 2
0
    public string GetTotalCount()
    {
        LogsDataContext dataContext = new LogsDataContext();

        return(dataContext.Logs.Count().ToString());
    }
Ejemplo n.º 3
0
    public string GetLogCountByDate(DateTime PassDate)
    {
        LogsDataContext dataContext = new LogsDataContext();

        return(dataContext.Logs.Where(p => p.LogDateTime.Value.Date.Equals(PassDate.Date) && p.HCReqTypeCode.Equals(false)).Count().ToString());
    }
Ejemplo n.º 4
0
 public BaseBOLLogs()
 {
     dataContext = new LogsDataContext();
 }
Ejemplo n.º 5
0
    internal string GetLogCountByDate(DateTime PassDate)
    {
        LogsDataContext dataContext = new LogsDataContext();

        return(dataContext.Logs.Where(p => p.LogDateTime.Date.Equals(PassDate.Date)).Count().ToString());
    }