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
- XmlSchemaCompilationSettings.cs
- HttpGetClientProtocol.cs
- ServiceDesigner.xaml.cs
- UriTemplateLiteralQueryValue.cs
- TableRowCollection.cs
- Invariant.cs
- EntityContainerAssociationSet.cs
- XmlSchemaNotation.cs
- BooleanStorage.cs
- UserValidatedEventArgs.cs
- BitStream.cs
- WindowsScroll.cs
- BuildProvider.cs
- DiscriminatorMap.cs
- XmlWriter.cs
- GifBitmapEncoder.cs
- FormatSettings.cs
- DesignTimeParseData.cs
- WindowsListViewItem.cs
- TraceUtils.cs
- CompilerResults.cs
- WriteTimeStream.cs
- HMACSHA1.cs
- CompilerGlobalScopeAttribute.cs
- NavigationFailedEventArgs.cs
- FormViewUpdateEventArgs.cs
- GregorianCalendarHelper.cs
- IntellisenseTextBox.designer.cs
- FileNotFoundException.cs
- GeneralTransform3D.cs
- SafeCryptContextHandle.cs
- Currency.cs
- WebPartConnectionCollection.cs
- AsyncStreamReader.cs
- DataGridViewComboBoxColumn.cs
- SqlBulkCopyColumnMapping.cs
- DataGridViewRowPostPaintEventArgs.cs
- BitmapEffectGeneralTransform.cs
- Receive.cs
- WeakReference.cs
- WorkflowApplicationCompletedEventArgs.cs
- ArgumentsParser.cs
- _DynamicWinsockMethods.cs
- DataSourceSelectArguments.cs
- DetailsViewCommandEventArgs.cs
- CustomValidator.cs
- DataStorage.cs
- SessionIDManager.cs
- DocumentReference.cs
- FileDialogCustomPlacesCollection.cs
- ClosableStream.cs
- Point3DCollection.cs
- AppDomainCompilerProxy.cs
- TimelineGroup.cs
- XsdCachingReader.cs
- Compiler.cs
- SafeNativeMethodsMilCoreApi.cs
- TreeNodeStyle.cs
- ProfileService.cs
- IISUnsafeMethods.cs
- ImpersonateTokenRef.cs
- XmlWriterDelegator.cs
- ISAPIRuntime.cs
- LocatorPartList.cs
- RadioButtonRenderer.cs
- CheckPair.cs
- CheckPair.cs
- FormDesigner.cs
- BitmapPalettes.cs
- ExtensionElement.cs
- SafePointer.cs
- ReadWriteSpinLock.cs
- DBConnection.cs
- FileIOPermission.cs
- Assembly.cs
- ReceiveErrorHandling.cs
- OdbcException.cs
- SizeFConverter.cs
- MissingMethodException.cs
- remotingproxy.cs
- SspiHelper.cs
- TraceSwitch.cs
- ItemCheckEvent.cs
- DocumentXPathNavigator.cs
- GridViewHeaderRowPresenter.cs
- Matrix.cs
- ConsoleKeyInfo.cs
- CodeCatchClause.cs
- RequestTimeoutManager.cs
- BitmapVisualManager.cs
- BlurBitmapEffect.cs
- OutputCacheProfile.cs
- HtmlTableRow.cs
- UTF32Encoding.cs
- ClientSettingsProvider.cs
- StrokeFIndices.cs
- DataGridViewCellMouseEventArgs.cs
- CompilationLock.cs
- SimpleType.cs
- LogRestartAreaEnumerator.cs