Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / ALinq / ResourceExpression.cs / 3 / 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
- MemberHolder.cs
- mda.cs
- NegationPusher.cs
- ActivityStatusChangeEventArgs.cs
- TouchesOverProperty.cs
- FixedSOMPageConstructor.cs
- BoundPropertyEntry.cs
- RegexCode.cs
- SQLByteStorage.cs
- ResourceProviderFactory.cs
- Select.cs
- BridgeDataRecord.cs
- AuthenticationSection.cs
- HandoffBehavior.cs
- ToolStripSeparator.cs
- CqlErrorHelper.cs
- EntityKey.cs
- InsufficientMemoryException.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- EdmScalarPropertyAttribute.cs
- XmlCompatibilityReader.cs
- Utils.cs
- ForeignKeyConstraint.cs
- DependencyPropertyAttribute.cs
- CompModHelpers.cs
- Polyline.cs
- XmlValidatingReader.cs
- TemplateDefinition.cs
- VisualStateManager.cs
- ContainerFilterService.cs
- TableStyle.cs
- Common.cs
- ToolStripPanelRow.cs
- Buffer.cs
- ListenerElementsCollection.cs
- PrintControllerWithStatusDialog.cs
- ArgumentDesigner.xaml.cs
- FontCollection.cs
- infer.cs
- base64Transforms.cs
- XhtmlConformanceSection.cs
- Form.cs
- QuaternionAnimation.cs
- Serializer.cs
- InvalidPrinterException.cs
- SynchronizedPool.cs
- PersistenceException.cs
- FontClient.cs
- StringUtil.cs
- StandardOleMarshalObject.cs
- MimeMultiPart.cs
- CodeTypeReferenceCollection.cs
- BooleanFacetDescriptionElement.cs
- followingsibling.cs
- OdbcRowUpdatingEvent.cs
- MailMessageEventArgs.cs
- ServiceNameCollection.cs
- BufferBuilder.cs
- unitconverter.cs
- FixedNode.cs
- ResourceType.cs
- ActivityCompletionCallbackWrapper.cs
- APCustomTypeDescriptor.cs
- NavigationProperty.cs
- SvcMapFileSerializer.cs
- Thickness.cs
- HelpFileFileNameEditor.cs
- oledbconnectionstring.cs
- VectorValueSerializer.cs
- UriTemplateTrieLocation.cs
- TreeNodeEventArgs.cs
- CaseInsensitiveComparer.cs
- SelectionRangeConverter.cs
- XmlSchemaAttributeGroup.cs
- PlatformCulture.cs
- XmlMemberMapping.cs
- _AutoWebProxyScriptEngine.cs
- SqlDataSourceWizardForm.cs
- TextParagraphCache.cs
- HttpRequestContext.cs
- AssemblyCollection.cs
- HttpRequestWrapper.cs
- LongValidator.cs
- _CommandStream.cs
- objectresult_tresulttype.cs
- Pkcs9Attribute.cs
- SmiGettersStream.cs
- MarshalByValueComponent.cs
- DataGridAutoFormat.cs
- HostingEnvironment.cs
- TextFindEngine.cs
- ArrayExtension.cs
- CodeTypeMember.cs
- WebPartZone.cs
- SafeRegistryHandle.cs
- MouseEventArgs.cs
- Scene3D.cs
- CharacterMetricsDictionary.cs
- WebPartZoneCollection.cs
- AccessViolationException.cs