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
- DataGridCaption.cs
- WebPartCatalogCloseVerb.cs
- BoundPropertyEntry.cs
- BuildProviderCollection.cs
- Listbox.cs
- Stack.cs
- OperationAbortedException.cs
- CodeTypeParameterCollection.cs
- SingleStorage.cs
- VarInfo.cs
- Collection.cs
- Pool.cs
- ImageAutomationPeer.cs
- CharacterString.cs
- FileSystemEventArgs.cs
- Duration.cs
- BaseTemplateParser.cs
- ImageInfo.cs
- TerminateSequence.cs
- OracleException.cs
- SmtpException.cs
- GeometryHitTestParameters.cs
- PropertyChangedEventArgs.cs
- Visual3DCollection.cs
- CompositionAdorner.cs
- OracleBoolean.cs
- COM2IProvidePropertyBuilderHandler.cs
- GridSplitter.cs
- BlobPersonalizationState.cs
- SettingsBindableAttribute.cs
- DataServiceSaveChangesEventArgs.cs
- HtmlElementErrorEventArgs.cs
- StringHandle.cs
- Margins.cs
- XamlTypeMapper.cs
- DrawingServices.cs
- DynamicControl.cs
- FlowDecisionDesigner.xaml.cs
- XmlSchemaComplexType.cs
- ADMembershipUser.cs
- FamilyTypeface.cs
- XamlTypeMapper.cs
- GridViewDeleteEventArgs.cs
- LinqDataView.cs
- DataGridViewComboBoxCell.cs
- BufferedResponseStream.cs
- ReturnValue.cs
- DataFormat.cs
- PropertyChangedEventArgs.cs
- ProgressChangedEventArgs.cs
- DataGridViewButtonColumn.cs
- DataErrorValidationRule.cs
- WindowsGraphicsWrapper.cs
- SchemaRegistration.cs
- HttpException.cs
- HttpCapabilitiesSectionHandler.cs
- SqlTrackingQuery.cs
- StylusPointPropertyInfoDefaults.cs
- RoleManagerEventArgs.cs
- IndexedGlyphRun.cs
- StorageInfo.cs
- FindCriteriaCD1.cs
- recordstatefactory.cs
- CanonicalizationDriver.cs
- TransformValueSerializer.cs
- UpdatePanelControlTrigger.cs
- UrlPropertyAttribute.cs
- PathNode.cs
- WebPartPersonalization.cs
- LocatorGroup.cs
- WorkflowInstanceProxy.cs
- FontStyles.cs
- ResXResourceSet.cs
- RegisterResponseInfo.cs
- TreeChangeInfo.cs
- FilteredAttributeCollection.cs
- CommonDialog.cs
- XmlTypeMapping.cs
- SEHException.cs
- TableRow.cs
- TreeNodeBindingCollection.cs
- ByteStorage.cs
- EmptyEnumerable.cs
- Page.cs
- ALinqExpressionVisitor.cs
- Vector3D.cs
- ListBindingConverter.cs
- EnumType.cs
- AccessControlEntry.cs
- NativeWindow.cs
- Transform3D.cs
- RC2.cs
- IntSecurity.cs
- ImageFormatConverter.cs
- CompoundFileStorageReference.cs
- ProtocolsSection.cs
- MessageEnumerator.cs
- TemplateControlParser.cs
- Utils.cs
- ZipArchive.cs