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
- Completion.cs
- BaseDataBoundControl.cs
- PtsHelper.cs
- BrowserDefinition.cs
- _TimerThread.cs
- ExpressionBuilderContext.cs
- Context.cs
- Brushes.cs
- AnimationTimeline.cs
- ObjectStateEntry.cs
- ToolStripTemplateNode.cs
- _HeaderInfo.cs
- HighContrastHelper.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- WebRequestModuleElement.cs
- StylusPointPropertyInfo.cs
- Int32CollectionConverter.cs
- ApplyTemplatesAction.cs
- IsolatedStoragePermission.cs
- XmlSchemaExternal.cs
- AbandonedMutexException.cs
- AsymmetricAlgorithm.cs
- DataContractSerializer.cs
- DataGridViewComboBoxColumn.cs
- DesignerLoader.cs
- ContentValidator.cs
- ActionItem.cs
- OdbcFactory.cs
- ArgumentOutOfRangeException.cs
- RelationshipType.cs
- DataIdProcessor.cs
- MachineKeyConverter.cs
- QuaternionIndependentAnimationStorage.cs
- GroupBox.cs
- DataGridViewCellConverter.cs
- AstTree.cs
- MatrixTransform.cs
- MenuCommand.cs
- BamlReader.cs
- XamlReaderConstants.cs
- CSharpCodeProvider.cs
- ApplicationSecurityInfo.cs
- DependencyPropertyKind.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- IRCollection.cs
- DocobjHost.cs
- SmiEventSink_DeferedProcessing.cs
- XmlnsPrefixAttribute.cs
- DateTimeOffsetAdapter.cs
- ObjectSet.cs
- LongValidatorAttribute.cs
- TargetPerspective.cs
- HttpListenerException.cs
- Matrix3DConverter.cs
- errorpatternmatcher.cs
- Constant.cs
- PreservationFileWriter.cs
- BrowserCapabilitiesFactory.cs
- DataTableTypeConverter.cs
- RegexEditorDialog.cs
- BamlLocalizer.cs
- CodePropertyReferenceExpression.cs
- UpdateProgress.cs
- HashAlgorithm.cs
- HttpConfigurationSystem.cs
- EventData.cs
- FrameworkElementAutomationPeer.cs
- PresentationSource.cs
- MenuCommandService.cs
- PersistNameAttribute.cs
- IISMapPath.cs
- InputLanguageEventArgs.cs
- DesignerContextDescriptor.cs
- TextRangeAdaptor.cs
- LoadRetryAsyncResult.cs
- XPathNodePointer.cs
- DesignerDataSchemaClass.cs
- XmlSignificantWhitespace.cs
- ObjectDataSourceSelectingEventArgs.cs
- MinMaxParagraphWidth.cs
- ThreadStartException.cs
- AppDomainAttributes.cs
- ProtocolsConfigurationEntry.cs
- PeerInvitationResponse.cs
- FormClosingEvent.cs
- JulianCalendar.cs
- _NetRes.cs
- HMACSHA1.cs
- XsltLibrary.cs
- InfiniteIntConverter.cs
- ComponentEvent.cs
- _Win32.cs
- SingleTagSectionHandler.cs
- XMLSchema.cs
- GroupPartitionExpr.cs
- DetailsViewDeleteEventArgs.cs
- GenericIdentity.cs
- ImageFormat.cs
- Material.cs
- WhiteSpaceTrimStringConverter.cs