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
- AtlasWeb.Designer.cs
- HttpProfileBase.cs
- ParseChildrenAsPropertiesAttribute.cs
- ManipulationPivot.cs
- InstanceKeyCollisionException.cs
- EntityKeyElement.cs
- CodeSubDirectory.cs
- WebPartCatalogCloseVerb.cs
- ListViewItemSelectionChangedEvent.cs
- FontConverter.cs
- TrustLevel.cs
- DynamicResourceExtension.cs
- MobileCapabilities.cs
- DataBoundControlActionList.cs
- UncommonField.cs
- QueryContinueDragEvent.cs
- ConfigXmlText.cs
- XmlNavigatorFilter.cs
- IIS7UserPrincipal.cs
- CalendarBlackoutDatesCollection.cs
- HttpTransportManager.cs
- smtppermission.cs
- DrawingCollection.cs
- OleDbTransaction.cs
- ItemCollection.cs
- StringArrayConverter.cs
- RuntimeEnvironment.cs
- ActiveXContainer.cs
- DataSourceExpression.cs
- AsymmetricAlgorithm.cs
- TypeForwardedToAttribute.cs
- CaseInsensitiveComparer.cs
- SmiTypedGetterSetter.cs
- CodeCompileUnit.cs
- CommandLibraryHelper.cs
- ImageList.cs
- ProfileModule.cs
- SecondaryIndexList.cs
- CollectionTraceRecord.cs
- errorpatternmatcher.cs
- VBIdentifierTrimConverter.cs
- ArcSegment.cs
- DomainConstraint.cs
- IxmlLineInfo.cs
- ImageIndexConverter.cs
- TransferRequestHandler.cs
- XmlCDATASection.cs
- DateTimeOffset.cs
- OdbcCommand.cs
- SqlTypesSchemaImporter.cs
- SizeValueSerializer.cs
- FontStretches.cs
- DecoderFallback.cs
- _ConnectStream.cs
- xmlglyphRunInfo.cs
- _HeaderInfoTable.cs
- EpmSourceTree.cs
- Baml2006SchemaContext.cs
- Char.cs
- ReflectionPermission.cs
- TraceSection.cs
- CursorConverter.cs
- SchemaSetCompiler.cs
- ExclusiveCanonicalizationTransform.cs
- ChannelSinkStacks.cs
- StatusBarDrawItemEvent.cs
- Vector3DAnimation.cs
- EntityConnectionStringBuilderItem.cs
- BasicBrowserDialog.cs
- ConnectionConsumerAttribute.cs
- wmiutil.cs
- GraphicsPath.cs
- OracleCommandBuilder.cs
- TextWriterTraceListener.cs
- PersistenceTypeAttribute.cs
- Repeater.cs
- DoubleLink.cs
- EdmMember.cs
- ServerValidateEventArgs.cs
- Camera.cs
- AxHost.cs
- ComponentResourceKey.cs
- StylusEditingBehavior.cs
- DataGridViewButtonColumn.cs
- AdPostCacheSubstitution.cs
- EntityDataSourceSelectingEventArgs.cs
- PageTheme.cs
- Matrix3DValueSerializer.cs
- PtsPage.cs
- MetaDataInfo.cs
- Byte.cs
- FormViewDeletedEventArgs.cs
- DockProviderWrapper.cs
- SQLResource.cs
- MenuItem.cs
- SoapSchemaMember.cs
- HttpModulesSection.cs
- TypeExtensionSerializer.cs
- UIElementPropertyUndoUnit.cs
- DocumentViewerBase.cs