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
- CommandManager.cs
- XamlSerializerUtil.cs
- EncryptedKey.cs
- GridPattern.cs
- DiscardableAttribute.cs
- ToolStripLabel.cs
- ProxySimple.cs
- HttpListenerTimeoutManager.cs
- DeploymentExceptionMapper.cs
- RadioButtonFlatAdapter.cs
- TreeNodeBindingCollection.cs
- RoleManagerEventArgs.cs
- DbDeleteCommandTree.cs
- ListViewCommandEventArgs.cs
- XmlSerializationReader.cs
- CallSiteBinder.cs
- XmlEntity.cs
- AssemblyAttributesGoHere.cs
- AccessDataSourceView.cs
- WindowsSlider.cs
- WebBrowserSiteBase.cs
- EdmPropertyAttribute.cs
- DataException.cs
- FileDetails.cs
- RepeatBehavior.cs
- DetailsViewPagerRow.cs
- Timer.cs
- ThemeDictionaryExtension.cs
- WebBrowser.cs
- FormViewAutoFormat.cs
- CodeIterationStatement.cs
- BaseTransportHeaders.cs
- SortFieldComparer.cs
- Debug.cs
- BitmapEffectvisualstate.cs
- SqlDataReaderSmi.cs
- InitializerFacet.cs
- EmptyEnumerator.cs
- ComponentChangingEvent.cs
- DataBoundControlAdapter.cs
- SafeProcessHandle.cs
- SqlDataSourceView.cs
- DbUpdateCommandTree.cs
- BindingGroup.cs
- Events.cs
- DataMemberFieldConverter.cs
- Grid.cs
- XPathExpr.cs
- DataBinder.cs
- HttpCookiesSection.cs
- ConfigurationCollectionAttribute.cs
- SqlMethodAttribute.cs
- CodePropertyReferenceExpression.cs
- AutomationAttributeInfo.cs
- Light.cs
- ParseChildrenAsPropertiesAttribute.cs
- TextRange.cs
- EntitySqlQueryState.cs
- TrustManagerPromptUI.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ByteKeyFrameCollection.cs
- ProfileParameter.cs
- precedingquery.cs
- ImageInfo.cs
- PasswordBoxAutomationPeer.cs
- RegionInfo.cs
- FormsAuthenticationUser.cs
- GcHandle.cs
- EndPoint.cs
- DataPagerCommandEventArgs.cs
- XPathEmptyIterator.cs
- DesignerView.xaml.cs
- Transform3D.cs
- DrawingContextDrawingContextWalker.cs
- Utils.cs
- TypeLoadException.cs
- HWStack.cs
- _UriSyntax.cs
- EncoderBestFitFallback.cs
- OAVariantLib.cs
- DataObjectPastingEventArgs.cs
- Matrix3D.cs
- Ops.cs
- PointAnimationClockResource.cs
- ListItemCollection.cs
- Stack.cs
- ServerType.cs
- HttpCachePolicyElement.cs
- PresentationTraceSources.cs
- PrinterUnitConvert.cs
- TreeNode.cs
- System.Data.OracleClient_BID.cs
- AnnotationService.cs
- Rotation3DAnimationBase.cs
- VectorValueSerializer.cs
- DataRowComparer.cs
- HtmlShimManager.cs
- CodeTryCatchFinallyStatement.cs
- ToolStripScrollButton.cs
- IProvider.cs