Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / Providers / ResourceAssociationTypeEnd.cs / 1305376 / ResourceAssociationTypeEnd.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Simple couple of classes to keep association descriptions // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Providers { using System.Diagnostics; using System.Collections.Generic; ////// Stores information about an end of an association. /// internal class ResourceAssociationTypeEnd { ///Name of the relationship end private readonly string name; ///Type of the relationship end. private readonly ResourceType resourceType; ///Property of the relationship end. private readonly ResourceProperty resourceProperty; ///Property on the related end that points to this end. The multiplicity of this end is determined from the fromProperty. private readonly ResourceProperty fromProperty; ////// Creates a new instance of EndInfo. /// /// name of the end. /// resource type that the end refers to. /// property of the end. /// Property on the related end that points to this end. The multiplicity of this end is determined from the fromProperty. internal ResourceAssociationTypeEnd(string name, ResourceType resourceType, ResourceProperty resourceProperty, ResourceProperty fromProperty) { Debug.Assert(!String.IsNullOrEmpty(name), "!String.IsNullOrEmpty(name)"); Debug.Assert(resourceType != null, "type != null"); this.name = name; this.resourceType = resourceType; this.resourceProperty = resourceProperty; this.fromProperty = fromProperty; } ///Name of the relationship end internal string Name { get { return this.name; } } ///Type of the relationship end. internal ResourceType ResourceType { get { return this.resourceType; } } ///Property of the relationship end. internal ResourceProperty ResourceProperty { get { return this.resourceProperty; } } ///Mulitplicity of the relationship end internal string Multiplicity { get { if (this.fromProperty != null && this.fromProperty.Kind == ResourcePropertyKind.ResourceReference) { return XmlConstants.ZeroOrOne; } return XmlConstants.Many; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Simple couple of classes to keep association descriptions // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Providers { using System.Diagnostics; using System.Collections.Generic; ////// Stores information about an end of an association. /// internal class ResourceAssociationTypeEnd { ///Name of the relationship end private readonly string name; ///Type of the relationship end. private readonly ResourceType resourceType; ///Property of the relationship end. private readonly ResourceProperty resourceProperty; ///Property on the related end that points to this end. The multiplicity of this end is determined from the fromProperty. private readonly ResourceProperty fromProperty; ////// Creates a new instance of EndInfo. /// /// name of the end. /// resource type that the end refers to. /// property of the end. /// Property on the related end that points to this end. The multiplicity of this end is determined from the fromProperty. internal ResourceAssociationTypeEnd(string name, ResourceType resourceType, ResourceProperty resourceProperty, ResourceProperty fromProperty) { Debug.Assert(!String.IsNullOrEmpty(name), "!String.IsNullOrEmpty(name)"); Debug.Assert(resourceType != null, "type != null"); this.name = name; this.resourceType = resourceType; this.resourceProperty = resourceProperty; this.fromProperty = fromProperty; } ///Name of the relationship end internal string Name { get { return this.name; } } ///Type of the relationship end. internal ResourceType ResourceType { get { return this.resourceType; } } ///Property of the relationship end. internal ResourceProperty ResourceProperty { get { return this.resourceProperty; } } ///Mulitplicity of the relationship end internal string Multiplicity { get { if (this.fromProperty != null && this.fromProperty.Kind == ResourcePropertyKind.ResourceReference) { return XmlConstants.ZeroOrOne; } return XmlConstants.Many; } } } } // 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
- ConstraintEnumerator.cs
- AmbiguousMatchException.cs
- LocatorGroup.cs
- RegexMatch.cs
- DependencyProperty.cs
- CompiledIdentityConstraint.cs
- DataGridViewCellStyleChangedEventArgs.cs
- PropertiesTab.cs
- TextClipboardData.cs
- FormViewPageEventArgs.cs
- AssemblyAttributes.cs
- TableLayoutPanelCellPosition.cs
- LogStore.cs
- ColorContext.cs
- ActivityExecutorOperation.cs
- ComponentDispatcher.cs
- KeyInfo.cs
- LinearKeyFrames.cs
- AttributeData.cs
- HandoffBehavior.cs
- SpAudioStreamWrapper.cs
- FileNotFoundException.cs
- NativeMethods.cs
- TemplatedMailWebEventProvider.cs
- WindowsListViewScroll.cs
- DateTime.cs
- DataViewManager.cs
- ToolboxItemFilterAttribute.cs
- Transform.cs
- Point4D.cs
- Pen.cs
- SqlNode.cs
- RegexTypeEditor.cs
- GenericRootAutomationPeer.cs
- StatusBarPanel.cs
- IisTraceListener.cs
- SqlAliasesReferenced.cs
- DataRowComparer.cs
- MetafileHeader.cs
- MetadataCache.cs
- CrossContextChannel.cs
- DiagnosticTraceSource.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ECDiffieHellmanCngPublicKey.cs
- PrivateFontCollection.cs
- StylusTouchDevice.cs
- WebHttpElement.cs
- ExpanderAutomationPeer.cs
- SystemColors.cs
- QuaternionRotation3D.cs
- SegmentInfo.cs
- ProcessHost.cs
- ListViewInsertEventArgs.cs
- DataGridTablesFactory.cs
- HtmlInputSubmit.cs
- GatewayDefinition.cs
- NavigationCommands.cs
- CharacterMetricsDictionary.cs
- WsatStrings.cs
- LineProperties.cs
- SqlCommand.cs
- XmlILStorageConverter.cs
- PersonalizationStateInfo.cs
- CheckedListBox.cs
- GridViewColumnCollection.cs
- RawStylusActions.cs
- BamlResourceDeserializer.cs
- ImplicitInputBrush.cs
- DispatcherExceptionEventArgs.cs
- PtsPage.cs
- CopyCodeAction.cs
- Variant.cs
- StringConcat.cs
- FactoryId.cs
- WindowsListViewGroupSubsetLink.cs
- FontFamilyConverter.cs
- HttpClientCredentialType.cs
- XmlElement.cs
- Encoding.cs
- RSAProtectedConfigurationProvider.cs
- GifBitmapDecoder.cs
- Permission.cs
- SourceExpressionException.cs
- TextSerializer.cs
- webclient.cs
- ToolStripSplitStackLayout.cs
- CustomAttribute.cs
- GridViewRow.cs
- OutKeywords.cs
- UseLicense.cs
- URLMembershipCondition.cs
- TogglePatternIdentifiers.cs
- XmlSchemaAll.cs
- EntityWrapper.cs
- StrongName.cs
- Paragraph.cs
- DataGridState.cs
- SafeRegistryHandle.cs
- SafeRightsManagementSessionHandle.cs
- DataBoundControlDesigner.cs