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
- ListItem.cs
- StylusDevice.cs
- AnimatedTypeHelpers.cs
- TextTreeTextNode.cs
- SchemaTableOptionalColumn.cs
- FileDialogCustomPlacesCollection.cs
- ApplicationContext.cs
- MaterialGroup.cs
- Int64KeyFrameCollection.cs
- SID.cs
- XmlReader.cs
- MetadataExporter.cs
- Error.cs
- ListViewItemSelectionChangedEvent.cs
- ProcessDesigner.cs
- WebPartConnectionsCancelVerb.cs
- ValidationSummary.cs
- NullNotAllowedCollection.cs
- HwndSourceKeyboardInputSite.cs
- followingquery.cs
- Point.cs
- ImageInfo.cs
- keycontainerpermission.cs
- DelimitedListTraceListener.cs
- DecoderNLS.cs
- CodeDirectiveCollection.cs
- ErasingStroke.cs
- CachedFontFamily.cs
- SecurityRuntime.cs
- CellTreeNodeVisitors.cs
- ListViewGroupItemCollection.cs
- Variant.cs
- SparseMemoryStream.cs
- ThreadPool.cs
- ToolStripContentPanel.cs
- XmlDocumentType.cs
- PerfCounters.cs
- RadialGradientBrush.cs
- TypeDescriptionProvider.cs
- RectAnimationUsingKeyFrames.cs
- CompensatableTransactionScopeActivityDesigner.cs
- DataSourceHelper.cs
- TextRunCache.cs
- WebPartDisplayModeEventArgs.cs
- EdmType.cs
- DataColumn.cs
- LambdaCompiler.cs
- BuildDependencySet.cs
- XmlLinkedNode.cs
- WindowsFont.cs
- EntityDataSourceWrapperCollection.cs
- GatewayIPAddressInformationCollection.cs
- SchemaComplexType.cs
- MouseWheelEventArgs.cs
- ButtonBaseAdapter.cs
- LockedAssemblyCache.cs
- IndicCharClassifier.cs
- HtmlInputReset.cs
- ClientBuildManagerCallback.cs
- GlobalId.cs
- PathFigureCollectionConverter.cs
- XmlILConstructAnalyzer.cs
- DBConnection.cs
- LambdaCompiler.Statements.cs
- TaiwanCalendar.cs
- XmlDocumentType.cs
- AuthenticationConfig.cs
- UrlUtility.cs
- TextChangedEventArgs.cs
- ClonableStack.cs
- SqlDataSourceQueryConverter.cs
- SafeNativeMethods.cs
- BulletedList.cs
- SchemaAttDef.cs
- WebPartCollection.cs
- BulletedList.cs
- TreeViewItem.cs
- HWStack.cs
- GridLengthConverter.cs
- WeakReferenceEnumerator.cs
- HttpBindingExtension.cs
- ErrorHandlerModule.cs
- TickBar.cs
- Crc32.cs
- GridViewUpdateEventArgs.cs
- DeflateInput.cs
- ProcessModelInfo.cs
- LabelInfo.cs
- HtmlInputText.cs
- DataPagerFieldItem.cs
- EditorPartCollection.cs
- IPAddress.cs
- DebugControllerThread.cs
- PointF.cs
- ArraySet.cs
- StylusOverProperty.cs
- FrameworkRichTextComposition.cs
- PerfCounters.cs
- DesignSurface.cs
- InProcStateClientManager.cs