/// <summary>Creates a new, empty WebTrackerEntity object.</summary> /// <returns>A new, empty WebTrackerEntity object.</returns> public override IEntity Create() { IEntity toReturn = new WebTrackerEntity(); // __LLBLGENPRO_USER_CODE_REGION_START CreateNewWebTracker // __LLBLGENPRO_USER_CODE_REGION_END return(toReturn); }
public void AddTracking(DateTime date, string ipAddress, string browser) { WebTrackerEntity webTacker = new WebTrackerEntity(); webTacker.VisitTime = DateTime.Parse(date.ToShortDateString()); webTacker.IpAddress = ipAddress; webTacker.Browser = browser; webTacker.Save(); }