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
- GradientStopCollection.cs
- RequestQueryProcessor.cs
- Ticks.cs
- ChannelToken.cs
- OdbcConnectionOpen.cs
- BmpBitmapEncoder.cs
- DESCryptoServiceProvider.cs
- DataGridPagerStyle.cs
- PopupRoot.cs
- XsltConvert.cs
- PocoPropertyAccessorStrategy.cs
- ResolveNameEventArgs.cs
- DataGridViewRowPostPaintEventArgs.cs
- XamlToRtfWriter.cs
- ADRoleFactoryConfiguration.cs
- RecordsAffectedEventArgs.cs
- OleDbReferenceCollection.cs
- SafeViewOfFileHandle.cs
- Polygon.cs
- HandlerBase.cs
- SqlWebEventProvider.cs
- UTF7Encoding.cs
- DataRecordObjectView.cs
- DefaultAutoFieldGenerator.cs
- VideoDrawing.cs
- WebBrowsableAttribute.cs
- IssuanceLicense.cs
- AnnotationObservableCollection.cs
- OpCopier.cs
- TypeValidationEventArgs.cs
- FormViewInsertedEventArgs.cs
- ToolStripPanelRow.cs
- DispatchOperation.cs
- TreeIterators.cs
- ModelTypeConverter.cs
- ScriptHandlerFactory.cs
- CodeValidator.cs
- EncoderFallback.cs
- ExpressionBuilder.cs
- QualificationDataItem.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MetadataCache.cs
- PrivilegedConfigurationManager.cs
- ObjectKeyFrameCollection.cs
- GcHandle.cs
- ExplicitDiscriminatorMap.cs
- Pen.cs
- TextEditorParagraphs.cs
- LazyTextWriterCreator.cs
- AttachedPropertyMethodSelector.cs
- HighlightVisual.cs
- Interfaces.cs
- CurrentTimeZone.cs
- TriggerAction.cs
- ScopelessEnumAttribute.cs
- DataSetSchema.cs
- ThrowOnMultipleAssignment.cs
- FontStyleConverter.cs
- ActiveXHelper.cs
- DiscoveryCallbackBehavior.cs
- SqlBulkCopyColumnMapping.cs
- AssemblyBuilder.cs
- HtmlFormWrapper.cs
- basecomparevalidator.cs
- ContentIterators.cs
- BitmapCodecInfoInternal.cs
- Storyboard.cs
- RegexFCD.cs
- SqlBuilder.cs
- EncodingDataItem.cs
- ListViewCommandEventArgs.cs
- XamlToRtfWriter.cs
- FrameworkTextComposition.cs
- BamlLocalizationDictionary.cs
- TranslateTransform.cs
- MarshalByValueComponent.cs
- LifetimeServices.cs
- SoapAttributeOverrides.cs
- EventLogReader.cs
- WebServiceClientProxyGenerator.cs
- SqlDataSourceView.cs
- DrawListViewSubItemEventArgs.cs
- Cursors.cs
- ImageBrush.cs
- SafeMILHandle.cs
- MobileTemplatedControlDesigner.cs
- PageTextBox.cs
- DependencyPropertyKind.cs
- ListBoxItemWrapperAutomationPeer.cs
- PasswordRecovery.cs
- StretchValidation.cs
- ItemDragEvent.cs
- WMIInterop.cs
- RightsManagementInformation.cs
- AmbientLight.cs
- RootBrowserWindow.cs
- UIElement.cs
- WsatEtwTraceListener.cs
- ObjectDataProvider.cs
- HatchBrush.cs