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
- PathFigureCollection.cs
- EmptyEnumerator.cs
- TextOnlyOutput.cs
- ColumnMapCopier.cs
- CatalogZoneBase.cs
- FamilyCollection.cs
- XmlAttributes.cs
- PrivilegeNotHeldException.cs
- OleDbRowUpdatingEvent.cs
- TemplateEditingVerb.cs
- StrokeDescriptor.cs
- CodeAccessPermission.cs
- LicenseProviderAttribute.cs
- TrackingMemoryStream.cs
- CompilerTypeWithParams.cs
- DataControlFieldCollection.cs
- TokenizerHelper.cs
- ResourceReferenceExpression.cs
- GuidelineSet.cs
- HMACSHA512.cs
- FixedSOMElement.cs
- PipeStream.cs
- EventDescriptor.cs
- HeaderedContentControl.cs
- XPathBinder.cs
- ParameterToken.cs
- ProfileBuildProvider.cs
- SessionSwitchEventArgs.cs
- CertificateReferenceElement.cs
- X509Chain.cs
- BasicAsyncResult.cs
- ShutDownListener.cs
- TabPage.cs
- TdsParser.cs
- SettingsSavedEventArgs.cs
- Point3D.cs
- DataGridTableCollection.cs
- DataRow.cs
- SystemInformation.cs
- WebDescriptionAttribute.cs
- EncryptedKey.cs
- SimpleMailWebEventProvider.cs
- PathData.cs
- InvalidContentTypeException.cs
- UshortList2.cs
- ColumnMapVisitor.cs
- ColorContextHelper.cs
- DocumentViewerConstants.cs
- StoryFragments.cs
- CollectionContainer.cs
- ObfuscationAttribute.cs
- MenuStrip.cs
- MobileControlsSectionHandler.cs
- CodeVariableReferenceExpression.cs
- ResourceDisplayNameAttribute.cs
- IsolatedStoragePermission.cs
- PlainXmlSerializer.cs
- DomNameTable.cs
- _NestedMultipleAsyncResult.cs
- UncommonField.cs
- Visual3D.cs
- VisualStyleRenderer.cs
- FormsAuthentication.cs
- PngBitmapDecoder.cs
- _ChunkParse.cs
- MonthChangedEventArgs.cs
- AdPostCacheSubstitution.cs
- OleAutBinder.cs
- CodeDirectiveCollection.cs
- EntityTransaction.cs
- TextFormatterImp.cs
- DesignTimeData.cs
- Formatter.cs
- TableLayout.cs
- FormViewUpdatedEventArgs.cs
- CompareInfo.cs
- GridItemPattern.cs
- DesignerEventService.cs
- EdgeProfileValidation.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MenuBindingsEditorForm.cs
- DigitalSignatureProvider.cs
- NotifyParentPropertyAttribute.cs
- InputBinding.cs
- HtmlElementErrorEventArgs.cs
- Debug.cs
- MailDefinitionBodyFileNameEditor.cs
- XDRSchema.cs
- WebPartZone.cs
- IpcChannel.cs
- MarkupWriter.cs
- SizeAnimationClockResource.cs
- WindowsFormsDesignerOptionService.cs
- CheckBoxList.cs
- CorrelationExtension.cs
- CatalogPart.cs
- AccessDataSourceWizardForm.cs
- AutoScrollHelper.cs
- SQLInt16Storage.cs
- LocalizedNameDescriptionPair.cs