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
- ResourceContainerWrapper.cs
- DbMetaDataFactory.cs
- AssemblyAssociatedContentFileAttribute.cs
- RecordsAffectedEventArgs.cs
- AsyncDataRequest.cs
- ServicePoint.cs
- XmlCharType.cs
- WebBrowserPermission.cs
- SecurityTokenParameters.cs
- DoubleAnimationClockResource.cs
- ActivityDesignerLayoutSerializers.cs
- XmlILModule.cs
- GrammarBuilderWildcard.cs
- FixedBufferAttribute.cs
- Boolean.cs
- MethodBuilderInstantiation.cs
- ActivationServices.cs
- dtdvalidator.cs
- ObjectItemConventionAssemblyLoader.cs
- Activity.cs
- InvalidFilterCriteriaException.cs
- TypefaceMetricsCache.cs
- SqlUserDefinedTypeAttribute.cs
- MenuEventArgs.cs
- ProjectionCamera.cs
- Pipe.cs
- Bold.cs
- WpfWebRequestHelper.cs
- Schedule.cs
- HttpListenerTimeoutManager.cs
- DateTimeOffsetConverter.cs
- PinnedBufferMemoryStream.cs
- MapPathBasedVirtualPathProvider.cs
- XsltFunctions.cs
- BitHelper.cs
- DurableServiceAttribute.cs
- DataGridViewRowsRemovedEventArgs.cs
- DSASignatureFormatter.cs
- ChineseLunisolarCalendar.cs
- CompositeScriptReferenceEventArgs.cs
- PermissionAttributes.cs
- DataGridTextBox.cs
- Model3DGroup.cs
- RtType.cs
- ListViewDeletedEventArgs.cs
- SchemaContext.cs
- GenericRootAutomationPeer.cs
- DecimalStorage.cs
- PeerApplicationLaunchInfo.cs
- TemplateBuilder.cs
- Shared.cs
- BitFlagsGenerator.cs
- SystemResources.cs
- ServiceModelActivationSectionGroup.cs
- relpropertyhelper.cs
- MethodRental.cs
- NGCUIElementCollectionSerializerAsync.cs
- HostingEnvironmentException.cs
- MenuItem.cs
- IgnoreFlushAndCloseStream.cs
- FamilyCollection.cs
- XmlAtomicValue.cs
- RayMeshGeometry3DHitTestResult.cs
- TemplateBaseAction.cs
- TypeNameHelper.cs
- LocalizationComments.cs
- ClientRoleProvider.cs
- TreeSet.cs
- FreezableDefaultValueFactory.cs
- rsa.cs
- UnknownWrapper.cs
- EmbeddedMailObject.cs
- WebPartManager.cs
- bidPrivateBase.cs
- TextParentUndoUnit.cs
- TTSVoice.cs
- EffectiveValueEntry.cs
- Normalization.cs
- SchemaObjectWriter.cs
- TableLayoutPanelResizeGlyph.cs
- IndentedWriter.cs
- DaylightTime.cs
- CorrelationTokenInvalidatedHandler.cs
- CultureData.cs
- TypeConverterBase.cs
- DataObjectFieldAttribute.cs
- Utility.cs
- ToolStripSplitButton.cs
- DataServiceRequestArgs.cs
- DynamicValidator.cs
- StringUtil.cs
- ObjectStateEntryDbDataRecord.cs
- SmiTypedGetterSetter.cs
- HostedTransportConfigurationManager.cs
- CurrencyManager.cs
- FontEditor.cs
- HttpContextServiceHost.cs
- ArglessEventHandlerProxy.cs
- PointCollectionValueSerializer.cs
- ToolStripContainer.cs