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 / 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
- ImmutableObjectAttribute.cs
- HtmlInputHidden.cs
- OleStrCAMarshaler.cs
- ToggleButton.cs
- srgsitem.cs
- ParagraphVisual.cs
- WindowProviderWrapper.cs
- XsltException.cs
- SiteMapHierarchicalDataSourceView.cs
- HostingPreferredMapPath.cs
- DtrList.cs
- IFlowDocumentViewer.cs
- XmlLinkedNode.cs
- CustomValidator.cs
- Accessible.cs
- SettingsAttributes.cs
- AnimatedTypeHelpers.cs
- IdentitySection.cs
- EntityContainerEntitySet.cs
- SqlInfoMessageEvent.cs
- CachedFontFamily.cs
- ContextToken.cs
- QueryContinueDragEventArgs.cs
- MenuScrollingVisibilityConverter.cs
- TraceContextRecord.cs
- CopyAttributesAction.cs
- AssemblyInfo.cs
- SiteMapDataSourceView.cs
- Matrix3D.cs
- FeatureSupport.cs
- TriState.cs
- TCPClient.cs
- SqlInfoMessageEvent.cs
- EqualityArray.cs
- Header.cs
- ProviderBase.cs
- OdbcException.cs
- BamlResourceContent.cs
- WebPartConnectVerb.cs
- RijndaelManagedTransform.cs
- Mutex.cs
- PermissionSetEnumerator.cs
- RoleService.cs
- CacheAxisQuery.cs
- MissingFieldException.cs
- ErrorStyle.cs
- GeneralTransform3DTo2D.cs
- URL.cs
- SoapParser.cs
- ImageListStreamer.cs
- AudienceUriMode.cs
- LocalValueEnumerator.cs
- Monitor.cs
- SessionStateModule.cs
- MTConfigUtil.cs
- GenericEnumerator.cs
- DocumentGridContextMenu.cs
- ComplexObject.cs
- GeneralTransform.cs
- LocalServiceSecuritySettingsElement.cs
- TableItemPatternIdentifiers.cs
- SafeArchiveContext.cs
- figurelengthconverter.cs
- NamespaceEmitter.cs
- _HeaderInfo.cs
- IndexerNameAttribute.cs
- SiteMembershipCondition.cs
- CommentEmitter.cs
- SimpleHandlerBuildProvider.cs
- BulletDecorator.cs
- _ListenerRequestStream.cs
- FlowNode.cs
- CurrentTimeZone.cs
- StoreUtilities.cs
- ForceCopyBuildProvider.cs
- EntityDataSourceDataSelection.cs
- EncoderReplacementFallback.cs
- GestureRecognizer.cs
- EditingMode.cs
- ServicePointManager.cs
- AsyncCompletedEventArgs.cs
- StandardTransformFactory.cs
- TransformPatternIdentifiers.cs
- IpcServerChannel.cs
- BindingMemberInfo.cs
- BitmapCodecInfoInternal.cs
- JournalNavigationScope.cs
- EmulateRecognizeCompletedEventArgs.cs
- PowerModeChangedEventArgs.cs
- NullableDoubleSumAggregationOperator.cs
- Utilities.cs
- SeverityFilter.cs
- StoreContentChangedEventArgs.cs
- AttributeQuery.cs
- XmlTextReaderImpl.cs
- HebrewNumber.cs
- SID.cs
- Transform.cs
- WebMessageEncoderFactory.cs
- TransformGroup.cs