Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / AccessDataSourceView.cs / 1305376 / AccessDataSourceView.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Data.OleDb; using System.Drawing.Design; using System.IO; using System.Text; using System.Web.UI; using System.Web.Util; public class AccessDataSourceView : SqlDataSourceView { private AccessDataSource _owner; ////// Creates a new instance of AccessDataSourceView. /// public AccessDataSourceView(AccessDataSource owner, string name, HttpContext context) : base(owner, name, context) { Debug.Assert(owner != null); _owner = owner; } ////// Returns all the rows of the datasource. /// protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { if (String.IsNullOrEmpty(_owner.DataFile)) { throw new InvalidOperationException(SR.GetString(SR.AccessDataSourceView_SelectRequiresDataFile, _owner.ID)); } return base.ExecuteSelect(arguments); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Data.OleDb; using System.Drawing.Design; using System.IO; using System.Text; using System.Web.UI; using System.Web.Util; public class AccessDataSourceView : SqlDataSourceView { private AccessDataSource _owner; ////// Creates a new instance of AccessDataSourceView. /// public AccessDataSourceView(AccessDataSource owner, string name, HttpContext context) : base(owner, name, context) { Debug.Assert(owner != null); _owner = owner; } ////// Returns all the rows of the datasource. /// protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { if (String.IsNullOrEmpty(_owner.DataFile)) { throw new InvalidOperationException(SR.GetString(SR.AccessDataSourceView_SelectRequiresDataFile, _owner.ID)); } return base.ExecuteSelect(arguments); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BamlVersionHeader.cs
- XmlTextEncoder.cs
- XsdBuildProvider.cs
- XmlElementList.cs
- ClrPerspective.cs
- WindowsListView.cs
- ParseElement.cs
- COM2ColorConverter.cs
- Serializer.cs
- SqlClientPermission.cs
- Helpers.cs
- RegexRunnerFactory.cs
- SHA1Managed.cs
- ReadOnlyDataSource.cs
- DataObjectMethodAttribute.cs
- ClientScriptItemCollection.cs
- RequestCachePolicyConverter.cs
- UniqueSet.cs
- WorkflowInvoker.cs
- SchemeSettingElementCollection.cs
- TemporaryBitmapFile.cs
- FileLogRecordHeader.cs
- HttpContextServiceHost.cs
- securitycriticaldata.cs
- TransactionManager.cs
- dsa.cs
- SR.cs
- SingleKeyFrameCollection.cs
- UniqueID.cs
- HtmlInputPassword.cs
- IndexingContentUnit.cs
- Synchronization.cs
- HMACSHA1.cs
- InputBindingCollection.cs
- EditingMode.cs
- xmlsaver.cs
- Exceptions.cs
- RootBrowserWindowAutomationPeer.cs
- IndexedString.cs
- IOException.cs
- TextServicesManager.cs
- ScrollContentPresenter.cs
- WindowsRebar.cs
- LinqDataSourceStatusEventArgs.cs
- RtType.cs
- SQLBinaryStorage.cs
- InternalRelationshipCollection.cs
- SqlDependencyListener.cs
- DefaultExpression.cs
- MimeBasePart.cs
- ExportException.cs
- MsmqHostedTransportManager.cs
- SchemaImporterExtension.cs
- EncodingTable.cs
- Clause.cs
- DbLambda.cs
- DependencyObjectType.cs
- XmlCharType.cs
- EncryptedKey.cs
- Win32.cs
- CTreeGenerator.cs
- EdmRelationshipRoleAttribute.cs
- SystemIcmpV4Statistics.cs
- PageContentAsyncResult.cs
- Section.cs
- RegexGroup.cs
- ToolBarOverflowPanel.cs
- ZipIOExtraFieldPaddingElement.cs
- EventLogTraceListener.cs
- EditorZoneBase.cs
- OdbcErrorCollection.cs
- AlternateView.cs
- Label.cs
- PackageRelationship.cs
- FormViewUpdateEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- BypassElement.cs
- Site.cs
- DocumentViewerConstants.cs
- CategoryAttribute.cs
- VirtualDirectoryMappingCollection.cs
- SendingRequestEventArgs.cs
- EncoderParameters.cs
- RTLAwareMessageBox.cs
- EventMappingSettingsCollection.cs
- StylusButtonEventArgs.cs
- CheckBoxFlatAdapter.cs
- TextTabProperties.cs
- XPathChildIterator.cs
- ExitEventArgs.cs
- ResourcePermissionBase.cs
- ProtectedConfiguration.cs
- UIElementIsland.cs
- unsafenativemethodsother.cs
- IInstanceTable.cs
- TableColumn.cs
- FrameworkContentElement.cs
- DeclaredTypeElement.cs
- XsdCachingReader.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs