Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / WebControls / Expressions / QueryExpression.cs / 1305376 / QueryExpression.cs
#if ORYX_VNEXT namespace Microsoft.Web.Data.UI.WebControls.Expressions { #else namespace System.Web.UI.WebControls.Expressions { #endif using System; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Linq.Expressions; using System.Web; using System.Web.UI; [ ParseChildren(true, "Expressions"), PersistChildren(false) ] public class QueryExpression { private HttpContext _context; private Control _owner; private IQueryableDataSource _dataSource; private DataSourceExpressionCollection _expressions; [ PersistenceMode(PersistenceMode.InnerDefaultProperty) ] public DataSourceExpressionCollection Expressions { get { if (_expressions == null) { _expressions = new DataSourceExpressionCollection(); } return _expressions; } } public void Initialize(Control owner, HttpContext context, IQueryableDataSource dataSource) { _owner = owner; _context = context; _dataSource = dataSource; Expressions.SetContext(owner, context, dataSource); } public virtual IQueryable GetQueryable(IQueryable source) { if (source == null) { return null; } foreach (DataSourceExpression e in Expressions) { source = e.GetQueryable(source) ?? source; } return source; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SchemaLookupTable.cs
- EventEntry.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ProfilePropertySettingsCollection.cs
- Compilation.cs
- CodeSubDirectory.cs
- ApplicationSecurityInfo.cs
- DataPagerFieldItem.cs
- Rules.cs
- RepeatButton.cs
- FixedHyperLink.cs
- GenericIdentity.cs
- DataMisalignedException.cs
- BitVec.cs
- ZoomPercentageConverter.cs
- DecodeHelper.cs
- DataError.cs
- NavigationProperty.cs
- SqlUnionizer.cs
- TextEncodedRawTextWriter.cs
- HiddenFieldDesigner.cs
- FunctionCommandText.cs
- ListBindableAttribute.cs
- WpfWebRequestHelper.cs
- SynchronizedDispatch.cs
- InstanceNameConverter.cs
- SqlStream.cs
- HostExecutionContextManager.cs
- XmlElementList.cs
- StrongNameIdentityPermission.cs
- LocalValueEnumerator.cs
- MarkedHighlightComponent.cs
- AnimatedTypeHelpers.cs
- DataContext.cs
- ListenerElementsCollection.cs
- QilFunction.cs
- ActivityCodeGenerator.cs
- ConfigurationProperty.cs
- CachedPathData.cs
- FunctionDetailsReader.cs
- login.cs
- ISAPIWorkerRequest.cs
- CompensateDesigner.cs
- Transform.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- CheckBoxField.cs
- DataGridItemCollection.cs
- StaticResourceExtension.cs
- dbenumerator.cs
- Size3D.cs
- LinkButton.cs
- SerialErrors.cs
- ApplicationServiceHelper.cs
- FlowLayoutSettings.cs
- ListViewItem.cs
- XmlJsonWriter.cs
- XmlHelper.cs
- SqlClientMetaDataCollectionNames.cs
- TransformProviderWrapper.cs
- UpdatePanel.cs
- XmlSerializationGeneratedCode.cs
- ScriptResourceHandler.cs
- ViewManager.cs
- Adorner.cs
- HttpStreamMessage.cs
- RelatedImageListAttribute.cs
- DBSchemaRow.cs
- ViewValidator.cs
- SafeFileHandle.cs
- SafeUserTokenHandle.cs
- BuildProviderAppliesToAttribute.cs
- UrlRoutingHandler.cs
- messageonlyhwndwrapper.cs
- SubstitutionDesigner.cs
- GeneralTransformCollection.cs
- RawStylusInput.cs
- ClientSession.cs
- IndexedDataBuffer.cs
- PolicyLevel.cs
- PowerModeChangedEventArgs.cs
- LinkConverter.cs
- TreeNode.cs
- DependencyPropertyDescriptor.cs
- GZipDecoder.cs
- InspectionWorker.cs
- CompositeCollection.cs
- PointLight.cs
- MarkupCompilePass2.cs
- COSERVERINFO.cs
- SyntaxCheck.cs
- NativeObjectSecurity.cs
- FontInfo.cs
- XsdValidatingReader.cs
- Journaling.cs
- TextLineResult.cs
- Processor.cs
- CodeEntryPointMethod.cs
- BrowserCapabilitiesCodeGenerator.cs
- AuthStoreRoleProvider.cs
- DataTableExtensions.cs