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
- XmlUnspecifiedAttribute.cs
- FilterException.cs
- SignatureConfirmations.cs
- RemotingAttributes.cs
- DesignerLoader.cs
- ExpressionDumper.cs
- Cursors.cs
- Compiler.cs
- IncomingWebResponseContext.cs
- SafeCryptoHandles.cs
- contentDescriptor.cs
- MethodImplAttribute.cs
- ViewStateModeByIdAttribute.cs
- DataGridViewSelectedCellCollection.cs
- SqlNodeTypeOperators.cs
- EmptyCollection.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SqlConnectionFactory.cs
- UInt16Converter.cs
- FeatureManager.cs
- NavigationEventArgs.cs
- XsltOutput.cs
- HttpHandlerAction.cs
- ByteStreamGeometryContext.cs
- SmiTypedGetterSetter.cs
- DerivedKeySecurityToken.cs
- LocalBuilder.cs
- PropertyMapper.cs
- TextEmbeddedObject.cs
- MobileUserControl.cs
- CornerRadiusConverter.cs
- XmlCountingReader.cs
- JoinTreeNode.cs
- HttpCapabilitiesEvaluator.cs
- WsdlBuildProvider.cs
- JsonEnumDataContract.cs
- DataGridViewComboBoxEditingControl.cs
- HelpHtmlBuilder.cs
- DiagnosticsConfiguration.cs
- ScriptResourceHandler.cs
- ControlBindingsCollection.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- Effect.cs
- ConfigurationException.cs
- DetailsViewRowCollection.cs
- SQLResource.cs
- XamlSerializer.cs
- CursorConverter.cs
- DrawingState.cs
- AssemblyAttributes.cs
- NotImplementedException.cs
- StandardOleMarshalObject.cs
- ServiceTimeoutsBehavior.cs
- ScriptRegistrationManager.cs
- MobileSysDescriptionAttribute.cs
- Parameter.cs
- IndependentAnimationStorage.cs
- DataGridViewButtonColumn.cs
- XmlSchemaAll.cs
- ControlTemplate.cs
- ValueTypeFixupInfo.cs
- Query.cs
- KeyValueConfigurationElement.cs
- SqlConnection.cs
- ReliabilityContractAttribute.cs
- CommandBinding.cs
- PropertyEmitter.cs
- RpcAsyncResult.cs
- CustomValidator.cs
- MappingSource.cs
- CompiledELinqQueryState.cs
- HttpContextServiceHost.cs
- ButtonChrome.cs
- RemotingConfiguration.cs
- IntPtr.cs
- COAUTHIDENTITY.cs
- SRef.cs
- ApplicationFileParser.cs
- PersonalizationAdministration.cs
- WindowsContainer.cs
- FocusWithinProperty.cs
- TypeConstant.cs
- ClientTargetCollection.cs
- DocumentPageHost.cs
- MD5HashHelper.cs
- DaylightTime.cs
- pingexception.cs
- TemplateManager.cs
- WorkflowViewStateService.cs
- HttpClientCertificate.cs
- DragDrop.cs
- TimeEnumHelper.cs
- UnionCodeGroup.cs
- Rotation3DKeyFrameCollection.cs
- Debug.cs
- BamlStream.cs
- DataGridViewButtonColumn.cs
- CodeTypeReferenceCollection.cs
- LicenseManager.cs
- TraceSource.cs