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
- DiscoveryOperationContextExtension.cs
- Brush.cs
- MdiWindowListItemConverter.cs
- PathFigureCollectionConverter.cs
- ComponentConverter.cs
- ObjectResult.cs
- FlagPanel.cs
- Image.cs
- ConfigsHelper.cs
- AttributeQuery.cs
- AttributeCollection.cs
- PriorityBinding.cs
- DocobjHost.cs
- ToolBarButton.cs
- ExpandSegment.cs
- DataSourceDescriptorCollection.cs
- XamlFigureLengthSerializer.cs
- ProcessHostServerConfig.cs
- TabOrder.cs
- FilterableAttribute.cs
- StructuredTypeInfo.cs
- DataSpaceManager.cs
- AdornerPresentationContext.cs
- ByteKeyFrameCollection.cs
- ResourcePermissionBaseEntry.cs
- XmlNamedNodeMap.cs
- Validator.cs
- RowUpdatingEventArgs.cs
- OAVariantLib.cs
- OracleColumn.cs
- HttpListenerPrefixCollection.cs
- Globals.cs
- GeneralTransform3DCollection.cs
- CodeGenerator.cs
- HMACMD5.cs
- ModelFunction.cs
- updatecommandorderer.cs
- TextViewSelectionProcessor.cs
- HttpCookie.cs
- StorageAssociationSetMapping.cs
- ParseNumbers.cs
- ControlPropertyNameConverter.cs
- XmlName.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ExtractedStateEntry.cs
- SystemUdpStatistics.cs
- AssemblyInfo.cs
- CmsUtils.cs
- TokenizerHelper.cs
- TextRunTypographyProperties.cs
- HostedTcpTransportManager.cs
- InternalConfigEventArgs.cs
- InkCanvasFeedbackAdorner.cs
- FileRegion.cs
- Root.cs
- GridViewPageEventArgs.cs
- ProfileProvider.cs
- SrgsOneOf.cs
- WebHttpElement.cs
- FocusManager.cs
- FloaterParagraph.cs
- FilteredReadOnlyMetadataCollection.cs
- SqlDataReaderSmi.cs
- LayoutDump.cs
- DataPagerFieldCollection.cs
- ListComponentEditor.cs
- HttpHeaderCollection.cs
- Parser.cs
- PrimitiveXmlSerializers.cs
- RequestCacheValidator.cs
- Composition.cs
- ReplyChannel.cs
- StaticFileHandler.cs
- Hex.cs
- COMException.cs
- ChannelEndpointElement.cs
- VisualCollection.cs
- DrawingVisual.cs
- SystemResources.cs
- PerspectiveCamera.cs
- OdbcConnectionOpen.cs
- DrawingVisual.cs
- PeerTransportCredentialType.cs
- DbCommandTree.cs
- ComponentSerializationService.cs
- HybridObjectCache.cs
- LogSwitch.cs
- DoubleAnimationUsingPath.cs
- CopyNamespacesAction.cs
- FixedTextBuilder.cs
- AssociationSetEnd.cs
- UIInitializationException.cs
- Compilation.cs
- DispatcherProcessingDisabled.cs
- RadialGradientBrush.cs
- BufferedGraphics.cs
- CompositeDataBoundControl.cs
- SimpleTypeResolver.cs
- BaseParser.cs
- FontDriver.cs