Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / WebControls / ContextDataSource.cs / 1305376 / ContextDataSource.cs
#if ORYX_VNEXT namespace Microsoft.Web.Data.UI.WebControls { using System.Web; using System.Web.UI; #else namespace System.Web.UI.WebControls { #endif using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; public abstract class ContextDataSource : QueryableDataSource { private ContextDataSourceView _view; internal ContextDataSource(IPage page) : base(page) { } internal ContextDataSource(ContextDataSourceView view) : base(view) { } protected ContextDataSource() { } private ContextDataSourceView View { get { if (_view == null) { _view = (ContextDataSourceView)GetView("DefaultView"); } return _view; } } public virtual string ContextTypeName { get { return View.ContextTypeName; } set { View.ContextTypeName = value; } } protected string EntitySetName { get { return View.EntitySetName; } set { View.EntitySetName = value; } } public virtual string EntityTypeName { get { return View.EntityTypeName; } set { View.EntityTypeName = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. #if ORYX_VNEXT namespace Microsoft.Web.Data.UI.WebControls { using System.Web; using System.Web.UI; #else namespace System.Web.UI.WebControls { #endif using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; public abstract class ContextDataSource : QueryableDataSource { private ContextDataSourceView _view; internal ContextDataSource(IPage page) : base(page) { } internal ContextDataSource(ContextDataSourceView view) : base(view) { } protected ContextDataSource() { } private ContextDataSourceView View { get { if (_view == null) { _view = (ContextDataSourceView)GetView("DefaultView"); } return _view; } } public virtual string ContextTypeName { get { return View.ContextTypeName; } set { View.ContextTypeName = value; } } protected string EntitySetName { get { return View.EntitySetName; } set { View.EntitySetName = value; } } public virtual string EntityTypeName { get { return View.EntityTypeName; } set { View.EntityTypeName = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceHandle.cs
- _DomainName.cs
- DeviceContext.cs
- ColumnWidthChangingEvent.cs
- OutputScope.cs
- Quad.cs
- AsyncDataRequest.cs
- ObjectSelectorEditor.cs
- Emitter.cs
- PageContent.cs
- WebHttpBindingElement.cs
- CompilationSection.cs
- MemberProjectedSlot.cs
- HwndHost.cs
- AccessDataSourceDesigner.cs
- DocumentSequence.cs
- Effect.cs
- wgx_render.cs
- AppDomain.cs
- HostingEnvironmentSection.cs
- WindowsListViewGroupSubsetLink.cs
- RightsManagementEncryptionTransform.cs
- BoolExpressionVisitors.cs
- SessionStateItemCollection.cs
- XmlSchemaSimpleTypeRestriction.cs
- UniqueEventHelper.cs
- SearchForVirtualItemEventArgs.cs
- WebPartAuthorizationEventArgs.cs
- PropertyStore.cs
- SendMailErrorEventArgs.cs
- SelectionWordBreaker.cs
- Interlocked.cs
- DoneReceivingAsyncResult.cs
- KeyValueConfigurationElement.cs
- ObjectSet.cs
- SoapIncludeAttribute.cs
- DataView.cs
- ComponentResourceKey.cs
- EncoderNLS.cs
- X509IssuerSerialKeyIdentifierClause.cs
- AttributeSetAction.cs
- OpacityConverter.cs
- StandardCommands.cs
- DesignerExtenders.cs
- PathParser.cs
- InkCanvasFeedbackAdorner.cs
- MemoryStream.cs
- DataGridViewTextBoxEditingControl.cs
- SystemNetworkInterface.cs
- RealizedColumnsBlock.cs
- WinInetCache.cs
- HtmlGenericControl.cs
- VirtualDirectoryMappingCollection.cs
- _ConnectStream.cs
- CheckPair.cs
- Win32SafeHandles.cs
- ResourceIDHelper.cs
- PropertyDescriptorGridEntry.cs
- RequestTimeoutManager.cs
- DataGridViewRowHeaderCell.cs
- XpsS0ValidatingLoader.cs
- ProtocolsSection.cs
- PlainXmlSerializer.cs
- QilName.cs
- ObjectDataProvider.cs
- ILGenerator.cs
- DataObject.cs
- ExtensionFile.cs
- BamlReader.cs
- WorkflowDebuggerSteppingAttribute.cs
- EventData.cs
- MobileListItemCollection.cs
- TextBoxBase.cs
- ResourceIDHelper.cs
- LogReserveAndAppendState.cs
- TraceLevelStore.cs
- PaperSource.cs
- ScrollViewer.cs
- SQLDateTimeStorage.cs
- Monitor.cs
- ToolStripContainerActionList.cs
- PrintEvent.cs
- MailWebEventProvider.cs
- ServerProtocol.cs
- SimpleBitVector32.cs
- SafeTokenHandle.cs
- TreeNodeCollection.cs
- _Win32.cs
- EdmScalarPropertyAttribute.cs
- OutputCacheSettingsSection.cs
- CompilerHelpers.cs
- XslNumber.cs
- SystemResourceKey.cs
- ISAPIRuntime.cs
- DetailsViewPagerRow.cs
- InfiniteTimeSpanConverter.cs
- TypedOperationInfo.cs
- XmlChoiceIdentifierAttribute.cs
- SqlDataSourceStatusEventArgs.cs
- GroupBoxRenderer.cs