Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / Binding / DataServiceEntityAttribute.cs / 1305376 / DataServiceEntityAttribute.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// EntitySetAttribute class
//
//
//---------------------------------------------------------------------
namespace System.Data.Services.Common
{
///
/// This attribute allows users to specify an entity set name with a client type.
///
///
/// This attribute is generated only when there is one entity set associated with the type.
/// When there are more than one entity set associated with the type, then the entity set
/// name can be passed in through the EntitySetNameResolver event.
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class EntitySetAttribute : System.Attribute
{
///
/// The entity set name.
///
private readonly string entitySet;
///
/// Construct a EntitySetAttribute
///
/// The entity set name.
public EntitySetAttribute(string entitySet)
{
this.entitySet = entitySet;
}
///
/// The entity set name.
///
public string EntitySet
{
get
{
return this.entitySet;
}
}
}
}
// 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
- IdentifierCreationService.cs
- FontCollection.cs
- altserialization.cs
- figurelength.cs
- TextSelection.cs
- MailBnfHelper.cs
- TimeEnumHelper.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- GacUtil.cs
- RayMeshGeometry3DHitTestResult.cs
- WriteFileContext.cs
- DispatcherExceptionFilterEventArgs.cs
- RootBrowserWindow.cs
- UnsafeNativeMethods.cs
- DrawingContextDrawingContextWalker.cs
- XmlNode.cs
- EventProviderTraceListener.cs
- ProcessThreadCollection.cs
- SQLSingle.cs
- MimeMultiPart.cs
- TableRow.cs
- FlowDocumentPageViewerAutomationPeer.cs
- updatecommandorderer.cs
- DataMemberConverter.cs
- ImageSourceConverter.cs
- columnmapkeybuilder.cs
- NamespaceDecl.cs
- SevenBitStream.cs
- SchemaNotation.cs
- MsmqChannelFactory.cs
- InvalidCommandTreeException.cs
- IDReferencePropertyAttribute.cs
- SyndicationDeserializer.cs
- ASCIIEncoding.cs
- DataGridLength.cs
- ModifiableIteratorCollection.cs
- StreamWriter.cs
- CriticalHandle.cs
- NullableIntAverageAggregationOperator.cs
- XamlTypeMapper.cs
- Utils.cs
- DateTimeParse.cs
- CodeDirectoryCompiler.cs
- StringExpressionSet.cs
- Utilities.cs
- MimeReflector.cs
- SystemIdentity.cs
- smtppermission.cs
- FacetValueContainer.cs
- MimeParameterWriter.cs
- ViewKeyConstraint.cs
- ImageMap.cs
- HeaderCollection.cs
- MsmqReceiveHelper.cs
- WinFormsSecurity.cs
- ButtonChrome.cs
- RegexMatch.cs
- DrawingAttributes.cs
- HotSpotCollection.cs
- RequiredAttributeAttribute.cs
- DecimalAnimationBase.cs
- CachingHintValidation.cs
- ButtonFieldBase.cs
- OpenFileDialog.cs
- FixedPage.cs
- XmlSerializerSection.cs
- ScopedKnownTypes.cs
- IgnoreSectionHandler.cs
- UniqueID.cs
- DriveInfo.cs
- XmlObjectSerializer.cs
- WindowsContainer.cs
- DomNameTable.cs
- ElementUtil.cs
- ServiceModelSectionGroup.cs
- LinqDataSourceEditData.cs
- HebrewNumber.cs
- KeyManager.cs
- RC2.cs
- GcHandle.cs
- PopOutPanel.cs
- AttachmentService.cs
- ModelUIElement3D.cs
- ObjectTypeMapping.cs
- _Events.cs
- SafeMILHandleMemoryPressure.cs
- QueryReaderSettings.cs
- Helpers.cs
- X500Name.cs
- CaseCqlBlock.cs
- CustomValidator.cs
- TextEditorTyping.cs
- XmlHelper.cs
- GPStream.cs
- EmptyStringExpandableObjectConverter.cs
- DataSourceDescriptorCollection.cs
- Paragraph.cs
- ETagAttribute.cs
- DecoratedNameAttribute.cs
- FileInfo.cs