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
- CustomErrorsSectionWrapper.cs
- XamlBrushSerializer.cs
- ReflectTypeDescriptionProvider.cs
- Span.cs
- PathGeometry.cs
- filewebresponse.cs
- SQLGuid.cs
- ToolStripPanel.cs
- AlignmentYValidation.cs
- StatusBarDrawItemEvent.cs
- FixedSchema.cs
- SafeThemeHandle.cs
- HttpFileCollection.cs
- StorageEntityTypeMapping.cs
- StrokeNodeData.cs
- TextModifierScope.cs
- Geometry.cs
- MultiByteCodec.cs
- FillBehavior.cs
- MenuBindingsEditor.cs
- DesignerProperties.cs
- JsonUriDataContract.cs
- ForeignKeyConstraint.cs
- ZoomPercentageConverter.cs
- ContentElement.cs
- ProtocolsConfigurationHandler.cs
- TabControlCancelEvent.cs
- FragmentQuery.cs
- HttpPostedFile.cs
- BinaryMethodMessage.cs
- SpeechSeg.cs
- CustomCredentialPolicy.cs
- ContentType.cs
- DispatcherBuilder.cs
- TrackingDataItemValue.cs
- DataControlReferenceCollection.cs
- TextInfo.cs
- FormsAuthenticationEventArgs.cs
- WebServiceFaultDesigner.cs
- mediaclock.cs
- FixedDSBuilder.cs
- UndirectedGraph.cs
- ButtonField.cs
- StringOutput.cs
- TabletCollection.cs
- SizeValueSerializer.cs
- DataGridViewSortCompareEventArgs.cs
- UnsafeNativeMethods.cs
- NumberFormatInfo.cs
- WebBrowserProgressChangedEventHandler.cs
- XmlSchemaComplexContentRestriction.cs
- CodeDirectiveCollection.cs
- LocalizableAttribute.cs
- RawTextInputReport.cs
- ActivitySurrogateSelector.cs
- WebSysDescriptionAttribute.cs
- ObjectNotFoundException.cs
- ClientSideQueueItem.cs
- QuadraticBezierSegment.cs
- ProfileGroupSettingsCollection.cs
- CompositeControl.cs
- DefaultMergeHelper.cs
- DataGridViewCellLinkedList.cs
- XmlDocument.cs
- DataRowExtensions.cs
- DataBinder.cs
- DataColumn.cs
- StatusStrip.cs
- PrinterResolution.cs
- ScopedMessagePartSpecification.cs
- StateManagedCollection.cs
- File.cs
- EventLogPermissionAttribute.cs
- ArgumentException.cs
- TemplateControlParser.cs
- ImpersonateTokenRef.cs
- PathSegmentCollection.cs
- TraceHelpers.cs
- MessageLoggingFilterTraceRecord.cs
- XmlWriterTraceListener.cs
- WorkflowInstanceContextProvider.cs
- NotifyInputEventArgs.cs
- HMACMD5.cs
- CallbackHandler.cs
- SendActivityValidator.cs
- InvalidPipelineStoreException.cs
- SqlError.cs
- DataGridColumn.cs
- DataGridViewRow.cs
- ExpandableObjectConverter.cs
- JsonClassDataContract.cs
- SoapBinding.cs
- ListViewItem.cs
- NullableLongMinMaxAggregationOperator.cs
- ScriptControlDescriptor.cs
- KeyGestureValueSerializer.cs
- DataColumnMappingCollection.cs
- DataGridTable.cs
- ClaimSet.cs
- CopyOfAction.cs