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
- PropertyChangeTracker.cs
- ZipIOExtraFieldElement.cs
- SimpleTypeResolver.cs
- FileDialogPermission.cs
- ObjectSecurity.cs
- ShadowGlyph.cs
- RouteParametersHelper.cs
- UrlAuthFailedErrorFormatter.cs
- DataGridViewRowEventArgs.cs
- CriticalFileToken.cs
- EncodingDataItem.cs
- NameTable.cs
- DataGridViewAutoSizeModeEventArgs.cs
- AsymmetricKeyExchangeDeformatter.cs
- AttributeExtensions.cs
- StrongNameKeyPair.cs
- ConfigXmlCDataSection.cs
- CodeEntryPointMethod.cs
- WorkflowShape.cs
- PingOptions.cs
- X509SecurityTokenProvider.cs
- X509ChainElement.cs
- ValidatedMobileControlConverter.cs
- ExpressionWriter.cs
- ISCIIEncoding.cs
- TdsEnums.cs
- ColorTranslator.cs
- ReadWriteObjectLock.cs
- SearchForVirtualItemEventArgs.cs
- BufferedStream2.cs
- ChildChangedEventArgs.cs
- PngBitmapDecoder.cs
- RowBinding.cs
- PageEventArgs.cs
- KeyFrames.cs
- SymbolTable.cs
- ObservableDictionary.cs
- DbRetry.cs
- UnitySerializationHolder.cs
- CorrelationKeyCalculator.cs
- ObjectSelectorEditor.cs
- CompiledQueryCacheEntry.cs
- TextRenderer.cs
- ICollection.cs
- IgnorePropertiesAttribute.cs
- ParameterBuilder.cs
- TemplateBuilder.cs
- UserControlCodeDomTreeGenerator.cs
- ElementNotAvailableException.cs
- GCHandleCookieTable.cs
- RowParagraph.cs
- DbMetaDataCollectionNames.cs
- SettingsPropertyCollection.cs
- ComponentCodeDomSerializer.cs
- MenuItemAutomationPeer.cs
- SqlDataSourceEnumerator.cs
- XmlSchemaDocumentation.cs
- EntityDataSourceState.cs
- GZipDecoder.cs
- MgmtConfigurationRecord.cs
- DeviceContext2.cs
- CmsUtils.cs
- DelegatingTypeDescriptionProvider.cs
- CreateUserWizardStep.cs
- IdentityValidationException.cs
- Point3D.cs
- TransportConfigurationTypeElement.cs
- StreamBodyWriter.cs
- TypeUsage.cs
- OperandQuery.cs
- StringFreezingAttribute.cs
- EventTrigger.cs
- EdgeModeValidation.cs
- SafeTokenHandle.cs
- DataSourceView.cs
- DesignerCategoryAttribute.cs
- SchemaImporterExtensionElement.cs
- ArrayTypeMismatchException.cs
- PageCatalogPart.cs
- InfoCardService.cs
- CultureInfoConverter.cs
- RecognitionResult.cs
- MimePart.cs
- UnmanagedMemoryStream.cs
- _NetworkingPerfCounters.cs
- SpecularMaterial.cs
- ObjectParameter.cs
- PixelFormats.cs
- Timer.cs
- FirstMatchCodeGroup.cs
- PathFigure.cs
- GotoExpression.cs
- WindowsTooltip.cs
- WebServicesSection.cs
- ChtmlLinkAdapter.cs
- SuppressMergeCheckAttribute.cs
- DBCSCodePageEncoding.cs
- ExpandCollapseProviderWrapper.cs
- Activity.cs
- ToolBarPanel.cs