//---------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner Microsoft
// @backupOwner Microsoft
//---------------------------------------------------------------------
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
}
}