Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / Providers / OrderingExpression.cs / 1407647 / OrderingExpression.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Describes a single ordering expression with sort order for
// $expands for a WCF Data Service.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services.Providers
{
#region Namespaces
using System.Linq.Expressions;
#endregion
///
/// Describes a single ordering expression along with sort order
///
internal sealed class OrderingExpression
{
/// Ordering expression
private readonly Expression orderingExpression;
/// Order is ascending or descending
private readonly bool isAscending;
///
/// Constructor
///
/// Expression for ordering
/// Order by ascending or descending
public OrderingExpression(Expression orderingExpression, bool isAscending)
{
this.orderingExpression = orderingExpression;
this.isAscending = isAscending;
}
/// Ordering expression
public Expression Expression
{
get
{
return this.orderingExpression;
}
}
/// Ascending or descending
public bool IsAscending
{
get
{
return this.isAscending;
}
}
}
}
// 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
- EventProvider.cs
- ContainerTracking.cs
- EntityCodeGenerator.cs
- MappedMetaModel.cs
- MemoryFailPoint.cs
- Base64Encoder.cs
- DataBoundControlAdapter.cs
- PropertyConverter.cs
- RepeatButtonAutomationPeer.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- BasicExpandProvider.cs
- DataGridViewCheckBoxCell.cs
- ToolboxItemFilterAttribute.cs
- BitmapMetadataEnumerator.cs
- SchemaCollectionCompiler.cs
- GridViewCommandEventArgs.cs
- ChannelFactoryBase.cs
- ExpressionWriter.cs
- ImplicitInputBrush.cs
- Exceptions.cs
- SessionEndingCancelEventArgs.cs
- ApplicationSettingsBase.cs
- HttpCacheParams.cs
- MultipartContentParser.cs
- SqlHelper.cs
- XmlBaseReader.cs
- AssemblyGen.cs
- METAHEADER.cs
- ObjectParameter.cs
- HeaderElement.cs
- SignatureConfirmationElement.cs
- ProjectionCamera.cs
- DependencyPropertyHelper.cs
- ElementUtil.cs
- HandlerWithFactory.cs
- LabelLiteral.cs
- JapaneseLunisolarCalendar.cs
- GradientStop.cs
- XmlSchemaInfo.cs
- BinaryOperationBinder.cs
- SqlInternalConnectionSmi.cs
- MaterialGroup.cs
- Utils.cs
- MenuAutomationPeer.cs
- AbstractExpressions.cs
- ListView.cs
- FontNameEditor.cs
- DesignerResources.cs
- SmiEventSink_Default.cs
- ProfileInfo.cs
- InvokeBase.cs
- StrokeRenderer.cs
- HtmlShimManager.cs
- RequestCacheValidator.cs
- InkPresenter.cs
- DataGridCommandEventArgs.cs
- FlowPosition.cs
- ParserStreamGeometryContext.cs
- FormViewUpdateEventArgs.cs
- OracleFactory.cs
- MenuAutomationPeer.cs
- TabControlDesigner.cs
- DefaultProxySection.cs
- JsonEncodingStreamWrapper.cs
- UnsafeNativeMethods.cs
- TreeNodeCollection.cs
- DrawListViewItemEventArgs.cs
- CompressionTracing.cs
- ScrollViewer.cs
- InProcStateClientManager.cs
- NameScopePropertyAttribute.cs
- TransformedBitmap.cs
- HandlerBase.cs
- CodeFieldReferenceExpression.cs
- SafeViewOfFileHandle.cs
- StreamUpgradeBindingElement.cs
- PostBackOptions.cs
- FillErrorEventArgs.cs
- TransformedBitmap.cs
- AddInEnvironment.cs
- RuleInfoComparer.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- XmlSchemaImporter.cs
- ToolStripItemTextRenderEventArgs.cs
- objectresult_tresulttype.cs
- RuntimeConfigLKG.cs
- CollectionType.cs
- ObjectDataSourceMethodEditor.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- DrawingAttributeSerializer.cs
- WorkflowRuntimeSection.cs
- UndoEngine.cs
- TextUtf8RawTextWriter.cs
- ImageCollectionEditor.cs
- DeviceContext.cs
- HttpWriter.cs
- JumpTask.cs
- AppDomainUnloadedException.cs
- ContentControl.cs
- PropertyChangedEventManager.cs