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
- PreloadHost.cs
- ChangePassword.cs
- MethodCallTranslator.cs
- CodeSnippetCompileUnit.cs
- JavaScriptString.cs
- SafeFileMapViewHandle.cs
- ServicePoint.cs
- OptimizerPatterns.cs
- XmlUtf8RawTextWriter.cs
- SBCSCodePageEncoding.cs
- DrawingImage.cs
- EndpointConfigContainer.cs
- DataGridViewButtonCell.cs
- EntityRecordInfo.cs
- TypedElement.cs
- AnonymousIdentificationSection.cs
- CodeCommentStatementCollection.cs
- BrowsableAttribute.cs
- MatchAttribute.cs
- XmlMemberMapping.cs
- PropertyTab.cs
- EmbeddedObject.cs
- SuppressMessageAttribute.cs
- PhysicalAddress.cs
- ProcessHostFactoryHelper.cs
- propertytag.cs
- HiddenFieldDesigner.cs
- ChtmlTextWriter.cs
- WindowsNonControl.cs
- Timer.cs
- MatrixKeyFrameCollection.cs
- CaseStatement.cs
- LinqDataSourceValidationException.cs
- EntityModelBuildProvider.cs
- StringValidatorAttribute.cs
- BaseResourcesBuildProvider.cs
- ThemeInfoAttribute.cs
- BoolLiteral.cs
- PreProcessInputEventArgs.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ValidationError.cs
- XmlNamespaceMappingCollection.cs
- SAPIEngineTypes.cs
- TimeSpanStorage.cs
- HMACSHA384.cs
- SchemaConstraints.cs
- BypassElementCollection.cs
- DbRetry.cs
- ObjectDataSourceDisposingEventArgs.cs
- VisualStyleInformation.cs
- AnimationStorage.cs
- GlyphInfoList.cs
- EntityClassGenerator.cs
- TagMapInfo.cs
- shaper.cs
- SoapAttributeOverrides.cs
- EnvelopeVersion.cs
- ExpressionCopier.cs
- HtmlSelect.cs
- ScriptManager.cs
- LayoutManager.cs
- StartFileNameEditor.cs
- PersistenceProvider.cs
- FamilyMap.cs
- ItemList.cs
- VirtualPath.cs
- DbException.cs
- WebAdminConfigurationHelper.cs
- regiisutil.cs
- CellTreeSimplifier.cs
- CacheAxisQuery.cs
- StringFormat.cs
- XamlSerializerUtil.cs
- ExpressionLink.cs
- DataTableCollection.cs
- RelationshipManager.cs
- InfoCardTraceRecord.cs
- SqlComparer.cs
- XmlSchemaComplexContentExtension.cs
- DesignerObjectListAdapter.cs
- DataGridCommandEventArgs.cs
- ContentElementCollection.cs
- GridViewEditEventArgs.cs
- SharedDp.cs
- WebException.cs
- TreeNodeEventArgs.cs
- WebServiceHandlerFactory.cs
- ThicknessKeyFrameCollection.cs
- AssertSection.cs
- FontWeightConverter.cs
- StringPropertyBuilder.cs
- Image.cs
- HyperlinkAutomationPeer.cs
- HostedHttpRequestAsyncResult.cs
- CheckoutException.cs
- SqlBulkCopy.cs
- MetaModel.cs
- EventMappingSettingsCollection.cs
- WebPartDescriptionCollection.cs
- NameGenerator.cs