Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / RelationshipSet.cs / 1 / RelationshipSet.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....], [....]
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace System.Data.Metadata.Edm
{
///
/// Class for representing a relationship set
///
public abstract class RelationshipSet : EntitySetBase
{
#region Constructors
///
/// The constructor for constructing the RelationshipSet with a given name and an relationship type
///
/// The name of the RelationshipSet
/// The db schema
/// The db table
/// The provider specific query that should be used to retrieve the EntitySet
/// The entity type of the entities that this entity set type contains
/// Thrown if the argument name or entityType is null
internal RelationshipSet(string name, string schema, string table, string definingQuery, RelationshipType relationshipType)
: base(name, schema, table, definingQuery, relationshipType)
{
}
#endregion
#region Properties
///
/// Returns the relationship type associated with this relationship set
///
public new RelationshipType ElementType
{
get
{
return (RelationshipType)base.ElementType;
}
}
///
/// Returns the kind of the type
///
public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.RelationshipSet; } }
#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.Diagnostics;
using System.Text;
namespace System.Data.Metadata.Edm
{
///
/// Class for representing a relationship set
///
public abstract class RelationshipSet : EntitySetBase
{
#region Constructors
///
/// The constructor for constructing the RelationshipSet with a given name and an relationship type
///
/// The name of the RelationshipSet
/// The db schema
/// The db table
/// The provider specific query that should be used to retrieve the EntitySet
/// The entity type of the entities that this entity set type contains
/// Thrown if the argument name or entityType is null
internal RelationshipSet(string name, string schema, string table, string definingQuery, RelationshipType relationshipType)
: base(name, schema, table, definingQuery, relationshipType)
{
}
#endregion
#region Properties
///
/// Returns the relationship type associated with this relationship set
///
public new RelationshipType ElementType
{
get
{
return (RelationshipType)base.ElementType;
}
}
///
/// Returns the kind of the type
///
public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.RelationshipSet; } }
#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
- InstanceCreationEditor.cs
- XmlSchemaAttribute.cs
- CheckStoreFileValidityRequest.cs
- OleDbConnectionFactory.cs
- MemberJoinTreeNode.cs
- KeySplineConverter.cs
- ServiceChannelFactory.cs
- IApplicationTrustManager.cs
- CodeMethodReturnStatement.cs
- ClientScriptManager.cs
- OdbcConnectionOpen.cs
- QueryHandler.cs
- DeferredReference.cs
- CompositeCollectionView.cs
- FixedStringLookup.cs
- TemporaryBitmapFile.cs
- ListViewTableCell.cs
- DataProtection.cs
- WindowsTitleBar.cs
- ConfigurationHelpers.cs
- XmlMembersMapping.cs
- EventDescriptorCollection.cs
- CapabilitiesSection.cs
- SpeechAudioFormatInfo.cs
- NameValueConfigurationCollection.cs
- XmlSchemaValidator.cs
- XmlCharCheckingReader.cs
- MetadataUtil.cs
- XmlChoiceIdentifierAttribute.cs
- StringUtil.cs
- WorkerRequest.cs
- SerializableAttribute.cs
- Vector3D.cs
- SessionState.cs
- ToolStripKeyboardHandlingService.cs
- ImageAutomationPeer.cs
- DiagnosticsElement.cs
- RubberbandSelector.cs
- COM2ExtendedBrowsingHandler.cs
- cookiecollection.cs
- FreezableOperations.cs
- WinEventQueueItem.cs
- OracleColumn.cs
- ThrowHelper.cs
- ACL.cs
- MoveSizeWinEventHandler.cs
- InvokeBase.cs
- HttpModulesInstallComponent.cs
- DirectoryLocalQuery.cs
- FormViewActionList.cs
- XmlAttributes.cs
- MarkupProperty.cs
- DecimalStorage.cs
- PackageDigitalSignature.cs
- WsdlParser.cs
- TextTrailingCharacterEllipsis.cs
- WindowsTokenRoleProvider.cs
- ChangeNode.cs
- ExpressionBuilder.cs
- TransformerInfo.cs
- PathParser.cs
- PtsHost.cs
- XmlDataImplementation.cs
- DesignerAttribute.cs
- DataRowChangeEvent.cs
- OneWayChannelFactory.cs
- Queue.cs
- HttpProfileBase.cs
- Attributes.cs
- ChangeInterceptorAttribute.cs
- AssemblyBuilder.cs
- MarginsConverter.cs
- EntityTypeEmitter.cs
- X509Chain.cs
- CqlErrorHelper.cs
- ContextMarshalException.cs
- FloaterBaseParaClient.cs
- Console.cs
- ArgumentException.cs
- DataRowComparer.cs
- DbModificationCommandTree.cs
- SmiEventSink_DeferedProcessing.cs
- MonthChangedEventArgs.cs
- BooleanAnimationUsingKeyFrames.cs
- TypeAccessException.cs
- FixUpCollection.cs
- _HTTPDateParse.cs
- SqlErrorCollection.cs
- Int32Storage.cs
- IImplicitResourceProvider.cs
- ToolboxCategory.cs
- SystemIPAddressInformation.cs
- HighContrastHelper.cs
- OperationResponse.cs
- DataGridViewComboBoxCell.cs
- BinaryVersion.cs
- CompModSwitches.cs
- HttpContextServiceHost.cs
- BindingBase.cs
- ReaderContextStackData.cs