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
- LinkConverter.cs
- SchemaCollectionPreprocessor.cs
- TableCellAutomationPeer.cs
- HtmlInputRadioButton.cs
- InvalidTimeZoneException.cs
- CodeDirectiveCollection.cs
- Parser.cs
- IgnoreDataMemberAttribute.cs
- RelationshipEndMember.cs
- VideoDrawing.cs
- QilLoop.cs
- SettingsBase.cs
- HttpHandlersSection.cs
- DPAPIProtectedConfigurationProvider.cs
- WindowsPen.cs
- StringExpressionSet.cs
- XmlSchemaImport.cs
- BaseTemplateParser.cs
- DataControlPagerLinkButton.cs
- StoreContentChangedEventArgs.cs
- LassoSelectionBehavior.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- XmlTextReaderImplHelpers.cs
- BindableAttribute.cs
- XamlVector3DCollectionSerializer.cs
- Funcletizer.cs
- CodeSnippetExpression.cs
- QilScopedVisitor.cs
- Assert.cs
- TabControlAutomationPeer.cs
- MessageProperties.cs
- XmlReader.cs
- FlowNode.cs
- TransformerInfoCollection.cs
- XmlSchemaSimpleTypeRestriction.cs
- QilTypeChecker.cs
- BitmapDecoder.cs
- DirectionalLight.cs
- Queue.cs
- ReadOnlyCollection.cs
- ValidationError.cs
- HelpKeywordAttribute.cs
- CatalogPartChrome.cs
- InputReportEventArgs.cs
- Normalizer.cs
- Transform.cs
- NumericUpDown.cs
- TextAnchor.cs
- SourceSwitch.cs
- TransformValueSerializer.cs
- PropertyGeneratedEventArgs.cs
- MimeFormatExtensions.cs
- Exception.cs
- MatrixAnimationBase.cs
- CaretElement.cs
- EntityContainerEntitySet.cs
- VectorKeyFrameCollection.cs
- PeerObject.cs
- ScrollBar.cs
- KeyGestureConverter.cs
- ProviderUtil.cs
- WindowsListViewScroll.cs
- ErrorStyle.cs
- TextBoxBase.cs
- SortDescriptionCollection.cs
- GAC.cs
- future.cs
- WebPartVerb.cs
- MdImport.cs
- TemplateApplicationHelper.cs
- SortableBindingList.cs
- MouseGestureConverter.cs
- LogicalExpressionTypeConverter.cs
- KeyMatchBuilder.cs
- DoubleStorage.cs
- InternalMappingException.cs
- DictionaryGlobals.cs
- BitmapImage.cs
- CursorConverter.cs
- X509ServiceCertificateAuthenticationElement.cs
- RepeatInfo.cs
- Soap.cs
- HMAC.cs
- XmlSchemaAppInfo.cs
- SqlInternalConnectionSmi.cs
- IPEndPoint.cs
- HtmlFormAdapter.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- HTTPNotFoundHandler.cs
- FileRecordSequenceCompletedAsyncResult.cs
- precedingquery.cs
- Int32CollectionConverter.cs
- BatchParser.cs
- XamlStackWriter.cs
- DebuggerAttributes.cs
- GuidTagList.cs
- TraceSection.cs
- UserControlCodeDomTreeGenerator.cs
- RangeValidator.cs
- SerialPort.cs