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
- ISFTagAndGuidCache.cs
- SqlConnectionHelper.cs
- ArcSegment.cs
- IdentityModelDictionary.cs
- WindowAutomationPeer.cs
- SHA256.cs
- DoubleCollection.cs
- ManifestResourceInfo.cs
- XmlSchemaGroupRef.cs
- ObjectReaderCompiler.cs
- XhtmlBasicValidationSummaryAdapter.cs
- SqlGenerator.cs
- ToolBarOverflowPanel.cs
- Bookmark.cs
- PackagePartCollection.cs
- StandardMenuStripVerb.cs
- Debugger.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- XmlUnspecifiedAttribute.cs
- EventLogPermissionEntryCollection.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- SqlProfileProvider.cs
- Mutex.cs
- TextServicesProperty.cs
- ProxyFragment.cs
- SettingsAttributes.cs
- EntityDataSourceEntitySetNameItem.cs
- safex509handles.cs
- MessageDesigner.cs
- HttpHandlersSection.cs
- QilXmlReader.cs
- DataGridViewCellStyleConverter.cs
- DataBindEngine.cs
- embossbitmapeffect.cs
- TextWriterTraceListener.cs
- ProgressChangedEventArgs.cs
- SafeCoTaskMem.cs
- Button.cs
- MimeParameterWriter.cs
- DataGridViewColumnTypePicker.cs
- TextParentUndoUnit.cs
- XhtmlBasicFormAdapter.cs
- WindowsGraphics.cs
- PointAnimationUsingKeyFrames.cs
- TypeConverterHelper.cs
- RegistryConfigurationProvider.cs
- SafeNativeMethods.cs
- SoapFaultCodes.cs
- WsdlHelpGeneratorElement.cs
- QueryResponse.cs
- Int64.cs
- TimerEventSubscription.cs
- RTLAwareMessageBox.cs
- DelegatingHeader.cs
- ConstructorNeedsTagAttribute.cs
- PersistenceTypeAttribute.cs
- SecurityPermission.cs
- WebBrowser.cs
- ObjectListCommandsPage.cs
- WindowsClaimSet.cs
- EpmContentDeSerializerBase.cs
- AsyncContentLoadedEventArgs.cs
- XmlSchemaSimpleContent.cs
- ImageFormat.cs
- ReferentialConstraint.cs
- FilterEventArgs.cs
- BindingEditor.xaml.cs
- SystemIcmpV4Statistics.cs
- LinkLabelLinkClickedEvent.cs
- XmlStreamedByteStreamReader.cs
- SqlExpressionNullability.cs
- PageSetupDialog.cs
- LineMetrics.cs
- bidPrivateBase.cs
- FixedSOMLineRanges.cs
- AuthenticationModuleElementCollection.cs
- CustomPeerResolverService.cs
- returneventsaver.cs
- CreateWorkflowOwnerCommand.cs
- ErasingStroke.cs
- SerTrace.cs
- PseudoWebRequest.cs
- HwndHost.cs
- Base64Encoder.cs
- PromptEventArgs.cs
- CharAnimationUsingKeyFrames.cs
- WebPartVerbsEventArgs.cs
- FormViewUpdatedEventArgs.cs
- HighContrastHelper.cs
- AppLevelCompilationSectionCache.cs
- TimeSpanValidator.cs
- StorageSetMapping.cs
- ClusterSafeNativeMethods.cs
- MultiByteCodec.cs
- QilLoop.cs
- Identity.cs
- TextBoxBase.cs
- ObjectAnimationUsingKeyFrames.cs
- RectangleF.cs
- XmlSchemaObjectTable.cs