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
- WebConfigManager.cs
- Drawing.cs
- PropertyGeneratedEventArgs.cs
- ServiceModelConfigurationElementCollection.cs
- TextBlockAutomationPeer.cs
- LabelExpression.cs
- Transform.cs
- DependencyObjectPropertyDescriptor.cs
- CancellationHandlerDesigner.cs
- EnvelopedPkcs7.cs
- PageAsyncTask.cs
- HttpEncoderUtility.cs
- ImplicitInputBrush.cs
- OutputCacheSettings.cs
- Stackframe.cs
- PropertyEntry.cs
- SamlSubject.cs
- PolicyValidationException.cs
- PreloadedPackages.cs
- ObjectListFieldCollection.cs
- RotateTransform.cs
- COM2Properties.cs
- TextFormatterHost.cs
- WebZone.cs
- _TimerThread.cs
- SystemInfo.cs
- StrokeCollection2.cs
- PeerName.cs
- XmlToDatasetMap.cs
- BitStack.cs
- Serializer.cs
- DetailsViewAutoFormat.cs
- controlskin.cs
- ClientEventManager.cs
- SynchronizedDispatch.cs
- _NativeSSPI.cs
- ListDependantCardsRequest.cs
- ValueChangedEventManager.cs
- FtpCachePolicyElement.cs
- ThrowHelper.cs
- AudioSignalProblemOccurredEventArgs.cs
- AnnotationObservableCollection.cs
- PrivilegeNotHeldException.cs
- PerfCounterSection.cs
- Queue.cs
- Vector3DAnimation.cs
- NotConverter.cs
- Cursor.cs
- KeyedCollection.cs
- Tile.cs
- DrawingContextDrawingContextWalker.cs
- RIPEMD160.cs
- ManagementEventWatcher.cs
- ColumnMapProcessor.cs
- TagPrefixAttribute.cs
- DataFormat.cs
- PropertyGridDesigner.cs
- PlainXmlSerializer.cs
- ConfigurationStrings.cs
- XamlTreeBuilder.cs
- TextBreakpoint.cs
- ListBindableAttribute.cs
- ValuePattern.cs
- HttpCachePolicy.cs
- LicenseContext.cs
- UserControl.cs
- FolderLevelBuildProviderCollection.cs
- InkSerializer.cs
- HandlerBase.cs
- StrongNamePublicKeyBlob.cs
- HttpConfigurationSystem.cs
- Claim.cs
- MetadataCache.cs
- EdmConstants.cs
- CompModSwitches.cs
- LinearKeyFrames.cs
- PrivilegeNotHeldException.cs
- TdsRecordBufferSetter.cs
- Point3DIndependentAnimationStorage.cs
- ButtonBaseAutomationPeer.cs
- BitmapEffectGroup.cs
- StubHelpers.cs
- NamedPipeAppDomainProtocolHandler.cs
- ElementAtQueryOperator.cs
- TimeSpan.cs
- PageSetupDialog.cs
- SqlCaseSimplifier.cs
- ListSortDescriptionCollection.cs
- TokenCreationException.cs
- RectangleF.cs
- Rfc2898DeriveBytes.cs
- UnmanagedHandle.cs
- CompiledQuery.cs
- ObjectComplexPropertyMapping.cs
- PriorityChain.cs
- XmlWriter.cs
- ZipIOExtraFieldElement.cs
- HttpHeaderCollection.cs
- SelectorItemAutomationPeer.cs
- ToolboxItemFilterAttribute.cs