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
- UInt32Converter.cs
- ServiceReference.cs
- OpenTypeCommon.cs
- RegistryDataKey.cs
- ComponentEvent.cs
- RayMeshGeometry3DHitTestResult.cs
- ForceCopyBuildProvider.cs
- XPathParser.cs
- StaticSiteMapProvider.cs
- SHA512Cng.cs
- Permission.cs
- ProcessStartInfo.cs
- DataGridViewBindingCompleteEventArgs.cs
- QilStrConcat.cs
- StateMachineTimers.cs
- TabletDeviceInfo.cs
- InvokeMemberBinder.cs
- SystemIPGlobalProperties.cs
- XhtmlConformanceSection.cs
- GraphicsState.cs
- DataGridViewSelectedCellCollection.cs
- BidPrivateBase.cs
- PagesChangedEventArgs.cs
- RoutedEventHandlerInfo.cs
- CalendarDesigner.cs
- FixedLineResult.cs
- DataServiceExpressionVisitor.cs
- LinkAreaEditor.cs
- Signature.cs
- _NetRes.cs
- HotSpot.cs
- ProtocolsConfigurationEntry.cs
- TypeUsageBuilder.cs
- DbParameterCollection.cs
- EnlistmentTraceIdentifier.cs
- SqlAliasesReferenced.cs
- WCFServiceClientProxyGenerator.cs
- RectangleHotSpot.cs
- _NestedMultipleAsyncResult.cs
- AddInAttribute.cs
- OperationResponse.cs
- RepeatInfo.cs
- ViewCellRelation.cs
- XmlSchemaGroupRef.cs
- WebPartUtil.cs
- XmlParserContext.cs
- WasNotInstalledException.cs
- SqlDataSourceParameterParser.cs
- EntityType.cs
- SecurityHelper.cs
- ReaderWriterLockWrapper.cs
- SynchronizedInputHelper.cs
- ClientConfigurationHost.cs
- WebPartZoneCollection.cs
- DocumentStream.cs
- ColumnMapCopier.cs
- HtmlControl.cs
- BuildProviderCollection.cs
- ListViewTableCell.cs
- MatrixValueSerializer.cs
- NullableDecimalAverageAggregationOperator.cs
- ExternalException.cs
- TextEditorCopyPaste.cs
- Calendar.cs
- WbmpConverter.cs
- RequestQueryProcessor.cs
- EndpointAddress10.cs
- DataGridAutoFormat.cs
- NamespaceInfo.cs
- TerminatorSinks.cs
- MetadataItemCollectionFactory.cs
- ToolStripContextMenu.cs
- ClipboardData.cs
- ellipse.cs
- PassportAuthentication.cs
- XPathConvert.cs
- InkPresenter.cs
- CheckedListBox.cs
- TraceLevelStore.cs
- CoTaskMemHandle.cs
- AuthenticatingEventArgs.cs
- CacheHelper.cs
- AnimatedTypeHelpers.cs
- ValidationErrorCollection.cs
- Bezier.cs
- HttpCacheParams.cs
- ModelToObjectValueConverter.cs
- BoolLiteral.cs
- ActivityPropertyReference.cs
- UnmanagedHandle.cs
- AnimatedTypeHelpers.cs
- SlipBehavior.cs
- ListItemCollection.cs
- Int64Converter.cs
- GacUtil.cs
- SequentialOutput.cs
- AliasExpr.cs
- ServiceInfo.cs
- FormViewDeletedEventArgs.cs
- HandlerBase.cs