Beispiel #1
0
        public static void Log(WebTrackerEvent Event)
        {
            if (hapConfig.Current.Tracker.Provider == "XML")
            {
                return;
            }
            sql2linqDataContext sdc = new sql2linqDataContext(ConfigurationManager.ConnectionStrings[hapConfig.Current.Tracker.Provider].ConnectionString);

            sdc.WebTrackerEvents.InsertOnSubmit(Event);
            sdc.SubmitChanges();
        }
Beispiel #2
0
        public static void Log(DateTime datetime, string type, string Username, string IP, string OS, string Browser, string ComputerName, string Details)
        {
            WebTrackerEvent Event = new WebTrackerEvent();

            Event.EventType    = type;
            Event.DateTime     = datetime;
            Event.Username     = Username;
            Event.IP           = IP;
            Event.OS           = OS;
            Event.Browser      = Browser;
            Event.ComputerName = ComputerName;
            Event.Details      = Details;
            Log(Event);
        }
Beispiel #3
0
 partial void DeleteWebTrackerEvent(WebTrackerEvent instance);
Beispiel #4
0
 partial void UpdateWebTrackerEvent(WebTrackerEvent instance);
Beispiel #5
0
 partial void InsertWebTrackerEvent(WebTrackerEvent instance);