Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / CompMod / System / ComponentModel / Design / Data / DesignerDataRelationship.cs / 1 / DesignerDataRelationship.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel.Design.Data {
using System;
using System.Collections;
///
/// Represents a 1-to-1 or 1-to-many relationship between two tables in a
/// data connection. A collection of this type is returned from the
/// DesignerDataTable.Relationships property.
///
public sealed class DesignerDataRelationship {
private ICollection _childColumns;
private DesignerDataTable _childTable;
private string _name;
private ICollection _parentColumns;
///
///
public DesignerDataRelationship(string name, ICollection parentColumns, DesignerDataTable childTable, ICollection childColumns) {
_childColumns = childColumns;
_childTable = childTable;
_name = name;
_parentColumns = parentColumns;
}
///
/// The columns in the child table that are part of the relationship.
///
public ICollection ChildColumns {
get {
return _childColumns;
}
}
///
/// The child table referenced by this relationship.
///
public DesignerDataTable ChildTable {
get {
return _childTable;
}
}
///
/// The name of the relationship, if any.
///
public string Name {
get {
return _name;
}
}
///
/// The columns in the parent table that are part of the relationship.
///
public ICollection ParentColumns {
get {
return _parentColumns;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BaseCollection.cs
- AlternateViewCollection.cs
- OrthographicCamera.cs
- DbProviderFactory.cs
- Stack.cs
- ResourcesGenerator.cs
- PointCollection.cs
- Compilation.cs
- XmlWriterTraceListener.cs
- SQLInt32Storage.cs
- RecordConverter.cs
- TypeDescriptor.cs
- PathParser.cs
- CookieHandler.cs
- Int64AnimationUsingKeyFrames.cs
- HttpCookieCollection.cs
- SHA384CryptoServiceProvider.cs
- SettingsPropertyNotFoundException.cs
- TextEditorMouse.cs
- UrlMappingsSection.cs
- TablePattern.cs
- ClientEndpointLoader.cs
- InkPresenter.cs
- WsdlBuildProvider.cs
- SubqueryRules.cs
- Error.cs
- SqlTriggerContext.cs
- RayHitTestParameters.cs
- DateTimeStorage.cs
- SQlBooleanStorage.cs
- TextTreeUndo.cs
- ArgIterator.cs
- TextTreeObjectNode.cs
- ResourceExpressionBuilder.cs
- ConvertersCollection.cs
- IisTraceListener.cs
- RadioButton.cs
- DataControlExtensions.cs
- X509ChainElement.cs
- Barrier.cs
- ToolStripSeparatorRenderEventArgs.cs
- DockProviderWrapper.cs
- QueryActivatableWorkflowsCommand.cs
- NavigationWindowAutomationPeer.cs
- ConfigXmlSignificantWhitespace.cs
- CaseInsensitiveHashCodeProvider.cs
- View.cs
- WmfPlaceableFileHeader.cs
- MenuItemCollectionEditor.cs
- Light.cs
- SystemBrushes.cs
- SchemaElementLookUpTableEnumerator.cs
- sqlinternaltransaction.cs
- WinInet.cs
- DelimitedListTraceListener.cs
- SQLInt16.cs
- BooleanFacetDescriptionElement.cs
- KeyboardNavigation.cs
- LassoHelper.cs
- ContractReference.cs
- ASCIIEncoding.cs
- ImageMetadata.cs
- BypassElementCollection.cs
- ColumnProvider.cs
- DelegateSerializationHolder.cs
- EntityAdapter.cs
- SafeNativeMemoryHandle.cs
- ViewBox.cs
- RemoteCryptoTokenProvider.cs
- InstanceLockException.cs
- PackageRelationshipCollection.cs
- ISCIIEncoding.cs
- RenderingBiasValidation.cs
- DPCustomTypeDescriptor.cs
- SubpageParagraph.cs
- ObjectDataSourceEventArgs.cs
- LogAppendAsyncResult.cs
- TextSimpleMarkerProperties.cs
- HTMLTagNameToTypeMapper.cs
- SelectionRangeConverter.cs
- StreamSecurityUpgradeAcceptorBase.cs
- TextDecorationLocationValidation.cs
- StrongNameMembershipCondition.cs
- PasswordRecoveryDesigner.cs
- FilteredAttributeCollection.cs
- BindingListCollectionView.cs
- PropertyPathWorker.cs
- ObjectDataSource.cs
- MachineKeySection.cs
- ListViewInsertionMark.cs
- Documentation.cs
- WindowsFormsHostPropertyMap.cs
- DoubleAnimationBase.cs
- ConnectionProviderAttribute.cs
- XmlCharType.cs
- FileUtil.cs
- SignatureGenerator.cs
- RequestQueryParser.cs
- CacheAxisQuery.cs
- DSACryptoServiceProvider.cs