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
- GridViewAutoFormat.cs
- SrgsElementList.cs
- Int32Rect.cs
- EncryptedHeaderXml.cs
- RewritingSimplifier.cs
- InputDevice.cs
- SafeNativeMethods.cs
- WindowsGraphicsWrapper.cs
- AuthenticationModulesSection.cs
- PointHitTestParameters.cs
- CollectionViewGroupRoot.cs
- PersistNameAttribute.cs
- ParentQuery.cs
- ColorContext.cs
- ValueConversionAttribute.cs
- Semaphore.cs
- MatrixUtil.cs
- ClassData.cs
- FixedBufferAttribute.cs
- XhtmlBasicCommandAdapter.cs
- CanonicalFontFamilyReference.cs
- WsdlBuildProvider.cs
- StructuredTypeEmitter.cs
- CroppedBitmap.cs
- AutomationProperties.cs
- BaseConfigurationRecord.cs
- ConfigurationSettings.cs
- XMLSyntaxException.cs
- BasicCommandTreeVisitor.cs
- GridItemPattern.cs
- ExtensionFile.cs
- StringUtil.cs
- EastAsianLunisolarCalendar.cs
- FileLogRecord.cs
- KeyInfo.cs
- ChannelReliableSession.cs
- UndirectedGraph.cs
- TraversalRequest.cs
- ToolStripComboBox.cs
- XMLUtil.cs
- ChangeBlockUndoRecord.cs
- _Semaphore.cs
- TextEndOfParagraph.cs
- ExpressionConverter.cs
- BitmapImage.cs
- EntityConnectionStringBuilder.cs
- CorrelationManager.cs
- ChangePassword.cs
- BamlRecords.cs
- SynchronousChannel.cs
- WebColorConverter.cs
- MbpInfo.cs
- ObjectDisposedException.cs
- TextElementCollection.cs
- Matrix3D.cs
- OleDbConnectionFactory.cs
- GuidTagList.cs
- BitmapScalingModeValidation.cs
- GrammarBuilderWildcard.cs
- ErrorStyle.cs
- CancelEventArgs.cs
- ScriptResourceInfo.cs
- UndoEngine.cs
- StaticSiteMapProvider.cs
- Marshal.cs
- GACMembershipCondition.cs
- TabletDeviceInfo.cs
- SessionEndedEventArgs.cs
- SqlException.cs
- GeometryModel3D.cs
- MutexSecurity.cs
- WebPartCollection.cs
- BaseDataListComponentEditor.cs
- HierarchicalDataSourceControl.cs
- CompiledELinqQueryState.cs
- StylusPointProperties.cs
- DeviceSpecificChoiceCollection.cs
- LeafCellTreeNode.cs
- HelpEvent.cs
- Span.cs
- MarkupExtensionParser.cs
- xsdvalidator.cs
- EncodingDataItem.cs
- ToolBarOverflowPanel.cs
- ArrayTypeMismatchException.cs
- RelatedImageListAttribute.cs
- PersonalizationStateInfo.cs
- ScrollItemProviderWrapper.cs
- ManagementEventArgs.cs
- HttpCachePolicyElement.cs
- MatrixCamera.cs
- ProxyGenerator.cs
- MessageOperationFormatter.cs
- OpenFileDialog.cs
- DynamicPropertyReader.cs
- XmlNamedNodeMap.cs
- UpdateDelegates.Generated.cs
- GroupBox.cs
- SwitchLevelAttribute.cs
- FileUtil.cs