Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RelationshipEndMember.cs / 1 / 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
- LinkedResource.cs
- DataGridViewRowCollection.cs
- BaseCollection.cs
- FormsAuthentication.cs
- KeyedHashAlgorithm.cs
- TrimSurroundingWhitespaceAttribute.cs
- SpellerInterop.cs
- XPathNodeIterator.cs
- PickDesigner.xaml.cs
- MailWriter.cs
- EventRoute.cs
- DES.cs
- Memoizer.cs
- SourceFileInfo.cs
- DateTimeFormat.cs
- MetadataPropertyCollection.cs
- AxHost.cs
- MemberAssignment.cs
- MinimizableAttributeTypeConverter.cs
- BitmapImage.cs
- GuidConverter.cs
- SafeRightsManagementHandle.cs
- DelimitedListTraceListener.cs
- SessionStateItemCollection.cs
- WinFormsSecurity.cs
- WaitForChangedResult.cs
- URI.cs
- SmuggledIUnknown.cs
- VisualBrush.cs
- BrowserDefinitionCollection.cs
- oledbmetadatacolumnnames.cs
- ConnectionInterfaceCollection.cs
- DataTableMappingCollection.cs
- _Semaphore.cs
- ScrollProviderWrapper.cs
- HuffModule.cs
- AppDomainAttributes.cs
- X509Extension.cs
- TextContainerChangeEventArgs.cs
- CharacterShapingProperties.cs
- AspCompat.cs
- HwndStylusInputProvider.cs
- FileLevelControlBuilderAttribute.cs
- CrossContextChannel.cs
- LazyTextWriterCreator.cs
- securestring.cs
- DelimitedListTraceListener.cs
- XmlDomTextWriter.cs
- StringCollectionMarkupSerializer.cs
- Int32EqualityComparer.cs
- XmlDataProvider.cs
- FrameworkObject.cs
- EnumConverter.cs
- SiteMapDesignerDataSourceView.cs
- DbConnectionHelper.cs
- SessionIDManager.cs
- LocalFileSettingsProvider.cs
- ExpressionConverter.cs
- SqlBuilder.cs
- WebPartTransformerAttribute.cs
- ControlEvent.cs
- ConstructorNeedsTagAttribute.cs
- KeyTime.cs
- ProgressChangedEventArgs.cs
- WsdlInspector.cs
- UnmanagedMemoryStream.cs
- UpDownBase.cs
- CancelRequestedRecord.cs
- UIElementCollection.cs
- ClientUtils.cs
- SplashScreenNativeMethods.cs
- UriTemplateHelpers.cs
- FillErrorEventArgs.cs
- ButtonBase.cs
- Menu.cs
- WorkflowMarkupElementEventArgs.cs
- FixedDocument.cs
- SizeValueSerializer.cs
- DataListCommandEventArgs.cs
- LongValidator.cs
- SecurityKeyIdentifierClause.cs
- Rule.cs
- Rotation3DKeyFrameCollection.cs
- GlyphInfoList.cs
- FilteredDataSetHelper.cs
- PropertyValueChangedEvent.cs
- StateDesigner.Layouts.cs
- MimeParameter.cs
- HtmlFormWrapper.cs
- IntegerValidator.cs
- SafeReversePInvokeHandle.cs
- EntityDataSourceUtil.cs
- PerfCounterSection.cs
- SecurityException.cs
- BindingMemberInfo.cs
- ToolStripDropDownButton.cs
- BackStopAuthenticationModule.cs
- login.cs
- GroupItem.cs
- ToolStripItemRenderEventArgs.cs