Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / WebControls / DynamicQueryableWrapper.cs / 1305376 / DynamicQueryableWrapper.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
#if ORYX_VNEXT
namespace Microsoft.Web.Data.UI.WebControls {
using Microsoft.Web.Query.Dynamic;
#else
namespace System.Web.UI.WebControls {
using System.Web.Query.Dynamic;
#endif
using System.Linq;
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VisualTarget.cs
- InputReport.cs
- JsonClassDataContract.cs
- SystemIcmpV4Statistics.cs
- AssociationTypeEmitter.cs
- ProtocolException.cs
- IOThreadTimer.cs
- sqlcontext.cs
- HostingEnvironmentWrapper.cs
- Unit.cs
- ProcessThread.cs
- ReferenceConverter.cs
- UserControlParser.cs
- HTTPRemotingHandler.cs
- PersonalizableTypeEntry.cs
- InputElement.cs
- ParameterElementCollection.cs
- SplineQuaternionKeyFrame.cs
- SqlInfoMessageEvent.cs
- COM2PropertyBuilderUITypeEditor.cs
- Formatter.cs
- TextParaClient.cs
- SqlBooleanizer.cs
- MarkupProperty.cs
- SslStream.cs
- DataSourceControlBuilder.cs
- WinEventHandler.cs
- StringReader.cs
- ArrangedElement.cs
- SiteMapSection.cs
- ActivityTypeCodeDomSerializer.cs
- Crypto.cs
- LinqDataSourceInsertEventArgs.cs
- CodeSubDirectoriesCollection.cs
- TriggerAction.cs
- AddInActivator.cs
- CompiledELinqQueryState.cs
- SpellerInterop.cs
- LinkArea.cs
- LiteralTextContainerControlBuilder.cs
- NamespaceTable.cs
- HttpWebRequestElement.cs
- SqlDataReaderSmi.cs
- DebugInfoGenerator.cs
- SqlCommandBuilder.cs
- SqlInternalConnection.cs
- MediaSystem.cs
- BypassElementCollection.cs
- SmiXetterAccessMap.cs
- EventMap.cs
- DescriptionAttribute.cs
- FillBehavior.cs
- MarkupCompilePass2.cs
- ListBoxAutomationPeer.cs
- LineUtil.cs
- SubpageParaClient.cs
- InkCollectionBehavior.cs
- ObjectPropertyMapping.cs
- HttpRawResponse.cs
- XmlTextEncoder.cs
- FontEmbeddingManager.cs
- SafeRightsManagementPubHandle.cs
- DataGrid.cs
- MorphHelpers.cs
- TimeSpanConverter.cs
- DeclarativeConditionsCollection.cs
- PerfProviderCollection.cs
- XmlSchemaAppInfo.cs
- SuppressMessageAttribute.cs
- TextElementEnumerator.cs
- OciHandle.cs
- AsymmetricKeyExchangeFormatter.cs
- Boolean.cs
- ReadWriteObjectLock.cs
- DataRowView.cs
- SpecialTypeDataContract.cs
- ControlCachePolicy.cs
- FileInfo.cs
- MetadataItem.cs
- shaperfactoryquerycacheentry.cs
- BindingExpression.cs
- CodeAttributeDeclaration.cs
- ColorAnimationUsingKeyFrames.cs
- SqlTypesSchemaImporter.cs
- QueryContinueDragEvent.cs
- SHA256Managed.cs
- ResourceContainer.cs
- SchemaHelper.cs
- MethodResolver.cs
- InvalidChannelBindingException.cs
- ComplexTypeEmitter.cs
- EntityCommandDefinition.cs
- EventLogger.cs
- CodePageUtils.cs
- AddingNewEventArgs.cs
- CultureTableRecord.cs
- ExtentJoinTreeNode.cs
- WindowsFormsHostAutomationPeer.cs
- XmlSchemaRedefine.cs
- XmlDataCollection.cs