Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- HierarchicalDataBoundControlAdapter.cs
- GridViewColumn.cs
- AlphaSortedEnumConverter.cs
- FontWeightConverter.cs
- Stylesheet.cs
- ProcessProtocolHandler.cs
- followingsibling.cs
- SelectionProviderWrapper.cs
- ChtmlTextWriter.cs
- AVElementHelper.cs
- SyndicationElementExtensionCollection.cs
- CompiledRegexRunner.cs
- LocationSectionRecord.cs
- GetReadStreamResult.cs
- IsolatedStorageFile.cs
- EntityClientCacheEntry.cs
- SecUtil.cs
- XmlCharCheckingWriter.cs
- FullTextState.cs
- UrlParameterWriter.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- WebPartActionVerb.cs
- DrawingVisual.cs
- OutArgumentConverter.cs
- PropertyMapper.cs
- SHA512Cng.cs
- UnsafeNativeMethodsTablet.cs
- DataViewSettingCollection.cs
- ProfilePropertySettings.cs
- SqlAggregateChecker.cs
- _BaseOverlappedAsyncResult.cs
- BindingCompleteEventArgs.cs
- XmlSchemaGroupRef.cs
- PathFigureCollection.cs
- TriggerCollection.cs
- ObjectSelectorEditor.cs
- ToolbarAUtomationPeer.cs
- ModelServiceImpl.cs
- SqlDependencyUtils.cs
- followingquery.cs
- TcpChannelHelper.cs
- NameValueCollection.cs
- WebConfigurationHost.cs
- AutomationPattern.cs
- sortedlist.cs
- SubMenuStyleCollectionEditor.cs
- ApplicationContext.cs
- NullableFloatMinMaxAggregationOperator.cs
- SizeF.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- EntityType.cs
- SQLInt16Storage.cs
- ContentTextAutomationPeer.cs
- MethodBuilderInstantiation.cs
- Literal.cs
- HttpFormatExtensions.cs
- RequestQueryParser.cs
- Point3DConverter.cs
- FixedSOMTableCell.cs
- AutoResizedEvent.cs
- DiscoveryMessageSequence11.cs
- ShutDownListener.cs
- IndexedGlyphRun.cs
- FixedMaxHeap.cs
- TypeConstant.cs
- FacetDescription.cs
- RelationshipWrapper.cs
- DurationConverter.cs
- TabItemWrapperAutomationPeer.cs
- ListViewItemEventArgs.cs
- SqlClientPermission.cs
- DataGridViewTextBoxEditingControl.cs
- WindowsIPAddress.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- InteropTrackingRecord.cs
- shaper.cs
- DataGridViewCheckBoxCell.cs
- SamlDoNotCacheCondition.cs
- CountAggregationOperator.cs
- Input.cs
- MouseGestureValueSerializer.cs
- CharStorage.cs
- ConsoleKeyInfo.cs
- httpapplicationstate.cs
- COAUTHIDENTITY.cs
- DataTableReader.cs
- EditorAttribute.cs
- TextBoxView.cs
- MimeObjectFactory.cs
- EmptyEnumerator.cs
- TableLayoutCellPaintEventArgs.cs
- ObjectItemCollection.cs
- LabelAutomationPeer.cs
- SiteMapNodeCollection.cs
- EmptyStringExpandableObjectConverter.cs
- SplitterEvent.cs
- ShutDownListener.cs
- DisplayMemberTemplateSelector.cs
- WebBrowserProgressChangedEventHandler.cs
- Gdiplus.cs