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
- basecomparevalidator.cs
- MobileControlBuilder.cs
- indexingfiltermarshaler.cs
- XpsFilter.cs
- BlobPersonalizationState.cs
- DescendentsWalkerBase.cs
- MultidimensionalArrayItemReference.cs
- ColumnMapTranslator.cs
- UInt64Converter.cs
- xsdvalidator.cs
- TextElementEnumerator.cs
- GridViewCommandEventArgs.cs
- dataprotectionpermissionattribute.cs
- Bezier.cs
- ScrollChrome.cs
- EndOfStreamException.cs
- AmbientProperties.cs
- DecimalConverter.cs
- WorkflowOwnerAsyncResult.cs
- FlowDocumentFormatter.cs
- _SSPIWrapper.cs
- SimpleColumnProvider.cs
- TextFindEngine.cs
- FontStyleConverter.cs
- EntitySqlException.cs
- InlineCategoriesDocument.cs
- SecUtil.cs
- SHA384Cng.cs
- figurelength.cs
- SpellCheck.cs
- RoutedEventValueSerializer.cs
- XPathNodeIterator.cs
- DateTimePicker.cs
- WorkflowInstanceProvider.cs
- DLinqTableProvider.cs
- PropertyInformationCollection.cs
- HttpResponseHeader.cs
- UserMapPath.cs
- xml.cs
- GregorianCalendarHelper.cs
- DoubleLink.cs
- PictureBox.cs
- PostBackOptions.cs
- WsdlInspector.cs
- Enum.cs
- Inline.cs
- XamlPointCollectionSerializer.cs
- safelinkcollection.cs
- DataTemplate.cs
- EntityDataSourceValidationException.cs
- SecurityUtils.cs
- Configuration.cs
- RootDesignerSerializerAttribute.cs
- XPathItem.cs
- Logging.cs
- Menu.cs
- UIElementParagraph.cs
- DBBindings.cs
- SQLMoney.cs
- RadioButton.cs
- MapPathBasedVirtualPathProvider.cs
- SBCSCodePageEncoding.cs
- ListViewGroupCollectionEditor.cs
- ObservableCollection.cs
- IChannel.cs
- MailMessageEventArgs.cs
- HtmlTableCell.cs
- SafeEventLogWriteHandle.cs
- TextWriter.cs
- XmlWrappingReader.cs
- XsltArgumentList.cs
- SchemaObjectWriter.cs
- IdentityReference.cs
- Panel.cs
- ScaleTransform.cs
- ToolStripTemplateNode.cs
- OutputCacheProfile.cs
- TaskForm.cs
- CounterCreationDataCollection.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- BaseConfigurationRecord.cs
- MetadataItemEmitter.cs
- RowUpdatingEventArgs.cs
- CompilationPass2Task.cs
- ContentType.cs
- WebHeaderCollection.cs
- Function.cs
- Stroke.cs
- Int16Storage.cs
- DBCommandBuilder.cs
- HelloOperationAsyncResult.cs
- SqlWriter.cs
- RegexNode.cs
- DataBoundControl.cs
- ArrayWithOffset.cs
- Serializer.cs
- CacheRequest.cs
- XmlHierarchicalEnumerable.cs
- AlignmentXValidation.cs
- XmlEntity.cs