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
- ProfileInfo.cs
- CellTreeNodeVisitors.cs
- HttpConfigurationSystem.cs
- _StreamFramer.cs
- DbConnectionPoolGroupProviderInfo.cs
- PermissionSetEnumerator.cs
- TransactionScopeDesigner.cs
- DataRow.cs
- Rect3D.cs
- _NetRes.cs
- CriticalHandle.cs
- ListViewGroupItemCollection.cs
- PhonemeEventArgs.cs
- FieldBuilder.cs
- DropShadowBitmapEffect.cs
- CommentEmitter.cs
- SelectionHighlightInfo.cs
- TextEditorMouse.cs
- SymmetricAlgorithm.cs
- MailWebEventProvider.cs
- OleDbPermission.cs
- DNS.cs
- InputGestureCollection.cs
- ThicknessAnimationBase.cs
- ExceptionHelpers.cs
- HtmlControlPersistable.cs
- DataGridrowEditEndingEventArgs.cs
- MemberDescriptor.cs
- ImageSourceValueSerializer.cs
- AutomationElement.cs
- IISUnsafeMethods.cs
- HopperCache.cs
- EncodingStreamWrapper.cs
- Popup.cs
- ProgressBarRenderer.cs
- NameValueFileSectionHandler.cs
- CompositeActivityTypeDescriptorProvider.cs
- Utils.cs
- UserMapPath.cs
- DesignerValidatorAdapter.cs
- ToolBar.cs
- Calendar.cs
- SqlBooleanizer.cs
- ControlParser.cs
- DecimalConverter.cs
- ConfigurationValidatorAttribute.cs
- Calendar.cs
- BindingCollection.cs
- GradientStop.cs
- WeakReferenceList.cs
- ClientSettingsProvider.cs
- ListMarkerSourceInfo.cs
- DataColumnCollection.cs
- PhonemeEventArgs.cs
- LineVisual.cs
- TimeoutHelper.cs
- DbConvert.cs
- SubpageParaClient.cs
- DataColumnCollection.cs
- XmlStringTable.cs
- AsymmetricKeyExchangeDeformatter.cs
- SqlSelectClauseBuilder.cs
- OutputCacheProfileCollection.cs
- Symbol.cs
- CompiledQuery.cs
- DataGridViewCellValidatingEventArgs.cs
- DefaultTextStore.cs
- ApplicationServicesHostFactory.cs
- ServicePointManager.cs
- ValueTypeFixupInfo.cs
- StylusShape.cs
- SettingsSavedEventArgs.cs
- MouseWheelEventArgs.cs
- StaticSiteMapProvider.cs
- _SslStream.cs
- TreeView.cs
- InfoCardService.cs
- RegexBoyerMoore.cs
- Viewport3DAutomationPeer.cs
- DataGridViewTextBoxEditingControl.cs
- ProxyWebPartConnectionCollection.cs
- EditorAttribute.cs
- DataContractSet.cs
- SplineKeyFrames.cs
- StringResourceManager.cs
- BindingValueChangedEventArgs.cs
- TakeOrSkipQueryOperator.cs
- FlowLayoutPanel.cs
- COM2AboutBoxPropertyDescriptor.cs
- EventArgs.cs
- ISAPIRuntime.cs
- HtmlGenericControl.cs
- ReaderContextStackData.cs
- DesignTimeVisibleAttribute.cs
- DeviceContext2.cs
- Propagator.ExtentPlaceholderCreator.cs
- ConnectionManagementElementCollection.cs
- InfoCardSchemas.cs
- LineServicesCallbacks.cs
- XmlEncodedRawTextWriter.cs