Code:
/ 4.0 / 4.0 / 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.
//------------------------------------------------------------------------------
//
// 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
- Int64.cs
- TreeNodeCollectionEditorDialog.cs
- ResourcePermissionBaseEntry.cs
- ScrollBarAutomationPeer.cs
- TextAdaptor.cs
- QueryContinueDragEvent.cs
- ConfigurationSectionHelper.cs
- LayoutDump.cs
- BindingOperations.cs
- Splitter.cs
- ProtocolViolationException.cs
- ParallelEnumerable.cs
- HtmlImage.cs
- IsolatedStorageFile.cs
- SamlSubject.cs
- Keywords.cs
- String.cs
- XmlSchemaDocumentation.cs
- SyndicationDeserializer.cs
- XmlChildEnumerator.cs
- PolicyException.cs
- BufferedResponseStream.cs
- XmlValueConverter.cs
- OdbcHandle.cs
- InternalControlCollection.cs
- TextTreeTextBlock.cs
- AspNetPartialTrustHelpers.cs
- GeometryGroup.cs
- FigureParaClient.cs
- DrawingImage.cs
- EntityContainerEmitter.cs
- BindStream.cs
- Byte.cs
- ServerValidateEventArgs.cs
- ContextBase.cs
- PropVariant.cs
- AssociationSetEnd.cs
- _UriTypeConverter.cs
- FunctionNode.cs
- ImageSourceValueSerializer.cs
- InvalidateEvent.cs
- Renderer.cs
- DecodeHelper.cs
- StringConverter.cs
- SQLBinary.cs
- RegexCaptureCollection.cs
- TextControl.cs
- ArgumentException.cs
- ObjectConverter.cs
- WindowsAltTab.cs
- Constraint.cs
- MsmqMessageProperty.cs
- Clock.cs
- CounterCreationDataCollection.cs
- QueryContinueDragEvent.cs
- UnicodeEncoding.cs
- LineServices.cs
- SerializationException.cs
- TemplatePartAttribute.cs
- RectAnimationBase.cs
- ItemMap.cs
- ColorBlend.cs
- CodeDirectionExpression.cs
- SingleAnimation.cs
- TextRangeEdit.cs
- OperatorExpressions.cs
- GcSettings.cs
- StylusDownEventArgs.cs
- ObjectSet.cs
- StringUtil.cs
- externdll.cs
- SecurityState.cs
- XmlSchemaSimpleContentRestriction.cs
- InvariantComparer.cs
- TypedElement.cs
- DataServiceHostFactory.cs
- ElementProxy.cs
- BindingExpressionUncommonField.cs
- SoapSchemaImporter.cs
- CatalogPart.cs
- DataColumn.cs
- Operator.cs
- FlowDocumentPage.cs
- DataServiceOperationContext.cs
- ListViewTableRow.cs
- Menu.cs
- DataTableMapping.cs
- BlockingCollection.cs
- Column.cs
- IApplicationTrustManager.cs
- FixUpCollection.cs
- XmlStrings.cs
- RequestCacheManager.cs
- XPathNodePointer.cs
- XmlSchemaProviderAttribute.cs
- AcceleratedTokenProviderState.cs
- ShaderEffect.cs
- ModuleBuilderData.cs
- SystemPens.cs
- AttributedMetaModel.cs