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
- DPCustomTypeDescriptor.cs
- regiisutil.cs
- FixedLineResult.cs
- Transform3D.cs
- Vector3DIndependentAnimationStorage.cs
- OdbcDataReader.cs
- Part.cs
- SelectedDatesCollection.cs
- TempFiles.cs
- SatelliteContractVersionAttribute.cs
- MailSettingsSection.cs
- CustomError.cs
- ResizeGrip.cs
- HtmlDocument.cs
- ListCollectionView.cs
- GetPageNumberCompletedEventArgs.cs
- PlaceHolder.cs
- RC2.cs
- CopyAction.cs
- PointAnimationBase.cs
- UserControlBuildProvider.cs
- VirtualStackFrame.cs
- ListDictionaryInternal.cs
- IndependentlyAnimatedPropertyMetadata.cs
- DataGridViewCellMouseEventArgs.cs
- PropertyInfoSet.cs
- SharedConnectionWorkflowTransactionService.cs
- EventLogWatcher.cs
- LocalBuilder.cs
- TextRangeAdaptor.cs
- TerminateSequenceResponse.cs
- ToolStripItemClickedEventArgs.cs
- BamlResourceContent.cs
- MobileContainerDesigner.cs
- DbConnectionPoolGroup.cs
- documentsequencetextcontainer.cs
- GraphicsPath.cs
- TableNameAttribute.cs
- Process.cs
- DebugManager.cs
- TextTreeUndoUnit.cs
- ToolStripArrowRenderEventArgs.cs
- WebBrowsableAttribute.cs
- Formatter.cs
- QueryCacheKey.cs
- HostProtectionPermission.cs
- CopyNodeSetAction.cs
- BlurBitmapEffect.cs
- FlagsAttribute.cs
- PackWebRequestFactory.cs
- WebPartUserCapability.cs
- SmiContextFactory.cs
- ColorBlend.cs
- XmlSchemaSimpleType.cs
- VectorAnimationUsingKeyFrames.cs
- DebugView.cs
- CallContext.cs
- ReadOnlyHierarchicalDataSource.cs
- WindowsEditBoxRange.cs
- HtmlTableCell.cs
- GB18030Encoding.cs
- FrameworkContentElement.cs
- BinaryReader.cs
- DirectoryObjectSecurity.cs
- HybridObjectCache.cs
- LoginUtil.cs
- Rect.cs
- CommandDesigner.cs
- Util.cs
- MediaTimeline.cs
- PromptBuilder.cs
- ValidatingPropertiesEventArgs.cs
- ProfileBuildProvider.cs
- WindowsUpDown.cs
- XmlNamespaceDeclarationsAttribute.cs
- ListItemCollection.cs
- MasterPageParser.cs
- SharedStatics.cs
- ECDiffieHellmanPublicKey.cs
- ProtectedConfiguration.cs
- LinearGradientBrush.cs
- HostingEnvironmentSection.cs
- DelegateSerializationHolder.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- LoadMessageLogger.cs
- WebResourceAttribute.cs
- DrawingGroupDrawingContext.cs
- DeadCharTextComposition.cs
- ObjectFullSpanRewriter.cs
- CodeDirectiveCollection.cs
- SequentialUshortCollection.cs
- DictionaryBase.cs
- IsolatedStorageFile.cs
- SchemaDeclBase.cs
- Rotation3DKeyFrameCollection.cs
- PolyQuadraticBezierSegment.cs
- SystemResourceKey.cs
- PrimitiveOperationFormatter.cs
- ClientCredentialsElement.cs
- PageHandlerFactory.cs