Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RelationshipEndMember.cs / 1305376 / RelationshipEndMember.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Text; using System.Data.Common; namespace System.Data.Metadata.Edm { ////// Initializes a new instance of the RelationshipEndMember class /// public abstract class RelationshipEndMember : EdmMember { #region Constructors ////// Initializes a new instance of RelationshipEndMember /// /// name of the relationship end member /// Ref type that this end refers to /// The multiplicity of this relationship end ///Thrown if name or endRefType arguments is null ///Thrown if name argument is empty string internal RelationshipEndMember(string name, RefType endRefType, RelationshipMultiplicity multiplicity) : base(name, TypeUsage.Create(endRefType, new FacetValues{ Nullable = false })) { _relationshipMultiplicity = multiplicity; _deleteBehavior = OperationAction.None; } #endregion #region Fields private OperationAction _deleteBehavior; private RelationshipMultiplicity _relationshipMultiplicity; #endregion #region Properties ////// Returns the operational behaviour for this end /// [MetadataProperty(BuiltInTypeKind.OperationAction, true)] public OperationAction DeleteBehavior { get { return _deleteBehavior; } internal set { Util.ThrowIfReadOnly(this); _deleteBehavior = value; } } ////// Returns the multiplicity for this relationship end /// [MetadataProperty(BuiltInTypeKind.RelationshipMultiplicity, false)] public RelationshipMultiplicity RelationshipMultiplicity { get { return _relationshipMultiplicity; } } #endregion public EntityType GetEntityType() { if (TypeUsage == null) return null; return (EntityType)((RefType)TypeUsage.EdmType).ElementType; } } } // 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
- EmptyEnumerable.cs
- ToolStripItemImageRenderEventArgs.cs
- CatalogZoneDesigner.cs
- SecureStringHasher.cs
- PropertyValueUIItem.cs
- XmlUnspecifiedAttribute.cs
- JournalNavigationScope.cs
- XmlSchemaException.cs
- ExpandCollapseProviderWrapper.cs
- ToolStripItemGlyph.cs
- ListControlConvertEventArgs.cs
- CopyEncoder.cs
- XmlReturnWriter.cs
- LineServicesCallbacks.cs
- XsltFunctions.cs
- MemoryResponseElement.cs
- TraceHwndHost.cs
- WindowsAuthenticationEventArgs.cs
- Tracer.cs
- DataGridRow.cs
- RadioButtonStandardAdapter.cs
- ErrorRuntimeConfig.cs
- ClientApiGenerator.cs
- QilName.cs
- Rss20ItemFormatter.cs
- ResponseStream.cs
- SourceElementsCollection.cs
- DynamicFilterExpression.cs
- QuaternionAnimation.cs
- HMACRIPEMD160.cs
- LinkLabelLinkClickedEvent.cs
- PermissionRequestEvidence.cs
- NameValueCollection.cs
- GeneralTransformCollection.cs
- ImageFormatConverter.cs
- BufferedReceiveElement.cs
- RegistrationContext.cs
- ClonableStack.cs
- TimeoutConverter.cs
- querybuilder.cs
- Scene3D.cs
- DtrList.cs
- SmtpLoginAuthenticationModule.cs
- OracleParameter.cs
- BindingEditor.xaml.cs
- InputMethodStateTypeInfo.cs
- DeploymentSection.cs
- __TransparentProxy.cs
- KeyTime.cs
- SafeRightsManagementQueryHandle.cs
- DependencyObjectPropertyDescriptor.cs
- ServicesUtilities.cs
- CompleteWizardStep.cs
- DataGridViewCellPaintingEventArgs.cs
- SmtpReplyReader.cs
- SecureStringHasher.cs
- MethodBody.cs
- SelectionPattern.cs
- ToolStripOverflowButton.cs
- FontInfo.cs
- XappLauncher.cs
- ProcessThread.cs
- EdmItemCollection.cs
- DocumentSequence.cs
- TreeNode.cs
- FormatConvertedBitmap.cs
- ProgressBarRenderer.cs
- CodePageUtils.cs
- SmiTypedGetterSetter.cs
- EventMap.cs
- SoapTransportImporter.cs
- elementinformation.cs
- EndEvent.cs
- Substitution.cs
- SafeCryptContextHandle.cs
- OutputCacheSection.cs
- EncodingDataItem.cs
- ScriptingScriptResourceHandlerSection.cs
- ProfileServiceManager.cs
- StaticFileHandler.cs
- CmsInterop.cs
- WindowsFormsLinkLabel.cs
- SystemWebSectionGroup.cs
- UrlAuthFailedErrorFormatter.cs
- InputMethodStateChangeEventArgs.cs
- DbDataReader.cs
- SafeCryptoHandles.cs
- ThemeDirectoryCompiler.cs
- DataSetUtil.cs
- PropertyIdentifier.cs
- HostedElements.cs
- InvokeProviderWrapper.cs
- GridEntryCollection.cs
- DictionarySectionHandler.cs
- SafeCryptoHandles.cs
- BaseComponentEditor.cs
- RangeContentEnumerator.cs
- CriticalFileToken.cs
- XPathCompileException.cs
- SetterBaseCollection.cs