Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Objects / DataClasses / EdmRelationshipRoleAttribute.cs / 1 / EdmRelationshipRoleAttribute.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Metadata.Edm; //for RelationshipMultiplicity namespace System.Data.Objects.DataClasses { ////// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")] [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public sealed class EdmRelationshipAttribute : System.Attribute { private string _relationshipNamespaceName; private string _relationshipName; private string _role1Name; private string _role2Name; private RelationshipMultiplicity _role1Multiplicity; private RelationshipMultiplicity _role2Multiplicity; private Type _role1Type; private Type _role2Type; ////// Attribute containing the details for a relationship /// This should match the C-Space relationship information, but having it available in this /// attribute allows us access to this information even in O-Space when there is no context. /// There can be multiple attributes of this type in an assembly. /// public EdmRelationshipAttribute(string relationshipNamespaceName, string relationshipName, string role1Name, RelationshipMultiplicity role1Multiplicity, Type role1Type, string role2Name, RelationshipMultiplicity role2Multiplicity, Type role2Type) { _relationshipNamespaceName = relationshipNamespaceName; _relationshipName = relationshipName; _role1Name = role1Name; _role1Multiplicity = role1Multiplicity; _role1Type = role1Type; _role2Name = role2Name; _role2Multiplicity = role2Multiplicity; _role2Type = role2Type; } ////// The name of the namespace that the relationship is in /// public string RelationshipNamespaceName { get { return _relationshipNamespaceName; } } ////// The name of a relationship /// public string RelationshipName { get { return _relationshipName; } } ////// The name of the role /// public string Role1Name { get { return _role1Name; } } ////// The multiplicity of the the RoleName in RelationshipName /// public RelationshipMultiplicity Role1Multiplicity { get { return _role1Multiplicity; } } ////// The CLR type for the role associated with this relationship /// public Type Role1Type { get { return _role1Type; } } ////// The name of the role /// public string Role2Name { get { return _role2Name; } } ////// The multiplicity of the the RoleName in RelationshipName /// public RelationshipMultiplicity Role2Multiplicity { get { return _role2Multiplicity; } } ////// The CLR type for the role associated with this relationship /// public Type Role2Type { get { return _role2Type; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Metadata.Edm; //for RelationshipMultiplicity namespace System.Data.Objects.DataClasses { ////// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")] [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] public sealed class EdmRelationshipAttribute : System.Attribute { private string _relationshipNamespaceName; private string _relationshipName; private string _role1Name; private string _role2Name; private RelationshipMultiplicity _role1Multiplicity; private RelationshipMultiplicity _role2Multiplicity; private Type _role1Type; private Type _role2Type; ////// Attribute containing the details for a relationship /// This should match the C-Space relationship information, but having it available in this /// attribute allows us access to this information even in O-Space when there is no context. /// There can be multiple attributes of this type in an assembly. /// public EdmRelationshipAttribute(string relationshipNamespaceName, string relationshipName, string role1Name, RelationshipMultiplicity role1Multiplicity, Type role1Type, string role2Name, RelationshipMultiplicity role2Multiplicity, Type role2Type) { _relationshipNamespaceName = relationshipNamespaceName; _relationshipName = relationshipName; _role1Name = role1Name; _role1Multiplicity = role1Multiplicity; _role1Type = role1Type; _role2Name = role2Name; _role2Multiplicity = role2Multiplicity; _role2Type = role2Type; } ////// The name of the namespace that the relationship is in /// public string RelationshipNamespaceName { get { return _relationshipNamespaceName; } } ////// The name of a relationship /// public string RelationshipName { get { return _relationshipName; } } ////// The name of the role /// public string Role1Name { get { return _role1Name; } } ////// The multiplicity of the the RoleName in RelationshipName /// public RelationshipMultiplicity Role1Multiplicity { get { return _role1Multiplicity; } } ////// The CLR type for the role associated with this relationship /// public Type Role1Type { get { return _role1Type; } } ////// The name of the role /// public string Role2Name { get { return _role2Name; } } ////// The multiplicity of the the RoleName in RelationshipName /// public RelationshipMultiplicity Role2Multiplicity { get { return _role2Multiplicity; } } ////// The CLR type for the role associated with this relationship /// public Type Role2Type { get { return _role2Type; } } } } // 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
- Error.cs
- DrawItemEvent.cs
- ColorContextHelper.cs
- SecurityToken.cs
- StringWriter.cs
- ZipIOExtraFieldZip64Element.cs
- OracleDataReader.cs
- AnnotationResourceChangedEventArgs.cs
- ConversionHelper.cs
- XmlBinaryReader.cs
- SessionStateSection.cs
- CollectionContainer.cs
- SystemIPGlobalStatistics.cs
- FontUnit.cs
- CompModSwitches.cs
- FaultDesigner.cs
- PackageFilter.cs
- AuditLevel.cs
- DataGridHeaderBorder.cs
- RegexWriter.cs
- XmlDataSourceNodeDescriptor.cs
- Utils.cs
- MetadataUtilsSmi.cs
- SqlAliaser.cs
- TimeSpanStorage.cs
- CacheEntry.cs
- CodeAttributeArgumentCollection.cs
- InsufficientMemoryException.cs
- PropertyToken.cs
- UriScheme.cs
- ISAPIWorkerRequest.cs
- FixUpCollection.cs
- ReadOnlyDataSource.cs
- ApplicationTrust.cs
- FieldAccessException.cs
- BitmapCache.cs
- ContentHostHelper.cs
- Encoder.cs
- MemberRestriction.cs
- ClientApiGenerator.cs
- DataServiceHost.cs
- XmlAttributes.cs
- SafeArrayRankMismatchException.cs
- ConnectionStringsExpressionBuilder.cs
- StringConverter.cs
- PropertyChangingEventArgs.cs
- Win32.cs
- diagnosticsswitches.cs
- TitleStyle.cs
- DateTimeParse.cs
- BulletedList.cs
- SystemUnicastIPAddressInformation.cs
- CompoundFileStorageReference.cs
- SizeConverter.cs
- DataGridViewRowPrePaintEventArgs.cs
- SqlTopReducer.cs
- FileRecordSequenceHelper.cs
- BooleanToVisibilityConverter.cs
- Constraint.cs
- PeerInvitationResponse.cs
- TdsParameterSetter.cs
- MessageQueueTransaction.cs
- CodeTryCatchFinallyStatement.cs
- FontUnit.cs
- RoleGroup.cs
- NullableDecimalMinMaxAggregationOperator.cs
- TextBoxAutomationPeer.cs
- _AutoWebProxyScriptHelper.cs
- ValidationHelper.cs
- UnsafeNativeMethods.cs
- AutoGeneratedField.cs
- GroupBox.cs
- AspNetSynchronizationContext.cs
- ExecutionEngineException.cs
- TabRenderer.cs
- ExtensionWindow.cs
- DataControlLinkButton.cs
- MetadataUtilsSmi.cs
- SQLInt32Storage.cs
- XmlElementAttribute.cs
- DocobjHost.cs
- WebConfigurationManager.cs
- CultureInfo.cs
- XmlExpressionDumper.cs
- MenuItem.cs
- ToolBarPanel.cs
- StateItem.cs
- MSAAEventDispatcher.cs
- DataGridViewColumnStateChangedEventArgs.cs
- SqlXmlStorage.cs
- XmlLoader.cs
- BitmapVisualManager.cs
- ResXResourceSet.cs
- DataGridItemEventArgs.cs
- DataGridCellClipboardEventArgs.cs
- SimpleTextLine.cs
- Int32CollectionConverter.cs
- CustomAttributeFormatException.cs
- TypeToArgumentTypeConverter.cs
- XmlMemberMapping.cs