Code:
/ 4.0 / 4.0 / untmp / 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 List orderingExpressions;
/// 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 ReadOnlyCollection OrderingExpressions
{
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
- ServiceHttpModule.cs
- ObjectStateFormatter.cs
- ContentOperations.cs
- TextReader.cs
- ObjectDataProvider.cs
- InteropBitmapSource.cs
- NotFiniteNumberException.cs
- ConditionalExpression.cs
- JournalEntryStack.cs
- Visual3DCollection.cs
- SpeechRecognitionEngine.cs
- MetadataProperty.cs
- OdbcError.cs
- ConvertTextFrag.cs
- MobileSysDescriptionAttribute.cs
- DataTransferEventArgs.cs
- AttachedAnnotation.cs
- LoginUtil.cs
- Exceptions.cs
- ContentHostHelper.cs
- WSSecurityPolicy.cs
- SafeCryptContextHandle.cs
- DbReferenceCollection.cs
- InternalReceiveMessage.cs
- ControlBuilderAttribute.cs
- ConfigurationLocationCollection.cs
- HtmlEmptyTagControlBuilder.cs
- TraceEventCache.cs
- prompt.cs
- TransformConverter.cs
- BaseTreeIterator.cs
- ColumnMapProcessor.cs
- CompoundFileStorageReference.cs
- NegationPusher.cs
- ListContractAdapter.cs
- ISAPIWorkerRequest.cs
- RoleService.cs
- complextypematerializer.cs
- ListViewAutomationPeer.cs
- PermissionToken.cs
- SoapSchemaImporter.cs
- DataGridViewAccessibleObject.cs
- ConditionedDesigner.cs
- ProcessHostFactoryHelper.cs
- MultiPropertyDescriptorGridEntry.cs
- ImageCreator.cs
- SoapSchemaImporter.cs
- ImportContext.cs
- sqlpipe.cs
- RegisteredArrayDeclaration.cs
- ClipboardProcessor.cs
- IndependentlyAnimatedPropertyMetadata.cs
- StylusPointProperty.cs
- activationcontext.cs
- bidPrivateBase.cs
- DispatchWrapper.cs
- KeyToListMap.cs
- XPathConvert.cs
- LayoutUtils.cs
- BoundsDrawingContextWalker.cs
- TextLineResult.cs
- GradientStop.cs
- AssociationSetMetadata.cs
- BinaryFormatterWriter.cs
- VBCodeProvider.cs
- ColorAnimationUsingKeyFrames.cs
- TrustLevel.cs
- WindowsRichEditRange.cs
- Literal.cs
- WindowsStatic.cs
- RegistryExceptionHelper.cs
- Tokenizer.cs
- AmbientValueAttribute.cs
- ConnectionStringsExpressionBuilder.cs
- IOException.cs
- ListControl.cs
- HtmlWindow.cs
- DataGridViewBand.cs
- invalidudtexception.cs
- ConfigurationStrings.cs
- OdbcTransaction.cs
- TextPointerBase.cs
- DiscoveryRequestHandler.cs
- IImplicitResourceProvider.cs
- SystemIPGlobalProperties.cs
- IOException.cs
- Choices.cs
- NewArray.cs
- QilPatternFactory.cs
- Thumb.cs
- ValueUtilsSmi.cs
- Property.cs
- WebBrowser.cs
- ExpressionConverter.cs
- RemotingConfigParser.cs
- RemoteWebConfigurationHostStream.cs
- TrailingSpaceComparer.cs
- TransformDescriptor.cs
- ColorConvertedBitmapExtension.cs
- HandlerBase.cs