Example #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);
    }
Example #2
0
    public string GetTotalCount()
    {
        LogsDataContext dataContext = new LogsDataContext();

        return(dataContext.Logs.Count().ToString());
    }
Example #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());
    }
Example #4
0
 public BaseBOLLogs()
 {
     dataContext = new LogsDataContext();
 }
Example #5
0
    internal string GetLogCountByDate(DateTime PassDate)
    {
        LogsDataContext dataContext = new LogsDataContext();

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