Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / EntitySet.cs / 1 / EntitySet.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....], [....]
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
namespace System.Data.Metadata.Edm
{
///
/// concrete Class for representing a entity set
///
public class EntitySet : EntitySetBase
{
#region Constructors
///
/// The constructor for constructing the EntitySet with a given name and an entity type
///
/// The name of the EntitySet
/// 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 EntitySet(string name, string schema, string table, string definingQuery, EntityType entityType)
: base(name, schema, table, definingQuery, entityType)
{
}
#endregion
#region Properties
///
/// Returns the kind of the type
///
public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.EntitySet; } }
///
/// Gets/Sets the entity type of this entity set
///
public new EntityType ElementType
{
get
{
return (EntityType)base.ElementType;
}
}
#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.Text;
using System.Diagnostics;
namespace System.Data.Metadata.Edm
{
///
/// concrete Class for representing a entity set
///
public class EntitySet : EntitySetBase
{
#region Constructors
///
/// The constructor for constructing the EntitySet with a given name and an entity type
///
/// The name of the EntitySet
/// 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 EntitySet(string name, string schema, string table, string definingQuery, EntityType entityType)
: base(name, schema, table, definingQuery, entityType)
{
}
#endregion
#region Properties
///
/// Returns the kind of the type
///
public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.EntitySet; } }
///
/// Gets/Sets the entity type of this entity set
///
public new EntityType ElementType
{
get
{
return (EntityType)base.ElementType;
}
}
#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
- XmlUtf8RawTextWriter.cs
- ExternalException.cs
- panel.cs
- ControlFilterExpression.cs
- SrgsGrammarCompiler.cs
- EntitySetDataBindingList.cs
- FileChangesMonitor.cs
- shaper.cs
- NamedPipeWorkerProcess.cs
- TraceSwitch.cs
- SubMenuStyle.cs
- IndexOutOfRangeException.cs
- QueryContinueDragEvent.cs
- WindowsImpersonationContext.cs
- HebrewCalendar.cs
- AttachedPropertyDescriptor.cs
- ImageClickEventArgs.cs
- SystemUdpStatistics.cs
- CoTaskMemUnicodeSafeHandle.cs
- Win32.cs
- MatrixAnimationBase.cs
- WrappedIUnknown.cs
- MediaPlayer.cs
- InkSerializer.cs
- PreservationFileReader.cs
- OdbcException.cs
- CalendarDayButton.cs
- SQLResource.cs
- SoapIgnoreAttribute.cs
- WebPartAddingEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- ListBox.cs
- HttpDebugHandler.cs
- TextBoxRenderer.cs
- PathFigureCollection.cs
- _ListenerAsyncResult.cs
- LocalValueEnumerator.cs
- Itemizer.cs
- MenuItemAutomationPeer.cs
- ByteAnimationBase.cs
- BookmarkResumptionRecord.cs
- DataControlFieldCollection.cs
- Model3D.cs
- LinkButton.cs
- NonParentingControl.cs
- DataTemplate.cs
- SpecularMaterial.cs
- UshortList2.cs
- InternalConfigSettingsFactory.cs
- ShaperBuffers.cs
- FlowStep.cs
- WindowsFormsSynchronizationContext.cs
- DbConnectionInternal.cs
- CodeArgumentReferenceExpression.cs
- ComponentCollection.cs
- RichTextBoxContextMenu.cs
- ClientScriptItem.cs
- ApplicationException.cs
- DataRowView.cs
- XmlSchemaComplexContentRestriction.cs
- PeerNameRegistration.cs
- wmiprovider.cs
- DependencyPropertyKey.cs
- TransactionManager.cs
- XPathConvert.cs
- StreamResourceInfo.cs
- ToolboxItemAttribute.cs
- HandlerFactoryCache.cs
- DbConnectionStringCommon.cs
- TextBlockAutomationPeer.cs
- PermissionAttributes.cs
- ResolveMatchesCD1.cs
- XpsS0ValidatingLoader.cs
- ToolStripKeyboardHandlingService.cs
- StrokeCollectionDefaultValueFactory.cs
- TreeNodeStyleCollection.cs
- DataGridViewTextBoxColumn.cs
- OlePropertyStructs.cs
- XmlWrappingReader.cs
- BamlTreeNode.cs
- Roles.cs
- ParallelTimeline.cs
- XPathAxisIterator.cs
- WindowsTooltip.cs
- ToolStripTemplateNode.cs
- RegexCapture.cs
- ProxyWebPartManagerDesigner.cs
- OleCmdHelper.cs
- NetNamedPipeBinding.cs
- CounterSampleCalculator.cs
- FileLoadException.cs
- TreeWalkHelper.cs
- Point.cs
- CodeAccessPermission.cs
- DbException.cs
- TextRunCacheImp.cs
- InvalidComObjectException.cs
- FragmentQuery.cs
- CacheDependency.cs
- RuntimeConfigLKG.cs