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
- ProxyAttribute.cs
- JpegBitmapEncoder.cs
- GridViewUpdatedEventArgs.cs
- StringStorage.cs
- HtmlSelect.cs
- HyperLink.cs
- AuthenticationException.cs
- SupportsEventValidationAttribute.cs
- FileRecordSequence.cs
- WindowsListViewItemStartMenu.cs
- TemplateLookupAction.cs
- QueryTaskGroupState.cs
- DesignerActionTextItem.cs
- ArgIterator.cs
- MenuBindingsEditor.cs
- UIHelper.cs
- HttpResponse.cs
- MetadataItemCollectionFactory.cs
- SessionStateModule.cs
- ListViewInsertionMark.cs
- NaturalLanguageHyphenator.cs
- CompilerState.cs
- ServiceModelConfigurationSection.cs
- ComponentSerializationService.cs
- KeyEvent.cs
- ColumnMapTranslator.cs
- DataRowView.cs
- CSharpCodeProvider.cs
- TransformationRules.cs
- ScrollBarRenderer.cs
- CacheChildrenQuery.cs
- ConfigXmlCDataSection.cs
- TextParagraph.cs
- MessageHeaderDescription.cs
- IImplicitResourceProvider.cs
- MetadataFile.cs
- CaseInsensitiveHashCodeProvider.cs
- FontInfo.cs
- LoadGrammarCompletedEventArgs.cs
- TraversalRequest.cs
- WorkflowViewService.cs
- TextEditorTyping.cs
- SharedUtils.cs
- HtmlShim.cs
- ScrollableControlDesigner.cs
- StyleTypedPropertyAttribute.cs
- DeferredElementTreeState.cs
- SmtpFailedRecipientException.cs
- CSharpCodeProvider.cs
- SQLMoneyStorage.cs
- HelpProvider.cs
- OleDbPropertySetGuid.cs
- BookmarkScopeInfo.cs
- InternalMappingException.cs
- datacache.cs
- ConfigDefinitionUpdates.cs
- SlotInfo.cs
- XmlConvert.cs
- Splitter.cs
- DBSqlParserColumnCollection.cs
- CoreSwitches.cs
- DictionaryGlobals.cs
- SHA256Managed.cs
- SafeNativeMethods.cs
- FrameworkRichTextComposition.cs
- SafeFindHandle.cs
- TableItemProviderWrapper.cs
- ParamArrayAttribute.cs
- ServerValidateEventArgs.cs
- ResourceDescriptionAttribute.cs
- BufferedStream2.cs
- DetailsViewUpdatedEventArgs.cs
- XmlSerializableReader.cs
- SEHException.cs
- Tile.cs
- UrlMappingsModule.cs
- InputGestureCollection.cs
- HtmlShimManager.cs
- ConnectionPointCookie.cs
- InstanceDataCollection.cs
- RecognizedWordUnit.cs
- ConfigurationException.cs
- FrameworkElement.cs
- DataGridToolTip.cs
- X509CertificateClaimSet.cs
- SystemInformation.cs
- ToolBar.cs
- DesignerActionVerbItem.cs
- GC.cs
- IResourceProvider.cs
- Encoder.cs
- SQLDecimalStorage.cs
- Pkcs9Attribute.cs
- TextBoxView.cs
- XmlQueryCardinality.cs
- QuadraticBezierSegment.cs
- XmlSchemaCompilationSettings.cs
- XmlTextReaderImpl.cs
- BitmapEffectInputData.cs
- RuleSetReference.cs