Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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.
//
//-----------------------------------------------------------------------------
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormDocumentDesigner.cs
- ComPlusThreadInitializer.cs
- EventLevel.cs
- WindowsRebar.cs
- Byte.cs
- Rectangle.cs
- NetworkAddressChange.cs
- DSASignatureFormatter.cs
- CFStream.cs
- CanonicalFormWriter.cs
- Membership.cs
- PasswordPropertyTextAttribute.cs
- FixedFlowMap.cs
- MenuTracker.cs
- StylusCaptureWithinProperty.cs
- SecurityCriticalDataForSet.cs
- serverconfig.cs
- ImageBrush.cs
- TextServicesDisplayAttributePropertyRanges.cs
- CodeTypeMemberCollection.cs
- ProcessHostConfigUtils.cs
- ConditionalAttribute.cs
- CustomLineCap.cs
- BaseValidator.cs
- SByteConverter.cs
- RuntimeResourceSet.cs
- TextAction.cs
- SqlExpander.cs
- SharedPerformanceCounter.cs
- RSACryptoServiceProvider.cs
- CounterCreationDataCollection.cs
- EntryWrittenEventArgs.cs
- SubpageParagraph.cs
- StackBuilderSink.cs
- Transform.cs
- AuthenticationModulesSection.cs
- SqlInternalConnection.cs
- Size3D.cs
- InputScopeConverter.cs
- ComponentCommands.cs
- NativeMethods.cs
- SymbolMethod.cs
- ConsumerConnectionPointCollection.cs
- RemotingException.cs
- SystemWebCachingSectionGroup.cs
- BaseCodeDomTreeGenerator.cs
- HttpApplicationStateWrapper.cs
- graph.cs
- SafeProcessHandle.cs
- MissingMethodException.cs
- nulltextnavigator.cs
- NavigationCommands.cs
- ImageFormatConverter.cs
- HwndSourceKeyboardInputSite.cs
- NameSpaceEvent.cs
- FrameDimension.cs
- ToolboxItemCollection.cs
- BinaryConverter.cs
- XPathExpr.cs
- Pkcs9Attribute.cs
- __Filters.cs
- COSERVERINFO.cs
- AlgoModule.cs
- WinFormsUtils.cs
- SynthesizerStateChangedEventArgs.cs
- CodeEventReferenceExpression.cs
- iisPickupDirectory.cs
- ClonableStack.cs
- XmlSchemaValidationException.cs
- CalendarItem.cs
- FolderBrowserDialog.cs
- XmlSchemaRedefine.cs
- InfoCardListRequest.cs
- ContextMenu.cs
- XhtmlBasicTextBoxAdapter.cs
- EntityParameter.cs
- GenericTypeParameterBuilder.cs
- SoapSchemaExporter.cs
- GetLedgerRequest.cs
- FastEncoderWindow.cs
- IteratorDescriptor.cs
- IERequestCache.cs
- AllMembershipCondition.cs
- MatrixStack.cs
- PathStreamGeometryContext.cs
- LineBreak.cs
- URI.cs
- ConstraintConverter.cs
- EventDescriptorCollection.cs
- COM2PictureConverter.cs
- ZipIOCentralDirectoryFileHeader.cs
- Header.cs
- PenLineCapValidation.cs
- Stroke.cs
- OleDbParameterCollection.cs
- TableItemPattern.cs
- IPAddressCollection.cs
- Stack.cs
- UpdatePanelTrigger.cs
- UserInitiatedRoutedEventPermission.cs