Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / DataServiceQuery.cs / 1305376 / DataServiceQuery.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// query base object // //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System.Collections; using System.Linq; using System.Linq.Expressions; ///non-generic placeholder for generic implementation [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1010", Justification = "required for this feature")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710", Justification = "required for this feature")] public abstract class DataServiceQuery : DataServiceRequest, IQueryable { ///internal constructor so that only our assembly can provide an implementation internal DataServiceQuery() { } ///Linq Expression public abstract Expression Expression { get; } ///Linq Query Provider public abstract IQueryProvider Provider { get; } ///Get an enumerator materializes the objects the Uri request. ///an enumerator ///Expect derived class to override this with an explict interface implementation [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033", Justification = "required for this feature")] System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw Error.NotImplemented(); } #if !ASTORIA_LIGHT /// Synchronous methods not available ////// Returns an IEnumerable from an Internet resource. /// ///An IEnumerable that contains the response from the Internet resource. public IEnumerable Execute() { return this.ExecuteInternal(); } #endif ////// Begins an asynchronous request to an Internet resource. /// /// The AsyncCallback delegate. /// The state object for this request. ///An IAsyncResult that references the asynchronous request for a response. public IAsyncResult BeginExecute(AsyncCallback callback, object state) { return this.BeginExecuteInternal(callback, state); } ////// Ends an asynchronous request to an Internet resource. /// /// The pending request for a response. ///An IEnumerable that contains the response from the Internet resource. public IEnumerable EndExecute(IAsyncResult asyncResult) { return this.EndExecuteInternal(asyncResult); } #if !ASTORIA_LIGHT /// Synchronous methods not available ////// Returns an IEnumerable from an Internet resource. /// ///An IEnumerable that contains the response from the Internet resource. internal abstract IEnumerable ExecuteInternal(); #endif ////// Begins an asynchronous request to an Internet resource. /// /// The AsyncCallback delegate. /// The state object for this request. ///An IAsyncResult that references the asynchronous request for a response. internal abstract IAsyncResult BeginExecuteInternal(AsyncCallback callback, object state); ////// Ends an asynchronous request to an Internet resource. /// /// The pending request for a response. ///An IEnumerable that contains the response from the Internet resource. internal abstract IEnumerable EndExecuteInternal(IAsyncResult asyncResult); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// query base object // //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System.Collections; using System.Linq; using System.Linq.Expressions; ///non-generic placeholder for generic implementation [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1010", Justification = "required for this feature")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710", Justification = "required for this feature")] public abstract class DataServiceQuery : DataServiceRequest, IQueryable { ///internal constructor so that only our assembly can provide an implementation internal DataServiceQuery() { } ///Linq Expression public abstract Expression Expression { get; } ///Linq Query Provider public abstract IQueryProvider Provider { get; } ///Get an enumerator materializes the objects the Uri request. ///an enumerator ///Expect derived class to override this with an explict interface implementation [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033", Justification = "required for this feature")] System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw Error.NotImplemented(); } #if !ASTORIA_LIGHT /// Synchronous methods not available ////// Returns an IEnumerable from an Internet resource. /// ///An IEnumerable that contains the response from the Internet resource. public IEnumerable Execute() { return this.ExecuteInternal(); } #endif ////// Begins an asynchronous request to an Internet resource. /// /// The AsyncCallback delegate. /// The state object for this request. ///An IAsyncResult that references the asynchronous request for a response. public IAsyncResult BeginExecute(AsyncCallback callback, object state) { return this.BeginExecuteInternal(callback, state); } ////// Ends an asynchronous request to an Internet resource. /// /// The pending request for a response. ///An IEnumerable that contains the response from the Internet resource. public IEnumerable EndExecute(IAsyncResult asyncResult) { return this.EndExecuteInternal(asyncResult); } #if !ASTORIA_LIGHT /// Synchronous methods not available ////// Returns an IEnumerable from an Internet resource. /// ///An IEnumerable that contains the response from the Internet resource. internal abstract IEnumerable ExecuteInternal(); #endif ////// Begins an asynchronous request to an Internet resource. /// /// The AsyncCallback delegate. /// The state object for this request. ///An IAsyncResult that references the asynchronous request for a response. internal abstract IAsyncResult BeginExecuteInternal(AsyncCallback callback, object state); ////// Ends an asynchronous request to an Internet resource. /// /// The pending request for a response. ///An IEnumerable that contains the response from the Internet resource. internal abstract IEnumerable EndExecuteInternal(IAsyncResult asyncResult); } } // 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
- ActivationServices.cs
- WebPartsPersonalizationAuthorization.cs
- ContentPosition.cs
- FunctionQuery.cs
- DeferredSelectedIndexReference.cs
- HttpRequestMessageProperty.cs
- tibetanshape.cs
- TabletDeviceInfo.cs
- UpdateExpressionVisitor.cs
- FeatureSupport.cs
- EllipticalNodeOperations.cs
- GrammarBuilderRuleRef.cs
- TableRow.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- XPathMultyIterator.cs
- _SecureChannel.cs
- FilterableAttribute.cs
- XmlSchemaSimpleType.cs
- rsa.cs
- RawStylusInputCustomData.cs
- ElementHost.cs
- FixedTextBuilder.cs
- ObjectCacheSettings.cs
- SymLanguageType.cs
- WebServicesInteroperability.cs
- WebConfigurationHost.cs
- AsymmetricKeyExchangeFormatter.cs
- TypePropertyEditor.cs
- ImageMapEventArgs.cs
- ADMembershipProvider.cs
- newinstructionaction.cs
- DateTimeFormatInfo.cs
- DrawingCollection.cs
- SpeakProgressEventArgs.cs
- Processor.cs
- HwndAppCommandInputProvider.cs
- CompositeActivityTypeDescriptor.cs
- ReflectTypeDescriptionProvider.cs
- CaseInsensitiveComparer.cs
- HierarchicalDataSourceControl.cs
- panel.cs
- TabPage.cs
- _BaseOverlappedAsyncResult.cs
- BitmapCacheBrush.cs
- RadioButtonBaseAdapter.cs
- SerializationEventsCache.cs
- Trace.cs
- GridViewColumn.cs
- SqlCommandAsyncResult.cs
- SQLDecimal.cs
- DbParameterCollectionHelper.cs
- ForeignConstraint.cs
- DesignerVerbCollection.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DynamicDataManager.cs
- NamedPipeTransportElement.cs
- Int32Converter.cs
- ComplexTypeEmitter.cs
- BinaryParser.cs
- WindowsScroll.cs
- WebConfigurationFileMap.cs
- TagMapInfo.cs
- AncestorChangedEventArgs.cs
- DrawListViewItemEventArgs.cs
- HttpCapabilitiesBase.cs
- ReadOnlyDataSourceView.cs
- CreateRefExpr.cs
- MultipartIdentifier.cs
- FontDriver.cs
- XmlNamespaceDeclarationsAttribute.cs
- EvidenceBase.cs
- EndpointConfigContainer.cs
- Stroke2.cs
- SchemaComplexType.cs
- ToolStripStatusLabel.cs
- Convert.cs
- EventBookmark.cs
- HttpClientCertificate.cs
- DataViewManagerListItemTypeDescriptor.cs
- SqlConnectionPoolGroupProviderInfo.cs
- initElementDictionary.cs
- X509PeerCertificateAuthenticationElement.cs
- CacheDependency.cs
- DesignerActionService.cs
- CredentialCache.cs
- FunctionUpdateCommand.cs
- RegisteredArrayDeclaration.cs
- ProviderException.cs
- RequestResizeEvent.cs
- RegexCompiler.cs
- PositiveTimeSpanValidatorAttribute.cs
- BindingMemberInfo.cs
- ExpressionVisitor.cs
- EditorPart.cs
- LongValidatorAttribute.cs
- WindowsToolbarAsMenu.cs
- SchemaElementLookUpTable.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DataGridPreparingCellForEditEventArgs.cs
- BitmapScalingModeValidation.cs