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
- DesignerTextViewAdapter.cs
- FrameworkElement.cs
- ErrorLog.cs
- StoreItemCollection.Loader.cs
- CatalogPart.cs
- UITypeEditor.cs
- CmsInterop.cs
- _BaseOverlappedAsyncResult.cs
- StickyNoteHelper.cs
- BaseCollection.cs
- SelectiveScrollingGrid.cs
- SmtpLoginAuthenticationModule.cs
- basevalidator.cs
- COM2Enum.cs
- SatelliteContractVersionAttribute.cs
- odbcmetadatacolumnnames.cs
- WebUtil.cs
- StateItem.cs
- DbParameterCollectionHelper.cs
- StrongTypingException.cs
- MetafileEditor.cs
- Matrix.cs
- ToolStripDropDownDesigner.cs
- cookie.cs
- SizeF.cs
- RtfFormatStack.cs
- TextAction.cs
- KeyGestureConverter.cs
- ClosureBinding.cs
- Int32Rect.cs
- XmlSecureResolver.cs
- DBBindings.cs
- HttpValueCollection.cs
- EdmComplexPropertyAttribute.cs
- ToolStripPanel.cs
- XhtmlBasicLabelAdapter.cs
- SQLRoleProvider.cs
- UpdatePanelControlTrigger.cs
- WindowsContainer.cs
- CssTextWriter.cs
- IsolatedStorageFile.cs
- RouteTable.cs
- UIElementCollection.cs
- PointUtil.cs
- WebDisplayNameAttribute.cs
- SSmlParser.cs
- Simplifier.cs
- OutputCacheSettings.cs
- XPathNavigatorReader.cs
- DataColumnMappingCollection.cs
- Zone.cs
- SortFieldComparer.cs
- TypeInitializationException.cs
- DataGridViewCellValueEventArgs.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ServiceOperationParameter.cs
- Logging.cs
- Win32.cs
- WebConfigurationFileMap.cs
- BuildResult.cs
- TextDataBindingHandler.cs
- HttpProfileGroupBase.cs
- MD5Cng.cs
- Zone.cs
- SHA512CryptoServiceProvider.cs
- ExpressionBindingsDialog.cs
- ExceptionHelpers.cs
- RowType.cs
- StandardToolWindows.cs
- CultureInfoConverter.cs
- KnownAssemblyEntry.cs
- ControlTemplate.cs
- AutoCompleteStringCollection.cs
- XmlStreamNodeWriter.cs
- ObjectDisposedException.cs
- EntityProviderFactory.cs
- TrackBarRenderer.cs
- ServicePointManager.cs
- UnmanagedMemoryStream.cs
- DataRowCollection.cs
- TrackingStringDictionary.cs
- NeutralResourcesLanguageAttribute.cs
- TableLayoutCellPaintEventArgs.cs
- BitmapEffectState.cs
- SmiTypedGetterSetter.cs
- Mutex.cs
- DbConvert.cs
- QilTernary.cs
- SapiRecognizer.cs
- IriParsingElement.cs
- SolidBrush.cs
- Semaphore.cs
- ProcessHostServerConfig.cs
- XmlMapping.cs
- CngAlgorithm.cs
- MsmqChannelFactoryBase.cs
- AddInControllerImpl.cs
- Translator.cs
- Int16.cs
- WindowInteractionStateTracker.cs