Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / ALinq / ResourceExpression.cs / 1 / ResourceExpression.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Base class for expressions representing resources // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System; using System.Diagnostics; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; ////// Abstract base class for expressions that support Query Options /// internal abstract class ResourceExpression : Expression { ///Singleton InputReferenceExpression that should be used to indicate a reference to this element of the resource path internal InputReferenceExpression inputRef; ///expand paths private ListexpandPaths; /// custom query options private DictionarycustomQueryOptions; /// /// Creates a Resource expression /// /// the return type of the expression internal ResourceExpression(ExpressionType nodeType, Type type, ListexpandPaths, Dictionary customQueryOptions) : base(nodeType, type) { this.expandPaths = expandPaths ?? new List (); this.customQueryOptions = customQueryOptions ?? new Dictionary (); } abstract internal ResourceExpression Cast(Type type); abstract internal bool HasQueryOptions { get; } abstract internal Type ResourceType { get; } /// /// Does this expression produce at most 1 resource? /// abstract internal bool IsSingleton { get; } ////// Expand query option for ResourceSet /// internal virtual ListExpandPaths { get { return this.expandPaths; } set { this.expandPaths = value; } } /// /// custom query options for ResourceSet /// internal virtual DictionaryCustomQueryOptions { get { return this.customQueryOptions; } set { this.customQueryOptions = value; } } /// /// Creates an ///that refers to this component of the resource path. /// The returned expression is guaranteed to be reference-equal (object.ReferenceEquals) /// to any other InputReferenceExpression that also refers to this resource path component. /// The InputReferenceExpression that refers to this resource path component internal InputReferenceExpression CreateReference() { if (this.inputRef == null) { this.inputRef = new InputReferenceExpression(this.ResourceType, this); } return this.inputRef; } } } // 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
- ExecutionContext.cs
- GeometryHitTestResult.cs
- ExtractedStateEntry.cs
- FixedSOMLineRanges.cs
- SHA384.cs
- NetMsmqSecurityElement.cs
- DataGridViewCellParsingEventArgs.cs
- ToolStripItemGlyph.cs
- BamlResourceContent.cs
- WebServiceParameterData.cs
- WorkflowItemsPresenter.cs
- Highlights.cs
- OpCopier.cs
- AttributeConverter.cs
- TextEmbeddedObject.cs
- CallbackTimeoutsBehavior.cs
- SystemWebSectionGroup.cs
- HitTestResult.cs
- TypeDelegator.cs
- ExpressionConverter.cs
- BoundPropertyEntry.cs
- CompositionTarget.cs
- RelationshipType.cs
- ReverseQueryOperator.cs
- RegistrationServices.cs
- ClickablePoint.cs
- MarkupObject.cs
- Camera.cs
- safex509handles.cs
- PerspectiveCamera.cs
- TableStyle.cs
- Rotation3DAnimation.cs
- ComponentCollection.cs
- DataServiceQueryOfT.cs
- ActivationProxy.cs
- unsafeIndexingFilterStream.cs
- ToolboxItemFilterAttribute.cs
- ActivityBuilderXamlWriter.cs
- QuadraticBezierSegment.cs
- RequestCacheValidator.cs
- TreeNodeConverter.cs
- Point3DCollectionConverter.cs
- StreamUpgradeAcceptor.cs
- FileUtil.cs
- NotifyCollectionChangedEventArgs.cs
- EntityCommand.cs
- RenderingBiasValidation.cs
- Queue.cs
- DataErrorValidationRule.cs
- KeyMatchBuilder.cs
- BasicBrowserDialog.designer.cs
- DrawingAttributeSerializer.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ExpressionConverter.cs
- VirtualPath.cs
- StringFreezingAttribute.cs
- ExtractorMetadata.cs
- FixedSOMTableRow.cs
- BrowserCapabilitiesFactoryBase.cs
- MSG.cs
- DataGridViewCellLinkedList.cs
- Ref.cs
- SoapFault.cs
- ListViewInsertedEventArgs.cs
- Debugger.cs
- CultureInfo.cs
- ContactManager.cs
- PersonalizationAdministration.cs
- TextProperties.cs
- Int32KeyFrameCollection.cs
- NativeMethods.cs
- AssemblySettingAttributes.cs
- BamlResourceContent.cs
- ObjectDataSourceStatusEventArgs.cs
- WindowAutomationPeer.cs
- ConfigXmlText.cs
- PersonalizationStateQuery.cs
- DesignerVerbCollection.cs
- CalendarBlackoutDatesCollection.cs
- TypeDependencyAttribute.cs
- ValidationHelper.cs
- While.cs
- ParentQuery.cs
- X509Certificate2Collection.cs
- ToolStripDropDownButton.cs
- ParserExtension.cs
- DataTableReader.cs
- XmlTextReaderImplHelpers.cs
- ConfigurationStrings.cs
- Sql8ExpressionRewriter.cs
- StyleXamlTreeBuilder.cs
- CachedFontFamily.cs
- MaskInputRejectedEventArgs.cs
- ConfigurationStrings.cs
- SoapProtocolReflector.cs
- PropertyOverridesDialog.cs
- MenuStrip.cs
- ItemsControl.cs
- FrameworkElementAutomationPeer.cs
- DataBinder.cs