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
- NullableIntSumAggregationOperator.cs
- FloaterParagraph.cs
- DBDataPermissionAttribute.cs
- XmlDocument.cs
- PageParserFilter.cs
- XmlSchemaSet.cs
- ExpressionEditorAttribute.cs
- EntityEntry.cs
- UnknownWrapper.cs
- MethodSet.cs
- ObjectListCommand.cs
- EmptyQuery.cs
- Registry.cs
- ParameterExpression.cs
- BackgroundWorker.cs
- TextSpanModifier.cs
- MessageContractExporter.cs
- RuntimeConfigLKG.cs
- JournalEntry.cs
- SystemBrushes.cs
- TemplateXamlTreeBuilder.cs
- XhtmlConformanceSection.cs
- ActivationArguments.cs
- SortDescriptionCollection.cs
- CalendarDesigner.cs
- EnvironmentPermission.cs
- NoClickablePointException.cs
- FixedSOMSemanticBox.cs
- OrderedDictionaryStateHelper.cs
- WebPartConnectionCollection.cs
- CombinedTcpChannel.cs
- BindStream.cs
- SrgsSubset.cs
- ToolStripSystemRenderer.cs
- NonValidatingSecurityTokenAuthenticator.cs
- SqlBuilder.cs
- WindowsGrip.cs
- StateChangeEvent.cs
- ViewSimplifier.cs
- FormsAuthenticationUser.cs
- MergeFailedEvent.cs
- TypeToArgumentTypeConverter.cs
- SolidColorBrush.cs
- Permission.cs
- NotificationContext.cs
- StringTraceRecord.cs
- OneOfConst.cs
- LexicalChunk.cs
- COSERVERINFO.cs
- HttpResponse.cs
- HtmlTableCellCollection.cs
- OleDbStruct.cs
- NeedSkipTokenVisitor.cs
- ZipIOBlockManager.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ZipPackagePart.cs
- Roles.cs
- SmtpTransport.cs
- ServicePerformanceCounters.cs
- WindowsStreamSecurityUpgradeProvider.cs
- HtmlButton.cs
- XmlSerializerSection.cs
- SimpleExpression.cs
- CodeNamespaceCollection.cs
- SecurityManager.cs
- TextEditorContextMenu.cs
- SqlTopReducer.cs
- TextParentUndoUnit.cs
- ConnectorSelectionGlyph.cs
- DataGridViewRowCollection.cs
- RecordBuilder.cs
- SafeNativeMethods.cs
- XmlSignatureProperties.cs
- regiisutil.cs
- HtmlShim.cs
- ProfilePropertyMetadata.cs
- ButtonChrome.cs
- DataGridViewCellCollection.cs
- ExtendedProperty.cs
- BaseValidator.cs
- ExtensionWindowHeader.cs
- ValidatingPropertiesEventArgs.cs
- SessionStateModule.cs
- PartManifestEntry.cs
- FileStream.cs
- MobileControl.cs
- SystemWebSectionGroup.cs
- ByteRangeDownloader.cs
- LazyTextWriterCreator.cs
- BoolExpressionVisitors.cs
- ViewBox.cs
- SqlConnectionPoolGroupProviderInfo.cs
- Module.cs
- ComponentSerializationService.cs
- NativeMethods.cs
- XsdBuilder.cs
- PropertyMappingExceptionEventArgs.cs
- SqlError.cs
- DuplicateMessageDetector.cs
- XmlCharType.cs