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
- FileVersion.cs
- PageHandlerFactory.cs
- XAMLParseException.cs
- TextServicesProperty.cs
- DBParameter.cs
- CookieProtection.cs
- EntityDesignerDataSourceView.cs
- VideoDrawing.cs
- OracleBinary.cs
- DataKey.cs
- SQLInt32Storage.cs
- Localizer.cs
- ConnectionPoint.cs
- TextPattern.cs
- EntityDataSourceChangingEventArgs.cs
- MimeBasePart.cs
- PerfCounters.cs
- TableItemPattern.cs
- EditBehavior.cs
- DataStreamFromComStream.cs
- EventHandlersStore.cs
- TreeNodeCollection.cs
- IItemContainerGenerator.cs
- SuppressMergeCheckAttribute.cs
- HttpCookiesSection.cs
- LassoHelper.cs
- SvcMapFileLoader.cs
- DependencySource.cs
- IntegerValidatorAttribute.cs
- GridViewColumn.cs
- TabPage.cs
- CompilationRelaxations.cs
- DataSourceDesigner.cs
- ContextMenuAutomationPeer.cs
- TextBox.cs
- ColorIndependentAnimationStorage.cs
- FormsAuthenticationUser.cs
- XmlChildEnumerator.cs
- ProfileSettings.cs
- ClientConfigurationHost.cs
- NullableBoolConverter.cs
- PopOutPanel.cs
- TransformerTypeCollection.cs
- Variable.cs
- CodePrimitiveExpression.cs
- ReceiveContextCollection.cs
- OleDbInfoMessageEvent.cs
- ServiceReference.cs
- ExpressionNode.cs
- SqlFormatter.cs
- SystemInformation.cs
- ToolStripContextMenu.cs
- FormViewDeleteEventArgs.cs
- ExpressionEditor.cs
- TextEmbeddedObject.cs
- WorkflowServiceBuildProvider.cs
- ProfileSettingsCollection.cs
- TemplateParser.cs
- ExtractorMetadata.cs
- CommandBindingCollection.cs
- LocalizableResourceBuilder.cs
- TaskFormBase.cs
- DecimalStorage.cs
- ParserExtension.cs
- GeometryModel3D.cs
- VirtualPath.cs
- CqlLexer.cs
- DeviceContext2.cs
- HostedTcpTransportManager.cs
- ZipIOExtraField.cs
- Token.cs
- CodeConditionStatement.cs
- Clause.cs
- Matrix3DConverter.cs
- EnumBuilder.cs
- SizeKeyFrameCollection.cs
- NetWebProxyFinder.cs
- BitmapEditor.cs
- MbpInfo.cs
- TableMethodGenerator.cs
- VisualBasicImportReference.cs
- SplitterPanel.cs
- Storyboard.cs
- SystemIcmpV6Statistics.cs
- Converter.cs
- XamlGridLengthSerializer.cs
- TreeChangeInfo.cs
- MediaElementAutomationPeer.cs
- MULTI_QI.cs
- Stroke.cs
- HitTestFilterBehavior.cs
- FtpRequestCacheValidator.cs
- WebCategoryAttribute.cs
- VectorCollection.cs
- SafeRightsManagementQueryHandle.cs
- XmlUnspecifiedAttribute.cs
- ScaleTransform3D.cs
- WindowsTitleBar.cs
- DbProviderFactoriesConfigurationHandler.cs
- codemethodreferenceexpression.cs