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
- PersonalizationProviderCollection.cs
- HttpDictionary.cs
- VisualStyleRenderer.cs
- TextBox.cs
- MatrixTransform.cs
- ObjectView.cs
- CodeFieldReferenceExpression.cs
- RewritingValidator.cs
- BinaryCommonClasses.cs
- AssemblyResourceLoader.cs
- ItemMap.cs
- Substitution.cs
- QuadraticBezierSegment.cs
- ResolveMatchesMessageCD1.cs
- SapiAttributeParser.cs
- CodeCompiler.cs
- StatusCommandUI.cs
- EntityDataSourceWizardForm.cs
- PersonalizableTypeEntry.cs
- ComponentGuaranteesAttribute.cs
- Dispatcher.cs
- ShapingEngine.cs
- BaseEntityWrapper.cs
- PhysicalOps.cs
- WindowsStatusBar.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- SortDescription.cs
- BoolExpr.cs
- CompilerState.cs
- AsymmetricKeyExchangeDeformatter.cs
- SQLBoolean.cs
- CachedFontFamily.cs
- Rfc2898DeriveBytes.cs
- ContextStaticAttribute.cs
- ExecutedRoutedEventArgs.cs
- HotCommands.cs
- SecurityTimestamp.cs
- DataGridClipboardCellContent.cs
- RightsManagementInformation.cs
- ManagedIStream.cs
- InvalidOperationException.cs
- LongTypeConverter.cs
- EdmError.cs
- DictionaryChange.cs
- SizeConverter.cs
- NamespaceInfo.cs
- AppearanceEditorPart.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DocumentViewerAutomationPeer.cs
- HttpWebResponse.cs
- SignedXml.cs
- WindowsTreeView.cs
- NonParentingControl.cs
- CompilationSection.cs
- ProxyGenerator.cs
- PointCollection.cs
- SqlProcedureAttribute.cs
- UndoUnit.cs
- TypeConverter.cs
- InstancePersistenceEvent.cs
- ObjectNotFoundException.cs
- BooleanFunctions.cs
- SynthesizerStateChangedEventArgs.cs
- BlockUIContainer.cs
- HtmlImage.cs
- WasAdminWrapper.cs
- ExtensionFile.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ReadOnlyCollectionBase.cs
- DescendentsWalkerBase.cs
- FixedSOMFixedBlock.cs
- ToolStripLabel.cs
- TouchFrameEventArgs.cs
- WebPartDeleteVerb.cs
- BlockUIContainer.cs
- WebAdminConfigurationHelper.cs
- SqlConnectionString.cs
- SerializationObjectManager.cs
- PermissionListSet.cs
- DoWhileDesigner.xaml.cs
- TabItemWrapperAutomationPeer.cs
- WorkerProcess.cs
- LinearQuaternionKeyFrame.cs
- SingleAnimationUsingKeyFrames.cs
- ContentElement.cs
- ResourceCodeDomSerializer.cs
- BuildProvidersCompiler.cs
- BatchParser.cs
- TPLETWProvider.cs
- MessageQueueTransaction.cs
- GroupBoxRenderer.cs
- XPathChildIterator.cs
- DataSourceIDConverter.cs
- CompressedStack.cs
- MutexSecurity.cs
- Int64Storage.cs
- VectorKeyFrameCollection.cs
- XmlDataImplementation.cs
- RetrieveVirtualItemEventArgs.cs
- DbProviderSpecificTypePropertyAttribute.cs