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
- Context.cs
- NamedPermissionSet.cs
- InlineCollection.cs
- TransactionInformation.cs
- SubtreeProcessor.cs
- FunctionUpdateCommand.cs
- CodeMethodReturnStatement.cs
- SizeAnimation.cs
- MetadataSource.cs
- WindowInteractionStateTracker.cs
- RijndaelManagedTransform.cs
- WebPartDescription.cs
- EditorPart.cs
- ParameterToken.cs
- DefaultAuthorizationContext.cs
- codemethodreferenceexpression.cs
- HtmlTableCellCollection.cs
- UInt32Converter.cs
- TrackingServices.cs
- Privilege.cs
- LogicalChannel.cs
- InputBinding.cs
- CreateUserWizardStep.cs
- FontSource.cs
- ActiveXHelper.cs
- DataTableCollection.cs
- MailBnfHelper.cs
- MailAddressCollection.cs
- ObjectSecurityT.cs
- SqlClientFactory.cs
- UdpDiscoveryEndpoint.cs
- Section.cs
- HttpContext.cs
- CustomErrorsSection.cs
- DataGridViewToolTip.cs
- TaiwanLunisolarCalendar.cs
- FamilyCollection.cs
- DelegatingTypeDescriptionProvider.cs
- AddIn.cs
- Unit.cs
- ManualWorkflowSchedulerService.cs
- MemberBinding.cs
- XpsFilter.cs
- FilePrompt.cs
- DataGridViewBand.cs
- ObjectDataSourceMethodEventArgs.cs
- CompressionTransform.cs
- MergeLocalizationDirectives.cs
- StringWriter.cs
- GridViewSortEventArgs.cs
- ComponentSerializationService.cs
- SortableBindingList.cs
- SortFieldComparer.cs
- WriteTimeStream.cs
- Gdiplus.cs
- InfoCardProofToken.cs
- CriticalFinalizerObject.cs
- MsmqIntegrationSecurityMode.cs
- PeerEndPoint.cs
- DataRelationCollection.cs
- PersonalizablePropertyEntry.cs
- TransformedBitmap.cs
- DesignerForm.cs
- ProgressBarRenderer.cs
- InternalSafeNativeMethods.cs
- WS2007FederationHttpBindingCollectionElement.cs
- StringHandle.cs
- TypeSystem.cs
- TargetPerspective.cs
- AttributeEmitter.cs
- WebBrowserNavigatedEventHandler.cs
- DirectoryLocalQuery.cs
- HiddenField.cs
- Processor.cs
- WindowPatternIdentifiers.cs
- SystemColorTracker.cs
- PageCodeDomTreeGenerator.cs
- SolidBrush.cs
- DocumentPage.cs
- HtmlTernaryTree.cs
- EntityConnectionStringBuilderItem.cs
- TargetControlTypeAttribute.cs
- ProtocolState.cs
- TreeViewDesigner.cs
- ForwardPositionQuery.cs
- IconConverter.cs
- Block.cs
- BrowsableAttribute.cs
- BCLDebug.cs
- StylusLogic.cs
- Types.cs
- AspCompat.cs
- CachedTypeface.cs
- SmtpNtlmAuthenticationModule.cs
- WizardForm.cs
- HttpApplicationStateBase.cs
- DataGridViewTextBoxColumn.cs
- SafeSecurityHelper.cs
- DesignerActionMethodItem.cs
- EntityDataSourceColumn.cs