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
- SizeAnimation.cs
- UIElement3D.cs
- XsltLoader.cs
- FontCacheUtil.cs
- TdsParserHelperClasses.cs
- ChangeDirector.cs
- VisualState.cs
- CommonXSendMessage.cs
- DictionaryCustomTypeDescriptor.cs
- DataServiceQueryProvider.cs
- TextBoxAutoCompleteSourceConverter.cs
- CurrencyManager.cs
- SystemWebSectionGroup.cs
- DynamicILGenerator.cs
- TextEditorTyping.cs
- TaiwanLunisolarCalendar.cs
- EncodingTable.cs
- XmlSchemaResource.cs
- propertytag.cs
- SafeNativeMemoryHandle.cs
- TimeSpanValidator.cs
- ProfileGroupSettingsCollection.cs
- XmlSerializationGeneratedCode.cs
- _SafeNetHandles.cs
- PackWebRequestFactory.cs
- AssemblyUtil.cs
- PropertyGridEditorPart.cs
- TypeBrowser.xaml.cs
- DataRecordInternal.cs
- BezierSegment.cs
- ListViewGroupConverter.cs
- SqlDataSourceSelectingEventArgs.cs
- BoundColumn.cs
- ObjectResult.cs
- ServiceParser.cs
- BufferModesCollection.cs
- WmpBitmapDecoder.cs
- RtfFormatStack.cs
- ResourceWriter.cs
- entityreference_tresulttype.cs
- SoapProcessingBehavior.cs
- SqlClientFactory.cs
- RuntimeHelpers.cs
- SessionPageStatePersister.cs
- DisposableCollectionWrapper.cs
- IItemProperties.cs
- LocationUpdates.cs
- TabControlAutomationPeer.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- StreamInfo.cs
- CollectionCodeDomSerializer.cs
- ValidationSummaryDesigner.cs
- XmlTextReaderImpl.cs
- XXXOnTypeBuilderInstantiation.cs
- ProcessHostServerConfig.cs
- ToolStripTextBox.cs
- MultiBindingExpression.cs
- BamlTreeMap.cs
- PersonalizationProviderCollection.cs
- Image.cs
- BStrWrapper.cs
- XmlComplianceUtil.cs
- ListBox.cs
- UriParserTemplates.cs
- OleCmdHelper.cs
- EntityDataSourceContainerNameConverter.cs
- PrimitiveType.cs
- KeyedHashAlgorithm.cs
- TextElementEditingBehaviorAttribute.cs
- WindowProviderWrapper.cs
- FixedStringLookup.cs
- EDesignUtil.cs
- CodeTypeParameterCollection.cs
- TextDecorationCollection.cs
- FileRecordSequenceHelper.cs
- ToolTipAutomationPeer.cs
- WindowsUpDown.cs
- Quad.cs
- ProcessModuleCollection.cs
- ParagraphResult.cs
- PolygonHotSpot.cs
- SqlConnection.cs
- ActiveXHelper.cs
- DbProviderServices.cs
- DocumentCollection.cs
- PagePropertiesChangingEventArgs.cs
- ScriptReferenceBase.cs
- ListViewDeletedEventArgs.cs
- DbProviderFactoriesConfigurationHandler.cs
- QilInvoke.cs
- DataContract.cs
- TextTrailingCharacterEllipsis.cs
- KnownTypes.cs
- HttpResponseInternalBase.cs
- WaitingCursor.cs
- ArgumentNullException.cs
- DataBoundControlDesigner.cs
- CounterCreationDataCollection.cs
- EventRoute.cs
- CultureMapper.cs