Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RelationshipEndMember.cs / 3 / RelationshipEndMember.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- 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 } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- 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 } } // 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
- SerialPort.cs
- StandardOleMarshalObject.cs
- SqlDataRecord.cs
- ChannelTraceRecord.cs
- SQLDateTimeStorage.cs
- CommandEventArgs.cs
- BackEase.cs
- IdentifierCreationService.cs
- Label.cs
- DependencyObjectProvider.cs
- CatalogPartChrome.cs
- _FtpDataStream.cs
- odbcmetadatacolumnnames.cs
- DataTableTypeConverter.cs
- WindowsBrush.cs
- ItemDragEvent.cs
- PageAdapter.cs
- SystemIcons.cs
- FloatUtil.cs
- PolicyManager.cs
- ChannelReliableSession.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ClientSettings.cs
- DataGridCellEditEndingEventArgs.cs
- RegexReplacement.cs
- Boolean.cs
- XmlText.cs
- Memoizer.cs
- Win32.cs
- WindowsUpDown.cs
- x509utils.cs
- HitTestParameters3D.cs
- OutgoingWebResponseContext.cs
- MessageQueueConverter.cs
- FormViewPagerRow.cs
- CharAnimationBase.cs
- ExtensibleClassFactory.cs
- ProfileManager.cs
- CapabilitiesAssignment.cs
- MsmqIntegrationMessagePool.cs
- Automation.cs
- SqlUDTStorage.cs
- FilterException.cs
- securitycriticaldata.cs
- EmbossBitmapEffect.cs
- SmtpReplyReaderFactory.cs
- AVElementHelper.cs
- Italic.cs
- SortDescription.cs
- JsonFormatReaderGenerator.cs
- HostedTcpTransportManager.cs
- ToolboxBitmapAttribute.cs
- RoutedEvent.cs
- RequestCacheEntry.cs
- StateBag.cs
- DecimalFormatter.cs
- WebPartDescriptionCollection.cs
- PropertyChange.cs
- Int32CAMarshaler.cs
- ProcessMessagesAsyncResult.cs
- ListViewInsertedEventArgs.cs
- LexicalChunk.cs
- EdgeProfileValidation.cs
- LinkButton.cs
- InterleavedZipPartStream.cs
- ModelUIElement3D.cs
- ProxyAttribute.cs
- AlternateViewCollection.cs
- PersonalizationDictionary.cs
- SByte.cs
- FixedHyperLink.cs
- UriScheme.cs
- MultiAsyncResult.cs
- Subtree.cs
- SoapAttributeOverrides.cs
- COM2PropertyDescriptor.cs
- GeometryModel3D.cs
- UpdateProgress.cs
- OLEDB_Util.cs
- XamlReader.cs
- SqlDeflator.cs
- Emitter.cs
- SeekStoryboard.cs
- XmlParser.cs
- AutomationIdentifier.cs
- XPathChildIterator.cs
- Interlocked.cs
- ListCollectionView.cs
- OrderByQueryOptionExpression.cs
- FunctionDescription.cs
- ResXResourceSet.cs
- PartialTrustValidationBehavior.cs
- IxmlLineInfo.cs
- ProfileSection.cs
- Invariant.cs
- PropertyMap.cs
- LinqTreeNodeEvaluator.cs
- Column.cs
- StatusCommandUI.cs
- GridViewRowCollection.cs