partial void DeleteSql2005Session(Sql2005Session instance);
partial void InsertSql2005Session(Sql2005Session instance);
partial void UpdateSql2005Session(Sql2005Session instance);
/// <summary> /// Override of the Session creation function. /// Produces a populated Sql2005Session object. /// </summary> /// <param name="pContext">HttpContext of request (will be used to populate Session object.</param> /// <returns>New ResourceRequestBase object, populated.</returns> public override SessionBase CreateNewSession(HttpContext pContext) { if (pContext == null) throw new ArgumentNullException("pContext"); Sql2005Session session = new Sql2005Session(); session.SessionID = Guid.NewGuid(); session.Application = this.ApplicationName; session.Host = Environment.MachineName; session.User = (pContext.User != null ? pContext.User.Identity.Name : null); session.ASPSessionID = (pContext.Session != null ? pContext.Session.SessionID : pContext.Request.Params["ASP.Net_SessionId"]) ?? Guid.NewGuid().ToString(); session.SessionBeginTimeUtc = DateTime.UtcNow; session.ActiveXControls = pContext.Request.Browser.ActiveXControls; session.AOL = pContext.Request.Browser.AOL; session.BackgroundSounds = pContext.Request.Browser.BackgroundSounds; session.Beta = pContext.Request.Browser.Beta; session.Browser = pContext.Request.Browser.Browser; session.BrowserInfo = String.Join(", ", pContext.Request.Browser.Browsers.ToArray()); session.CanCombineFormsInDeck = pContext.Request.Browser.CanCombineFormsInDeck; session.CanInitiateVoiceCall = pContext.Request.Browser.CanInitiateVoiceCall; session.CanRenderAfterInputOrSelectElement = pContext.Request.Browser.CanRenderInputAndSelectElementsTogether; session.CanRenderEmptySelects = pContext.Request.Browser.CanRenderEmptySelects; session.CanRenderInputAndSelectElementsTogether = pContext.Request.Browser.CanRenderInputAndSelectElementsTogether; session.CanRenderMixedSelects = pContext.Request.Browser.CanRenderMixedSelects; session.CanRenderOneventAndPrevElementsTogether = pContext.Request.Browser.CanRenderOneventAndPrevElementsTogether; session.CanRenderPostBackCars = pContext.Request.Browser.CanRenderPostBackCards; session.CanRenderSetvarZeroWithMultiSelectionList = pContext.Request.Browser.CanRenderSetvarZeroWithMultiSelectionList; session.CanSendMail = pContext.Request.Browser.CanSendMail; session.Capabilities = pContext.Request.Browser.Capabilities.ToCSVString(); session.ClrVersion = pContext.Request.Browser.ClrVersion.ToString(); session.Cookies = pContext.Request.Browser.Cookies; session.Crawler = pContext.Request.Browser.Crawler; session.DefaultSubmitButtonLimit = pContext.Request.Browser.DefaultSubmitButtonLimit; session.EcmaScriptVersion = pContext.Request.Browser.EcmaScriptVersion.ToString(); session.Frames = pContext.Request.Browser.Frames; session.HasBackButton = pContext.Request.Browser.HasBackButton; session.HidesRightAlignedMultiselectScrollbars = pContext.Request.Browser.HidesRightAlignedMultiselectScrollbars; session.Id = pContext.Request.Browser.Id; session.InputType = pContext.Request.Browser.InputType; session.IsColor = pContext.Request.Browser.IsColor; session.IsMobileDevice = pContext.Request.Browser.IsMobileDevice; session.JavaApplets = pContext.Request.Browser.JavaApplets; session.JScriptVersion = pContext.Request.Browser.JScriptVersion.ToString(); session.MajorVersion = pContext.Request.Browser.MajorVersion; session.MaximumHrefLength = pContext.Request.Browser.MaximumHrefLength;; session.MaximumRenderedPageSize = pContext.Request.Browser.MaximumRenderedPageSize; session.MaximumSoftkeyLabelLength = pContext.Request.Browser.MaximumSoftkeyLabelLength; session.MinorVersion = (Decimal)pContext.Request.Browser.MinorVersion; session.MobileDeviceManufacturer = pContext.Request.Browser.MobileDeviceManufacturer; session.MobileDeviceModel = pContext.Request.Browser.MobileDeviceModel; session.MSDomVersion = pContext.Request.Browser.MSDomVersion.ToString(); session.NumberOfSoftKeys = pContext.Request.Browser.NumberOfSoftkeys; session.Platform = pContext.Request.Browser.Platform; session.PreferredImageMime = pContext.Request.Browser.PreferredImageMime; session.PreferredRenderingMime = pContext.Request.Browser.PreferredRenderingMime; session.PreferredRenderingType = pContext.Request.Browser.PreferredRenderingType; session.PreferredRequestEncoding = pContext.Request.Browser.PreferredRequestEncoding; session.PreferredResponseEncoding = pContext.Request.Browser.PreferredResponseEncoding; session.RendersBreakBeforeWmlSelectAndInput = pContext.Request.Browser.RendersBreakBeforeWmlSelectAndInput; session.RendersBreaksAfterHtmlLists = pContext.Request.Browser.RendersBreaksAfterHtmlLists; session.RendersBreaksAfterWmlAnchor = pContext.Request.Browser.RendersBreaksAfterWmlAnchor; session.RendersBreaksAfterWmlInput = pContext.Request.Browser.RendersBreaksAfterWmlInput; session.RendersWmlDoAcceptsInline = pContext.Request.Browser.RendersWmlDoAcceptsInline; session.RendersWmlSelectsAsMenuCards = pContext.Request.Browser.RendersWmlSelectsAsMenuCards; session.RequiredMetaTagNameValue = pContext.Request.Browser.RequiredMetaTagNameValue; session.RequiresAttributeColonSubstitution = pContext.Request.Browser.RequiresAttributeColonSubstitution; session.RequiresContentTypeMetaTag = pContext.Request.Browser.RequiresContentTypeMetaTag; session.RequiresContentStateInSession = pContext.Request.Browser.RequiresControlStateInSession; session.RequiresDBCSCharacter = pContext.Request.Browser.RequiresDBCSCharacter; session.RequiresHtmlAdaptiveErrorReporting = pContext.Request.Browser.RequiresHtmlAdaptiveErrorReporting; session.RequiresLeadingPageBreak = pContext.Request.Browser.RequiresLeadingPageBreak; session.RequiresNoBreakInFormatting = pContext.Request.Browser.RequiresNoBreakInFormatting; session.RequiresOutputOptimization = pContext.Request.Browser.RequiresOutputOptimization; session.RequiresPhoneNumbersAsPlainText = pContext.Request.Browser.RequiresPhoneNumbersAsPlainText; session.RequiresSpecialViewStateEncoding = pContext.Request.Browser.RequiresSpecialViewStateEncoding; session.RequiresUniqueFilePathSuffix = pContext.Request.Browser.RequiresUniqueFilePathSuffix; session.RequiresUniqueHtmlCheckboxNames = pContext.Request.Browser.RequiresUniqueHtmlCheckboxNames; session.RequiresUniqueHtmlInputNames = pContext.Request.Browser.RequiresUniqueHtmlInputNames; session.RequiresUrlEncodedPostfieldValues = pContext.Request.Browser.RequiresUrlEncodedPostfieldValues; session.ScreenBitDepth = pContext.Request.Browser.ScreenBitDepth; session.ScreenCharactersHeight = pContext.Request.Browser.ScreenCharactersHeight; session.ScreenCharactersWidth = pContext.Request.Browser.ScreenCharactersWidth; session.ScreenPixelsHeight = pContext.Request.Browser.ScreenPixelsHeight; session.ScreenPixelsWidth = pContext.Request.Browser.ScreenPixelsWidth; session.SupportsAccesskeyAttribute = pContext.Request.Browser.SupportsAccesskeyAttribute; session.SupportsBodyColor = pContext.Request.Browser.SupportsBodyColor; session.SupportsBold = pContext.Request.Browser.SupportsBold; session.SupportsCacheControlMetaTag = pContext.Request.Browser.SupportsCacheControlMetaTag; session.SupportsCallback = pContext.Request.Browser.SupportsCallback; session.SupportsCss = pContext.Request.Browser.SupportsCss; session.SupportsDivAlign = pContext.Request.Browser.SupportsDivAlign; session.SupportsDivNoWrap = pContext.Request.Browser.SupportsDivNoWrap; session.SupportsEmptyStringInCookieValue = pContext.Request.Browser.SupportsEmptyStringInCookieValue; session.SupportsFontColor = pContext.Request.Browser.SupportsFontColor; session.SupportsFontName = pContext.Request.Browser.SupportsFontName; session.SupportsFontSize = pContext.Request.Browser.SupportsFontSize; session.SupportsImageSubmit = pContext.Request.Browser.SupportsImageSubmit; session.SupportsIModeSymbols = pContext.Request.Browser.SupportsIModeSymbols; session.SupportsInputIStyle = pContext.Request.Browser.SupportsInputIStyle; session.SupportsInputMode = pContext.Request.Browser.SupportsInputMode; session.SupportsItalic = pContext.Request.Browser.SupportsItalic; session.SupportsJPhoneMultiMediaAttributes = pContext.Request.Browser.SupportsJPhoneMultiMediaAttributes; session.SupportsJPhoneSymbols = pContext.Request.Browser.SupportsJPhoneSymbols; session.SupportsQueryStringInFormAction = pContext.Request.Browser.SupportsQueryStringInFormAction; session.SupportsRedirectWithCookie = pContext.Request.Browser.SupportsRedirectWithCookie; session.SupportsSelectMultiple = pContext.Request.Browser.SupportsSelectMultiple; session.SupportsUncheck = pContext.Request.Browser.SupportsUncheck; session.SupportsXmlHttp = pContext.Request.Browser.SupportsXmlHttp; session.Tables = pContext.Request.Browser.Tables; session.Type = pContext.Request.Browser.Type; session.UseOptimizedCacheKey = pContext.Request.Browser.UseOptimizedCacheKey; session.VBScript = pContext.Request.Browser.VBScript; session.Version = pContext.Request.Browser.Version; session.W3CDOMVersion = pContext.Request.Browser.W3CDomVersion.ToString(); session.Win16 = pContext.Request.Browser.Win16; session.Win32 = pContext.Request.Browser.Win32; return session; }