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
- SyndicationCategory.cs
- odbcmetadatafactory.cs
- HttpBufferlessInputStream.cs
- XmlIncludeAttribute.cs
- SplitterEvent.cs
- BitmapMetadataEnumerator.cs
- CachedFontFamily.cs
- TextElementAutomationPeer.cs
- RedirectionProxy.cs
- Ref.cs
- Point3D.cs
- XmlWellformedWriter.cs
- FloatUtil.cs
- Invariant.cs
- HuffmanTree.cs
- SectionXmlInfo.cs
- InputBinder.cs
- ItemContainerProviderWrapper.cs
- ConfigurationSectionCollection.cs
- BehaviorEditorPart.cs
- WebCodeGenerator.cs
- XamlReader.cs
- WindowsRegion.cs
- AssemblyAttributes.cs
- _Rfc2616CacheValidators.cs
- SourceItem.cs
- FontStretches.cs
- Msmq3PoisonHandler.cs
- PlainXmlSerializer.cs
- DecodeHelper.cs
- Utils.cs
- DiscardableAttribute.cs
- HttpResponseHeader.cs
- Attributes.cs
- EncryptedPackage.cs
- CodeGen.cs
- LinqDataSourceContextEventArgs.cs
- CheckBoxList.cs
- ToolboxItemAttribute.cs
- TypedTableHandler.cs
- CellQuery.cs
- TextRangeEditTables.cs
- Attributes.cs
- ScaleTransform.cs
- StorageEntityContainerMapping.cs
- QuadraticBezierSegment.cs
- CompositeFontParser.cs
- DPAPIProtectedConfigurationProvider.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- CounterCreationData.cs
- QueueProcessor.cs
- SqlConnectionPoolGroupProviderInfo.cs
- NetworkInformationException.cs
- MutexSecurity.cs
- XmlAnyElementAttribute.cs
- SiteMapNodeCollection.cs
- ZoneMembershipCondition.cs
- UdpChannelFactory.cs
- ListViewEditEventArgs.cs
- TagPrefixCollection.cs
- ClassDataContract.cs
- DetailsViewDeleteEventArgs.cs
- HuffmanTree.cs
- ItemCheckEvent.cs
- Matrix.cs
- CleanUpVirtualizedItemEventArgs.cs
- MatchAllMessageFilter.cs
- HostingEnvironmentException.cs
- BitmapPalette.cs
- Int64.cs
- rsa.cs
- Configuration.cs
- WebServiceEnumData.cs
- FontSource.cs
- TextBox.cs
- MemberHolder.cs
- SafeBitVector32.cs
- MarkupWriter.cs
- RadioButtonBaseAdapter.cs
- MediaContext.cs
- ConsoleCancelEventArgs.cs
- ParallelSeparator.xaml.cs
- AnnotationAuthorChangedEventArgs.cs
- EmptyElement.cs
- PanelDesigner.cs
- HashMembershipCondition.cs
- MembershipPasswordException.cs
- HtmlProps.cs
- WindowsStatic.cs
- Maps.cs
- ListenerSessionConnectionReader.cs
- XamlGridLengthSerializer.cs
- StreamingContext.cs
- PeerNameRegistration.cs
- ResourcePermissionBase.cs
- Visual3D.cs
- Bitmap.cs
- columnmapkeybuilder.cs
- StdValidatorsAndConverters.cs
- AuthenticationModuleElementCollection.cs