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
- ProgressBarAutomationPeer.cs
- SafeLibraryHandle.cs
- RequestQueue.cs
- securitycriticaldataformultiplegetandset.cs
- RegionInfo.cs
- basemetadatamappingvisitor.cs
- HttpClientCertificate.cs
- DataPagerField.cs
- HttpListenerRequestUriBuilder.cs
- ProfessionalColorTable.cs
- PasswordDeriveBytes.cs
- ImageSource.cs
- CodeTypeDeclarationCollection.cs
- IDispatchConstantAttribute.cs
- BrowserDefinition.cs
- FormCollection.cs
- baseaxisquery.cs
- ApplyTemplatesAction.cs
- ProfilePropertySettings.cs
- InvalidOperationException.cs
- ListSourceHelper.cs
- SignatureResourcePool.cs
- ToolStripOverflowButton.cs
- AccessDataSource.cs
- TextRange.cs
- TraceSection.cs
- DataPointer.cs
- TagPrefixAttribute.cs
- DeferredReference.cs
- ObjectDataSourceMethodEventArgs.cs
- EventLogInternal.cs
- TemplateField.cs
- UrlParameterWriter.cs
- DataGridViewLayoutData.cs
- DataSvcMapFileSerializer.cs
- ThrowOnMultipleAssignment.cs
- ClientSession.cs
- GridViewItemAutomationPeer.cs
- SqlProvider.cs
- OdbcConnectionPoolProviderInfo.cs
- SmiRequestExecutor.cs
- HttpApplication.cs
- WaitHandle.cs
- SectionUpdates.cs
- SQLCharsStorage.cs
- HtmlAnchor.cs
- PageVisual.cs
- PageContentAsyncResult.cs
- HandledMouseEvent.cs
- MemberCollection.cs
- SurrogateEncoder.cs
- MSG.cs
- MediaElementAutomationPeer.cs
- DataRowChangeEvent.cs
- MailAddressCollection.cs
- dbenumerator.cs
- WebExceptionStatus.cs
- PrintSchema.cs
- DataTableMappingCollection.cs
- ValidateNames.cs
- ToolTipService.cs
- ReadOnlyDataSource.cs
- IpcServerChannel.cs
- DbTransaction.cs
- QilTernary.cs
- ComboBoxAutomationPeer.cs
- MultiViewDesigner.cs
- NamespaceEmitter.cs
- UrlPath.cs
- PropertyEntry.cs
- ActiveDocumentEvent.cs
- BorderGapMaskConverter.cs
- Substitution.cs
- GridViewColumn.cs
- Stylesheet.cs
- DataGridViewColumnCollectionDialog.cs
- Compress.cs
- SqlCommand.cs
- SpStreamWrapper.cs
- DictionaryGlobals.cs
- SqlColumnizer.cs
- AmbientLight.cs
- BaseCodeDomTreeGenerator.cs
- EventLogPropertySelector.cs
- PointF.cs
- TextMarkerSource.cs
- DbConnectionPoolGroupProviderInfo.cs
- ThreadStartException.cs
- TextTreeTextElementNode.cs
- CodeSnippetTypeMember.cs
- EncryptedType.cs
- Missing.cs
- PolygonHotSpot.cs
- CreateUserWizardAutoFormat.cs
- AutomationPatternInfo.cs
- SqlDataSourceEnumerator.cs
- DataView.cs
- SafeNativeMethods.cs
- CultureInfo.cs
- InfoCardArgumentException.cs