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
- TreeView.cs
- ProtocolImporter.cs
- EncoderNLS.cs
- VersionedStreamOwner.cs
- DateTimeEditor.cs
- WorkflowMarkupSerializer.cs
- FontSourceCollection.cs
- Site.cs
- TextBoxBase.cs
- ToolStripDropDown.cs
- Rfc4050KeyFormatter.cs
- ToolStripDropDownButton.cs
- TypeToken.cs
- IntellisenseTextBox.cs
- ListItemsPage.cs
- HMACMD5.cs
- WinFormsSecurity.cs
- DynamicAttribute.cs
- ArithmeticException.cs
- FileSystemEventArgs.cs
- ISSmlParser.cs
- ServiceDescriptionImporter.cs
- NotifyIcon.cs
- WriteTimeStream.cs
- ChtmlTextWriter.cs
- ChannelToken.cs
- GridViewRow.cs
- SymmetricKeyWrap.cs
- GetParentChain.cs
- BitmapMetadata.cs
- TextProperties.cs
- PropertyGridView.cs
- CustomCategoryAttribute.cs
- MessageQueue.cs
- WinFormsComponentEditor.cs
- XsltQilFactory.cs
- AffineTransform3D.cs
- Parameter.cs
- RectAnimationBase.cs
- SiteMapHierarchicalDataSourceView.cs
- SqlUtil.cs
- ColumnPropertiesGroup.cs
- SafePEFileHandle.cs
- RecordsAffectedEventArgs.cs
- ColumnWidthChangingEvent.cs
- Menu.cs
- ConfigXmlComment.cs
- BamlTreeMap.cs
- Base64Encoder.cs
- MetadataItemSerializer.cs
- WebPartExportVerb.cs
- XsdDateTime.cs
- MemberMemberBinding.cs
- TextElement.cs
- QueryCursorEventArgs.cs
- ToolStripComboBox.cs
- HandleRef.cs
- WorkflowEventArgs.cs
- DecimalAnimationBase.cs
- CompilerError.cs
- returneventsaver.cs
- RegexStringValidatorAttribute.cs
- SqlMultiplexer.cs
- InputMethodStateTypeInfo.cs
- TemplateEditingService.cs
- ObjectList.cs
- SystemGatewayIPAddressInformation.cs
- BitmapEffectRenderDataResource.cs
- CheckableControlBaseAdapter.cs
- ThicknessKeyFrameCollection.cs
- AnnotationService.cs
- CompositeScriptReference.cs
- TextEndOfLine.cs
- ImageAutomationPeer.cs
- WebPartZone.cs
- InstanceLockTracking.cs
- CommonDialog.cs
- PnrpPeerResolverBindingElement.cs
- PersonalizationStateInfo.cs
- MultiBindingExpression.cs
- ExpressionParser.cs
- ArrayTypeMismatchException.cs
- UpdatePanel.cs
- AuthorizationRule.cs
- ImageCollectionCodeDomSerializer.cs
- Token.cs
- ModifierKeysConverter.cs
- RequestCacheValidator.cs
- RightsController.cs
- SelectedDatesCollection.cs
- TraceLevelStore.cs
- MetafileHeader.cs
- HijriCalendar.cs
- FormClosingEvent.cs
- RegistrySecurity.cs
- OneOfTypeConst.cs
- Stylus.cs
- HostingEnvironmentWrapper.cs
- TriggerCollection.cs
- TextTreeExtractElementUndoUnit.cs