Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- WindowsFormsSectionHandler.cs
- CryptoProvider.cs
- PageThemeParser.cs
- StrongTypingException.cs
- CapabilitiesSection.cs
- EncoderReplacementFallback.cs
- HtmlInputHidden.cs
- PersonalizationStateInfo.cs
- ReadOnlyPropertyMetadata.cs
- IncomingWebResponseContext.cs
- AspCompat.cs
- XmlNamespaceManager.cs
- IgnorePropertiesAttribute.cs
- ContentHostHelper.cs
- QilList.cs
- OpenTypeCommon.cs
- ExportOptions.cs
- MenuItem.cs
- DataBoundControlActionList.cs
- Expr.cs
- ButtonBase.cs
- UndirectedGraph.cs
- DebugController.cs
- WebPartConnectVerb.cs
- OleStrCAMarshaler.cs
- AsyncDataRequest.cs
- CodeAttributeArgument.cs
- QueryCreatedEventArgs.cs
- ConfigurationErrorsException.cs
- Rect3D.cs
- Stream.cs
- DynamicRendererThreadManager.cs
- sqlstateclientmanager.cs
- SQLGuid.cs
- CodeRemoveEventStatement.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- TypeValidationEventArgs.cs
- LoginView.cs
- NativeMethods.cs
- XmlException.cs
- ConfigurationPermission.cs
- Freezable.cs
- OverlappedContext.cs
- ResolveCriteriaCD1.cs
- PeerObject.cs
- WebControlsSection.cs
- SourceElementsCollection.cs
- CodeNamespace.cs
- Misc.cs
- HttpCookieCollection.cs
- CacheRequest.cs
- FrugalList.cs
- UnmanagedMarshal.cs
- ReceiveSecurityHeaderElementManager.cs
- ProcessProtocolHandler.cs
- CachingHintValidation.cs
- AlternateViewCollection.cs
- FunctionUpdateCommand.cs
- DeviceContext2.cs
- NextPreviousPagerField.cs
- AdornedElementPlaceholder.cs
- ToolStripDropDownClosingEventArgs.cs
- DataGridViewCellStyleBuilderDialog.cs
- ProjectionPruner.cs
- HttpStreams.cs
- LinkArea.cs
- TagNameToTypeMapper.cs
- Signature.cs
- Msec.cs
- BaseWebProxyFinder.cs
- DataGridBoolColumn.cs
- BitmapPalette.cs
- XmlSerializationReader.cs
- ThicknessAnimation.cs
- TextServicesProperty.cs
- ProcessThread.cs
- HtmlInputButton.cs
- NamedServiceModelExtensionCollectionElement.cs
- EmbeddedMailObjectsCollection.cs
- EdmItemCollection.cs
- SelectionGlyph.cs
- AstNode.cs
- InvokePatternIdentifiers.cs
- ObjectDataSourceView.cs
- PhysicalOps.cs
- WebBrowserBase.cs
- _ShellExpression.cs
- SystemIPInterfaceProperties.cs
- NotImplementedException.cs
- UnsafeNativeMethods.cs
- XamlClipboardData.cs
- SetterBase.cs
- ContextMenuStripGroupCollection.cs
- EntityDataSourceContainerNameConverter.cs
- MgmtResManager.cs
- StylusDownEventArgs.cs
- GlyphTypeface.cs
- XmlDeclaration.cs
- ApplicationManager.cs
- ObjectCacheHost.cs