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
- DecimalMinMaxAggregationOperator.cs
- FlowDocumentFormatter.cs
- Memoizer.cs
- Model3D.cs
- VSWCFServiceContractGenerator.cs
- SecondaryIndexDefinition.cs
- ZipIOLocalFileHeader.cs
- MD5.cs
- DataGridComboBoxColumn.cs
- MemberBinding.cs
- NavigationWindowAutomationPeer.cs
- PagedDataSource.cs
- PolicyFactory.cs
- QueryStatement.cs
- HMAC.cs
- FixedSchema.cs
- COM2AboutBoxPropertyDescriptor.cs
- XmlBindingWorker.cs
- ScalarConstant.cs
- ResXDataNode.cs
- TreeSet.cs
- LogSwitch.cs
- SrgsElement.cs
- QueryResponse.cs
- BindingValueChangedEventArgs.cs
- NotConverter.cs
- CreateRefExpr.cs
- QueryParameter.cs
- EnumUnknown.cs
- UnconditionalPolicy.cs
- MailDefinition.cs
- ConnectionsZone.cs
- Codec.cs
- ComponentChangingEvent.cs
- CompoundFileIOPermission.cs
- BrushConverter.cs
- MsmqIntegrationInputMessage.cs
- AssemblyCollection.cs
- PersistenceTypeAttribute.cs
- DocumentAutomationPeer.cs
- FrugalList.cs
- DocumentViewerConstants.cs
- XmlIlGenerator.cs
- ToolStripSeparator.cs
- SqlDataReader.cs
- SettingsBindableAttribute.cs
- UInt64.cs
- Point4DValueSerializer.cs
- ColorAnimationBase.cs
- DiagnosticStrings.cs
- KeyboardEventArgs.cs
- ImageSourceValueSerializer.cs
- XamlFigureLengthSerializer.cs
- XmlAttributeOverrides.cs
- MessageFilterException.cs
- Executor.cs
- XmlBindingWorker.cs
- XmlMembersMapping.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- WmlLabelAdapter.cs
- SemanticAnalyzer.cs
- GridView.cs
- GroupItemAutomationPeer.cs
- HttpHeaderCollection.cs
- HttpException.cs
- ApplicationFileParser.cs
- ScrollEvent.cs
- GrammarBuilderDictation.cs
- XmlNamespaceManager.cs
- PerformanceCounterNameAttribute.cs
- ScrollProviderWrapper.cs
- _HeaderInfo.cs
- TextServicesManager.cs
- AuthenticationModulesSection.cs
- OneOfElement.cs
- Enlistment.cs
- NewArrayExpression.cs
- ThousandthOfEmRealDoubles.cs
- BoolExpr.cs
- OpenTypeLayout.cs
- KnowledgeBase.cs
- ToolZone.cs
- RTLAwareMessageBox.cs
- XsdValidatingReader.cs
- EUCJPEncoding.cs
- NodeLabelEditEvent.cs
- MatrixTransform.cs
- ProxyHelper.cs
- CompositeActivityDesigner.cs
- EntityDataSourceEntityTypeFilterItem.cs
- XPathAncestorQuery.cs
- BookmarkUndoUnit.cs
- TypeDescriptor.cs
- TreeViewImageIndexConverter.cs
- ControlHelper.cs
- RenamedEventArgs.cs
- Label.cs
- OptimisticConcurrencyException.cs
- TrackingProfileSerializer.cs
- WebControlsSection.cs