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
- WebBrowserContainer.cs
- StateItem.cs
- Decoder.cs
- ChannelServices.cs
- SHA384Managed.cs
- HatchBrush.cs
- TaskHelper.cs
- XamlVector3DCollectionSerializer.cs
- CodeTypeOfExpression.cs
- ConsumerConnectionPointCollection.cs
- XsdBuildProvider.cs
- WebPartTransformerCollection.cs
- PeerToPeerException.cs
- WindowsFormsHelpers.cs
- ISSmlParser.cs
- SystemInfo.cs
- SafeSecurityHandles.cs
- ExpressionBuilder.cs
- XmlTypeMapping.cs
- ImageBrush.cs
- PerformanceCounter.cs
- BooleanAnimationBase.cs
- DiscoveryDocumentLinksPattern.cs
- AssemblyNameProxy.cs
- ObjectList.cs
- ValidationRuleCollection.cs
- CompilerInfo.cs
- ClientScriptManager.cs
- Duration.cs
- WmpBitmapEncoder.cs
- DataGridViewRowStateChangedEventArgs.cs
- ConstructorBuilder.cs
- TreeNodeStyleCollection.cs
- MeasurementDCInfo.cs
- DoubleAnimationUsingPath.cs
- MultiTrigger.cs
- FileEnumerator.cs
- ToolStripDropDownClosingEventArgs.cs
- TextEndOfSegment.cs
- HttpRequest.cs
- ErrorProvider.cs
- Size3D.cs
- Rotation3DAnimationBase.cs
- ColumnHeaderConverter.cs
- ZipIOExtraFieldElement.cs
- GlyphRunDrawing.cs
- ConnectionManagementElementCollection.cs
- SystemInfo.cs
- SynchronizationContext.cs
- XmlNamespaceManager.cs
- DbConnectionPoolCounters.cs
- Accessible.cs
- AutomationIdentifierGuids.cs
- DataProtection.cs
- LambdaCompiler.ControlFlow.cs
- EventListenerClientSide.cs
- NavigatorOutput.cs
- CustomAssemblyResolver.cs
- ReflectPropertyDescriptor.cs
- MultiPageTextView.cs
- UnsafeCollabNativeMethods.cs
- SaveFileDialog.cs
- ErrorHandler.cs
- OutputCacheSettingsSection.cs
- AdornedElementPlaceholder.cs
- WeakReferenceEnumerator.cs
- SerialPort.cs
- UTF32Encoding.cs
- DesignerTextViewAdapter.cs
- TextTreeInsertUndoUnit.cs
- Int64Converter.cs
- DeviceContext.cs
- ComponentCache.cs
- BrowserCapabilitiesFactory.cs
- PanelStyle.cs
- Point3D.cs
- MetadataSerializer.cs
- LayoutTable.cs
- ConfigXmlComment.cs
- UserValidatedEventArgs.cs
- ArrayWithOffset.cs
- RoutedEventValueSerializer.cs
- TraceContextRecord.cs
- Parallel.cs
- Stack.cs
- CollectionChangeEventArgs.cs
- DropDownButton.cs
- BaseTreeIterator.cs
- SqlCommand.cs
- ProcessManager.cs
- CompilerGeneratedAttribute.cs
- PersonalizablePropertyEntry.cs
- Variant.cs
- ImageMap.cs
- NonValidatingSecurityTokenAuthenticator.cs
- WebPartZone.cs
- Literal.cs
- ImageAutomationPeer.cs
- FormatterConverter.cs
- EncodingTable.cs