Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Objects / DataClasses / EdmRelationshipRoleAttribute.cs / 2 / 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
- Int32RectValueSerializer.cs
- XmlSchemaAll.cs
- COM2ICategorizePropertiesHandler.cs
- ThreadAbortException.cs
- WebPartManagerInternals.cs
- DBBindings.cs
- AlignmentXValidation.cs
- QilStrConcat.cs
- ConvertEvent.cs
- Fx.cs
- InternalRelationshipCollection.cs
- SpeechAudioFormatInfo.cs
- InitializationEventAttribute.cs
- ThicknessAnimationUsingKeyFrames.cs
- __FastResourceComparer.cs
- SqlErrorCollection.cs
- RegistryPermission.cs
- InputQueue.cs
- SafeNativeMethods.cs
- BuildManager.cs
- Action.cs
- TypedDataSourceCodeGenerator.cs
- InfoCardProofToken.cs
- Interlocked.cs
- ObjectAnimationBase.cs
- HttpCacheVaryByContentEncodings.cs
- ConfigurationManagerHelperFactory.cs
- DataObject.cs
- SecureEnvironment.cs
- StylusButton.cs
- RectAnimationClockResource.cs
- KeyValueConfigurationCollection.cs
- RoleManagerModule.cs
- XmlChildEnumerator.cs
- TargetControlTypeAttribute.cs
- Options.cs
- Listbox.cs
- DiagnosticsConfigurationHandler.cs
- FrameworkElement.cs
- _LocalDataStore.cs
- ProviderUtil.cs
- EdmType.cs
- TabRenderer.cs
- BitmapEffectDrawingContextWalker.cs
- ArgumentValidation.cs
- CommandHelpers.cs
- MarginsConverter.cs
- RightsManagementPermission.cs
- TemplateBindingExtension.cs
- SqlExpander.cs
- FormatterConverter.cs
- XmlIlTypeHelper.cs
- TemplateBindingExtensionConverter.cs
- WebPartConnection.cs
- WebPartExportVerb.cs
- NetworkStream.cs
- PolicyException.cs
- DoubleCollectionConverter.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DNS.cs
- LocalizableAttribute.cs
- RecordManager.cs
- SinglePageViewer.cs
- HelpEvent.cs
- NotImplementedException.cs
- ErrorRuntimeConfig.cs
- EventRouteFactory.cs
- DataSourceSelectArguments.cs
- OdbcException.cs
- MessageVersion.cs
- SqlDataSourceCommandEventArgs.cs
- PackWebRequestFactory.cs
- _OSSOCK.cs
- SQLCharsStorage.cs
- SpecialNameAttribute.cs
- CanExecuteRoutedEventArgs.cs
- FontCacheUtil.cs
- Vector.cs
- Panel.cs
- SelectionProcessor.cs
- ListControlBuilder.cs
- Point3D.cs
- _SafeNetHandles.cs
- PngBitmapDecoder.cs
- SqlStatistics.cs
- Connector.cs
- MemberPathMap.cs
- StaticContext.cs
- GlobalEventManager.cs
- FieldNameLookup.cs
- TextTreeRootNode.cs
- ContractAdapter.cs
- DataGridViewHitTestInfo.cs
- ipaddressinformationcollection.cs
- AllMembershipCondition.cs
- UnsafeNativeMethodsPenimc.cs
- OracleConnectionFactory.cs
- ToolStripItemRenderEventArgs.cs
- Perspective.cs
- BaseResourcesBuildProvider.cs