Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Objects / DataClasses / EdmRelationshipNavigationPropertyAttribute.cs / 2 / EdmRelationshipNavigationPropertyAttribute.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; namespace System.Data.Objects.DataClasses { ////// Attribute identifying the Ends defined for a RelationshipSet /// Implied default AttributeUsage properties Inherited=True, AllowMultiple=False, /// The metadata system expects this and will only look at the first of each of these attributes, even if there are more. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")] [AttributeUsage(AttributeTargets.Property)] public sealed class EdmRelationshipNavigationPropertyAttribute : EdmPropertyAttribute { private string _relationshipNamespaceName; private string _relationshipName; private string _targetRoleName; ////// Attribute identifying the Ends defined for a RelationshipSet /// public EdmRelationshipNavigationPropertyAttribute(string relationshipNamespaceName, string relationshipName, string targetRoleName) { _relationshipNamespaceName = relationshipNamespaceName; _relationshipName = relationshipName; _targetRoleName = targetRoleName; } ////// the namespace name of the relationship /// public string RelationshipNamespaceName { get { return _relationshipNamespaceName; } } ////// the relationship name /// public string RelationshipName { get { return _relationshipName; } } ////// the target role name /// public string TargetRoleName { get { return _targetRoleName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; namespace System.Data.Objects.DataClasses { ////// Attribute identifying the Ends defined for a RelationshipSet /// Implied default AttributeUsage properties Inherited=True, AllowMultiple=False, /// The metadata system expects this and will only look at the first of each of these attributes, even if there are more. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")] [AttributeUsage(AttributeTargets.Property)] public sealed class EdmRelationshipNavigationPropertyAttribute : EdmPropertyAttribute { private string _relationshipNamespaceName; private string _relationshipName; private string _targetRoleName; ////// Attribute identifying the Ends defined for a RelationshipSet /// public EdmRelationshipNavigationPropertyAttribute(string relationshipNamespaceName, string relationshipName, string targetRoleName) { _relationshipNamespaceName = relationshipNamespaceName; _relationshipName = relationshipName; _targetRoleName = targetRoleName; } ////// the namespace name of the relationship /// public string RelationshipNamespaceName { get { return _relationshipNamespaceName; } } ////// the relationship name /// public string RelationshipName { get { return _relationshipName; } } ////// the target role name /// public string TargetRoleName { get { return _targetRoleName; } } } } // 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
- ColorTranslator.cs
- OLEDB_Util.cs
- CodeEventReferenceExpression.cs
- TCPListener.cs
- PartialCachingControl.cs
- Animatable.cs
- BitmapData.cs
- SessionEndingCancelEventArgs.cs
- SqlAliasesReferenced.cs
- WebPartExportVerb.cs
- UpDownEvent.cs
- SignedXml.cs
- _TransmitFileOverlappedAsyncResult.cs
- WbemProvider.cs
- ProtectedConfigurationSection.cs
- UnwrappedTypesXmlSerializerManager.cs
- ContentValidator.cs
- XMLUtil.cs
- XhtmlTextWriter.cs
- DynamicQueryStringParameter.cs
- BitmapEffectInputConnector.cs
- XmlDeclaration.cs
- SQLMembershipProvider.cs
- Serializer.cs
- BodyGlyph.cs
- ReferenceEqualityComparer.cs
- TextProperties.cs
- StandardOleMarshalObject.cs
- FixedSOMFixedBlock.cs
- DefaultPrintController.cs
- AdornerHitTestResult.cs
- HandleCollector.cs
- DataAdapter.cs
- TextBoxRenderer.cs
- WhitespaceSignificantCollectionAttribute.cs
- AspNetHostingPermission.cs
- DocumentPageView.cs
- CompilationRelaxations.cs
- RectAnimationUsingKeyFrames.cs
- SafeProcessHandle.cs
- DataGridViewRowCollection.cs
- ADRole.cs
- EmptyCollection.cs
- TextTreeText.cs
- DataServices.cs
- CrossSiteScriptingValidation.cs
- ModuleBuilderData.cs
- ConfigXmlSignificantWhitespace.cs
- EasingQuaternionKeyFrame.cs
- HwndSubclass.cs
- sqlpipe.cs
- JsonClassDataContract.cs
- SafeTimerHandle.cs
- ToolStripItemDesigner.cs
- CellRelation.cs
- shaperfactoryquerycacheentry.cs
- CodeTypeParameter.cs
- ListItemConverter.cs
- DataServiceRequestException.cs
- CollectionExtensions.cs
- Utils.cs
- DataTemplate.cs
- QueryContinueDragEventArgs.cs
- ErrorsHelper.cs
- XmlSchemaAppInfo.cs
- SystemIPv6InterfaceProperties.cs
- GroupItemAutomationPeer.cs
- StrongNameHelpers.cs
- MessagePropertyFilter.cs
- DataPagerField.cs
- FixUpCollection.cs
- figurelengthconverter.cs
- InstanceKeyCompleteException.cs
- FrameSecurityDescriptor.cs
- StringValueSerializer.cs
- DataGridViewButtonCell.cs
- infer.cs
- InputLanguageEventArgs.cs
- ObjectToken.cs
- SizeIndependentAnimationStorage.cs
- SynthesizerStateChangedEventArgs.cs
- XmlSchemaComplexType.cs
- HostedHttpContext.cs
- DesignTimeTemplateParser.cs
- ObjectCloneHelper.cs
- DeferrableContentConverter.cs
- EntityTemplateFactory.cs
- ObjectSet.cs
- Imaging.cs
- HtmlTernaryTree.cs
- SigningCredentials.cs
- Viewport3DVisual.cs
- CallId.cs
- Encoding.cs
- PageCatalogPart.cs
- ToolStripDropDownClosedEventArgs.cs
- Expressions.cs
- _FixedSizeReader.cs
- ObjectDataSourceStatusEventArgs.cs
- ClockController.cs