Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BamlWriter.cs
- Boolean.cs
- CorrelationService.cs
- WebPartConnection.cs
- DbConvert.cs
- TextElementEnumerator.cs
- ClientRolePrincipal.cs
- KeyValueInternalCollection.cs
- ButtonBaseDesigner.cs
- StreamReader.cs
- ExecutionEngineException.cs
- OleDbParameter.cs
- WindowAutomationPeer.cs
- SemanticResultValue.cs
- ComplexType.cs
- Knowncolors.cs
- PackagePart.cs
- SizeFConverter.cs
- RectKeyFrameCollection.cs
- Error.cs
- AssemblyGen.cs
- RequestBringIntoViewEventArgs.cs
- DefaultProxySection.cs
- SiteMapNodeCollection.cs
- ObjectDataProvider.cs
- XD.cs
- DropDownList.cs
- InternalConfirm.cs
- FlowDecision.cs
- CommonDialog.cs
- ExpressionBindingCollection.cs
- DataGridViewLayoutData.cs
- oledbmetadatacolumnnames.cs
- CustomAttribute.cs
- MimeTypeMapper.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- smtppermission.cs
- BitmapCache.cs
- BrowserCapabilitiesCodeGenerator.cs
- DrawingContextDrawingContextWalker.cs
- HMACSHA256.cs
- RuntimeEnvironment.cs
- IsolatedStorageFile.cs
- LoginDesigner.cs
- ObjectResult.cs
- XmlSerializerFactory.cs
- MultilineStringConverter.cs
- FontUnit.cs
- MeasureData.cs
- XmlSchemaValidator.cs
- CrossContextChannel.cs
- IsolatedStorageFileStream.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- SchemaImporter.cs
- FileDialogCustomPlacesCollection.cs
- AssemblyBuilder.cs
- _SpnDictionary.cs
- DataGridViewHeaderCell.cs
- FormsAuthenticationEventArgs.cs
- MiniLockedBorderGlyph.cs
- HitTestParameters.cs
- ProxyHwnd.cs
- MinimizableAttributeTypeConverter.cs
- CriticalHandle.cs
- UserControl.cs
- TemplateColumn.cs
- precedingquery.cs
- SystemPens.cs
- CryptoHelper.cs
- StringAnimationBase.cs
- NamespaceMapping.cs
- InputScopeNameConverter.cs
- SchemaTableColumn.cs
- CounterCreationData.cs
- MemberDomainMap.cs
- WhitespaceRuleReader.cs
- WeakHashtable.cs
- InkPresenterAutomationPeer.cs
- HtmlValidationSummaryAdapter.cs
- DataSourceSelectArguments.cs
- PropertyEntry.cs
- CFGGrammar.cs
- SoapReflectionImporter.cs
- RenderContext.cs
- SQLInt64.cs
- ShapeTypeface.cs
- TextShapeableCharacters.cs
- DataSourceHelper.cs
- RegexGroupCollection.cs
- ExtensionQuery.cs
- OutputScopeManager.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- HttpClientCredentialType.cs
- SoapFault.cs
- WebPartMinimizeVerb.cs
- MimeMapping.cs
- TransportSecurityHelpers.cs
- CreateUserWizard.cs
- Form.cs
- SelectorAutomationPeer.cs