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
- SqlRemoveConstantOrderBy.cs
- DocumentOutline.cs
- DelimitedListTraceListener.cs
- DrawingAttributeSerializer.cs
- DesignerRegionMouseEventArgs.cs
- ToolStripSystemRenderer.cs
- WebPartAuthorizationEventArgs.cs
- ScopeCollection.cs
- WrappedIUnknown.cs
- XmlSchemaComplexContent.cs
- EnumConverter.cs
- GridViewHeaderRowPresenter.cs
- ClientFormsAuthenticationCredentials.cs
- SystemColorTracker.cs
- ColumnMapVisitor.cs
- XmlParserContext.cs
- FormViewModeEventArgs.cs
- ListViewSelectEventArgs.cs
- ApplyImportsAction.cs
- COM2PictureConverter.cs
- InputScopeConverter.cs
- MessagePropertyFilter.cs
- SelectionHighlightInfo.cs
- Point3DIndependentAnimationStorage.cs
- FontInfo.cs
- InfoCardUIAgent.cs
- AppliedDeviceFiltersEditor.cs
- WebPartDisplayModeCollection.cs
- CodeGroup.cs
- EditorZoneAutoFormat.cs
- BatchServiceHost.cs
- COM2Enum.cs
- ObjectAnimationUsingKeyFrames.cs
- SvcMapFile.cs
- XdrBuilder.cs
- TextTreeNode.cs
- DataSetMappper.cs
- TypedReference.cs
- XmlTypeMapping.cs
- MetadataArtifactLoaderCompositeFile.cs
- CheckBoxBaseAdapter.cs
- DataGridParentRows.cs
- GifBitmapEncoder.cs
- ChildChangedEventArgs.cs
- XMLSchema.cs
- MembershipPasswordException.cs
- Route.cs
- WpfGeneratedKnownTypes.cs
- XmlHierarchicalEnumerable.cs
- SamlSecurityTokenAuthenticator.cs
- EntityKeyElement.cs
- WebControlsSection.cs
- StringArrayConverter.cs
- DataGridViewDataErrorEventArgs.cs
- GlobalizationSection.cs
- SerializationSectionGroup.cs
- FixedSOMFixedBlock.cs
- ClockController.cs
- IISUnsafeMethods.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- EnvelopedPkcs7.cs
- SingleObjectCollection.cs
- MinimizableAttributeTypeConverter.cs
- LineServicesRun.cs
- DbParameterHelper.cs
- DrawingGroup.cs
- HttpPostedFile.cs
- PKCS1MaskGenerationMethod.cs
- DynamicMethod.cs
- DataGridViewAdvancedBorderStyle.cs
- SequenceNumber.cs
- loginstatus.cs
- PathNode.cs
- DataServiceRequestOfT.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- DCSafeHandle.cs
- CompareInfo.cs
- HttpServerVarsCollection.cs
- EnumType.cs
- Bold.cs
- FixedElement.cs
- XmlSchemaRedefine.cs
- ResourceCollectionInfo.cs
- IChannel.cs
- ContextMenuStripActionList.cs
- Rect3D.cs
- TypeDescriptionProvider.cs
- ExecutionEngineException.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- ListViewUpdatedEventArgs.cs
- CodeFieldReferenceExpression.cs
- ExpanderAutomationPeer.cs
- RegexEditorDialog.cs
- ListViewItemEventArgs.cs
- CheckPair.cs
- ComboBoxRenderer.cs
- ComplexPropertyEntry.cs
- BufferedWebEventProvider.cs
- IsolatedStorageSecurityState.cs
- WriterOutput.cs