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(); }
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); }
partial void DeleteWebTrackerEvent(WebTrackerEvent instance);
partial void UpdateWebTrackerEvent(WebTrackerEvent instance);
partial void InsertWebTrackerEvent(WebTrackerEvent instance);