Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / DynamicQueryableWrapper.cs / 1 / DynamicQueryableWrapper.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System.Linq;
using System.Web.Query.Dynamic;
internal class DynamicQueryableWrapper : IDynamicQueryable {
public IQueryable Where(IQueryable source, string predicate, params object[] values) {
return DynamicQueryable.Where(source, predicate, values);
}
public IQueryable Select(IQueryable source, string selector, params object[] values) {
return DynamicQueryable.Select(source, selector, values);
}
public IQueryable OrderBy(IQueryable source, string ordering, params object[] values) {
return DynamicQueryable.OrderBy(source, ordering, values);
}
public IQueryable Take(IQueryable source, int count) {
return DynamicQueryable.Take(source, count);
}
public IQueryable Skip(IQueryable source, int count) {
return DynamicQueryable.Skip(source, count);
}
public IQueryable GroupBy(IQueryable source, string keySelector, string elementSelector, params object[] values) {
return DynamicQueryable.GroupBy(source, keySelector, elementSelector, values );
}
public int Count(IQueryable source) {
return DynamicQueryable.Count(source);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StorageScalarPropertyMapping.cs
- SerializationInfoEnumerator.cs
- BitmapSource.cs
- Schema.cs
- DataBindingExpressionBuilder.cs
- EntityTransaction.cs
- PageSetupDialog.cs
- DefaultBinder.cs
- EdgeProfileValidation.cs
- AssemblyResourceLoader.cs
- EntityTypeEmitter.cs
- FlowLayout.cs
- recordstate.cs
- CreateParams.cs
- ConnectionPoint.cs
- ParserStreamGeometryContext.cs
- DataGridViewCellPaintingEventArgs.cs
- Convert.cs
- AlignmentXValidation.cs
- HtmlImage.cs
- AnnotationResourceChangedEventArgs.cs
- QilInvoke.cs
- GridItemPatternIdentifiers.cs
- RegexInterpreter.cs
- DesignerLoader.cs
- AnonymousIdentificationModule.cs
- MailMessage.cs
- ProxyHelper.cs
- MouseButtonEventArgs.cs
- RangeValidator.cs
- StreamInfo.cs
- AuthorizationContext.cs
- ToolStripContentPanel.cs
- PublisherIdentityPermission.cs
- DataError.cs
- ExpandSegment.cs
- Parameter.cs
- SelectManyQueryOperator.cs
- XmlIterators.cs
- TextStore.cs
- FileSystemEventArgs.cs
- ClickablePoint.cs
- BlurBitmapEffect.cs
- VariableQuery.cs
- ChannelBuilder.cs
- PreservationFileReader.cs
- ColumnMapProcessor.cs
- BackStopAuthenticationModule.cs
- WrappedIUnknown.cs
- ButtonChrome.cs
- DictionaryChange.cs
- ValidatingPropertiesEventArgs.cs
- Scheduling.cs
- AuthenticationManager.cs
- DbSourceParameterCollection.cs
- CapabilitiesRule.cs
- MenuTracker.cs
- RSAPKCS1KeyExchangeFormatter.cs
- EditorPartDesigner.cs
- EmptyEnumerator.cs
- VersionedStream.cs
- TypeHelper.cs
- CacheEntry.cs
- EdmFunctions.cs
- DesignerMetadata.cs
- EdmEntityTypeAttribute.cs
- TableRowCollection.cs
- FontWeightConverter.cs
- NominalTypeEliminator.cs
- SR.cs
- SourceFilter.cs
- HtmlInputRadioButton.cs
- AnnotationAuthorChangedEventArgs.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- Trace.cs
- Cursor.cs
- Attribute.cs
- TimerElapsedEvenArgs.cs
- IndentedTextWriter.cs
- XmlStrings.cs
- ThemeDirectoryCompiler.cs
- ParameterReplacerVisitor.cs
- XmlUnspecifiedAttribute.cs
- NeutralResourcesLanguageAttribute.cs
- LicFileLicenseProvider.cs
- CheckStoreFileValidityRequest.cs
- UserControl.cs
- SignatureToken.cs
- PrintDocument.cs
- SoapFault.cs
- BitSet.cs
- BufferedReceiveElement.cs
- Knowncolors.cs
- DbProviderSpecificTypePropertyAttribute.cs
- EndpointDiscoveryMetadataCD1.cs
- Ports.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- DefaultValueTypeConverter.cs
- DynamicValidatorEventArgs.cs
- XmlAutoDetectWriter.cs