Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / Providers / OrderingInfo.cs / 1407647 / OrderingInfo.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Describes ordering information for each expanded entity set // for $expands request for a WCF Data Service. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Providers { #region Namespaces using System.Collections.Generic; using System.Collections.ObjectModel; #endregion ////// Describes ordering information for each entity set /// for $expand request for a WCF Data Service. /// internal sealed class OrderingInfo { ///Is the expanded entity set paged private readonly bool paged; ///Collection of ordering expressions private readonly ListorderingExpressions; /// Constructor /// Whether top level entity set is paged internal OrderingInfo(bool paged) { this.paged = paged; this.orderingExpressions = new List(); } /// Is the expaded entity set paged public bool IsPaged { get { return this.paged; } } ///Gives the collection of ordering expressions for a request public ReadOnlyCollectionOrderingExpressions { get { return this.orderingExpressions.AsReadOnly(); } } /// Adds a single OrderingExpression to the collection /// Ordering expression to add internal void Add(OrderingExpression orderingExpression) { this.orderingExpressions.Add(orderingExpression); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Describes ordering information for each expanded entity set // for $expands request for a WCF Data Service. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Providers { #region Namespaces using System.Collections.Generic; using System.Collections.ObjectModel; #endregion ////// Describes ordering information for each entity set /// for $expand request for a WCF Data Service. /// internal sealed class OrderingInfo { ///Is the expanded entity set paged private readonly bool paged; ///Collection of ordering expressions private readonly ListorderingExpressions; /// Constructor /// Whether top level entity set is paged internal OrderingInfo(bool paged) { this.paged = paged; this.orderingExpressions = new List(); } /// Is the expaded entity set paged public bool IsPaged { get { return this.paged; } } ///Gives the collection of ordering expressions for a request public ReadOnlyCollectionOrderingExpressions { get { return this.orderingExpressions.AsReadOnly(); } } /// Adds a single OrderingExpression to the collection /// Ordering expression to add internal void Add(OrderingExpression orderingExpression) { this.orderingExpressions.Add(orderingExpression); } } } // 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
- PropertyToken.cs
- RepeatButton.cs
- ScriptResourceDefinition.cs
- ComplexBindingPropertiesAttribute.cs
- Geometry3D.cs
- BitConverter.cs
- TextElement.cs
- View.cs
- XMLUtil.cs
- TypeResolver.cs
- EdmPropertyAttribute.cs
- IgnoreSectionHandler.cs
- ToolStripControlHost.cs
- GC.cs
- XamlReader.cs
- Stack.cs
- SqlCacheDependencyDatabase.cs
- ToolTipAutomationPeer.cs
- OletxVolatileEnlistment.cs
- List.cs
- TypeDescriptorContext.cs
- RegularExpressionValidator.cs
- DebugViewWriter.cs
- DataGridViewColumnHeaderCell.cs
- RoutedEventArgs.cs
- CodeMethodInvokeExpression.cs
- TemplateControlCodeDomTreeGenerator.cs
- ConstantExpression.cs
- ManipulationCompletedEventArgs.cs
- TransactionManager.cs
- HostedTransportConfigurationBase.cs
- TokenBasedSetEnumerator.cs
- SynchronizedMessageSource.cs
- EncryptedKey.cs
- KeyManager.cs
- ToolTip.cs
- DocobjHost.cs
- SelectedDatesCollection.cs
- wgx_render.cs
- PropertyGridView.cs
- DocumentOrderQuery.cs
- ConfigurationLoaderException.cs
- Tokenizer.cs
- ActiveXHost.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- DefaultAsyncDataDispatcher.cs
- CodeDOMProvider.cs
- WebPartsPersonalizationAuthorization.cs
- ManageRequest.cs
- PackWebRequest.cs
- WpfGeneratedKnownProperties.cs
- Quaternion.cs
- ColumnBinding.cs
- EditCommandColumn.cs
- TableRow.cs
- RSAPKCS1SignatureDeformatter.cs
- XhtmlBasicPanelAdapter.cs
- CompressEmulationStream.cs
- safelinkcollection.cs
- MatrixConverter.cs
- StringCollection.cs
- BoundsDrawingContextWalker.cs
- DesignerOptionService.cs
- FlowDocumentView.cs
- Options.cs
- MachineKey.cs
- Switch.cs
- PageCodeDomTreeGenerator.cs
- SiteMapPath.cs
- StrokeCollectionDefaultValueFactory.cs
- Divide.cs
- OleDbError.cs
- ColorContextHelper.cs
- TrustLevel.cs
- DeploymentSection.cs
- StringBlob.cs
- ApplicationInterop.cs
- SqlWriter.cs
- DataGridViewBindingCompleteEventArgs.cs
- SerTrace.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- CatalogPartCollection.cs
- CodeDOMProvider.cs
- ApplicationServicesHostFactory.cs
- DynamicRenderer.cs
- Models.cs
- XmlSchemaSimpleTypeUnion.cs
- HandlerFactoryWrapper.cs
- AbstractSvcMapFileLoader.cs
- IntranetCredentialPolicy.cs
- PerformanceCounters.cs
- TraceRecord.cs
- RelationshipSet.cs
- TransactionTraceIdentifier.cs
- WebMessageFormatHelper.cs
- xsdvalidator.cs
- HttpFileCollection.cs
- SecurityElement.cs
- LiteralSubsegment.cs
- X509Extension.cs