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
- DrawListViewSubItemEventArgs.cs
- Helper.cs
- EnumerationRangeValidationUtil.cs
- IncomingWebResponseContext.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- Parallel.cs
- ObjectTypeMapping.cs
- NavigationService.cs
- WebDisplayNameAttribute.cs
- Light.cs
- TextChangedEventArgs.cs
- XmlnsDictionary.cs
- FileInfo.cs
- RelativeSource.cs
- DBAsyncResult.cs
- XhtmlBasicLiteralTextAdapter.cs
- Char.cs
- TryExpression.cs
- ApplicationDirectoryMembershipCondition.cs
- MailWriter.cs
- TypeExtensionConverter.cs
- XMLSyntaxException.cs
- CommandID.cs
- EntityClientCacheKey.cs
- EdmEntityTypeAttribute.cs
- DNS.cs
- SQLUtility.cs
- HttpBindingExtension.cs
- ArgumentNullException.cs
- ExtractorMetadata.cs
- FlowDocumentReaderAutomationPeer.cs
- WinInetCache.cs
- ListViewDeleteEventArgs.cs
- AttachedProperty.cs
- recordstatescratchpad.cs
- OdbcConnectionFactory.cs
- MasterPageCodeDomTreeGenerator.cs
- PrinterResolution.cs
- FileAuthorizationModule.cs
- WorkflowControlEndpoint.cs
- ContentTextAutomationPeer.cs
- LowerCaseStringConverter.cs
- ListViewInsertEventArgs.cs
- SynchronizationValidator.cs
- _Connection.cs
- cookie.cs
- WebResourceAttribute.cs
- JobCollate.cs
- XmlKeywords.cs
- Scanner.cs
- DatatypeImplementation.cs
- WebPartUserCapability.cs
- RetriableClipboard.cs
- IdentityValidationException.cs
- ResourcesBuildProvider.cs
- SystemThemeKey.cs
- HttpListenerContext.cs
- HyperLink.cs
- XamlRtfConverter.cs
- CollectionChangedEventManager.cs
- Int32Collection.cs
- TimeSpanMinutesConverter.cs
- Int16KeyFrameCollection.cs
- PixelShader.cs
- TransformGroup.cs
- ConfigurationErrorsException.cs
- HtmlTableRowCollection.cs
- SizeKeyFrameCollection.cs
- CustomPopupPlacement.cs
- TransformGroup.cs
- CheckBoxPopupAdapter.cs
- ProfilePropertySettingsCollection.cs
- NullableLongAverageAggregationOperator.cs
- BamlResourceDeserializer.cs
- Privilege.cs
- SerializationAttributes.cs
- ProjectionNode.cs
- QueryCoreOp.cs
- VariableBinder.cs
- StringFormat.cs
- SmtpFailedRecipientsException.cs
- SequenceDesigner.xaml.cs
- ProgramPublisher.cs
- DbDataAdapter.cs
- RegexMatch.cs
- FieldBuilder.cs
- LookupBindingPropertiesAttribute.cs
- MSG.cs
- CompensationToken.cs
- WebHeaderCollection.cs
- ModelVisual3D.cs
- TraceHandlerErrorFormatter.cs
- MenuItem.cs
- SingleAnimation.cs
- FrameworkContextData.cs
- _ListenerAsyncResult.cs
- HTTPNotFoundHandler.cs
- HijriCalendar.cs
- Transactions.cs
- CommandBinding.cs