Code:
/ 4.0 / 4.0 / 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.
//----------------------------------------------------------------------
//
// 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
- FreezableOperations.cs
- RuntimeResourceSet.cs
- HttpPostClientProtocol.cs
- WrapPanel.cs
- UmAlQuraCalendar.cs
- OciEnlistContext.cs
- ColorDialog.cs
- ValidationHelpers.cs
- RestClientProxyHandler.cs
- InstanceDataCollectionCollection.cs
- CellTreeNode.cs
- PeerInvitationResponse.cs
- TimerElapsedEvenArgs.cs
- StateBag.cs
- ResXBuildProvider.cs
- InternalDispatchObject.cs
- CachingHintValidation.cs
- WaitHandle.cs
- DefaultEvaluationContext.cs
- NetNamedPipeBindingElement.cs
- CardSpaceSelector.cs
- BindingManagerDataErrorEventArgs.cs
- XsdCachingReader.cs
- TrustSection.cs
- SqlDependency.cs
- PrimitiveCodeDomSerializer.cs
- Menu.cs
- CodeDirectoryCompiler.cs
- KeyInstance.cs
- ToolboxBitmapAttribute.cs
- PerformanceCounterPermission.cs
- ConnectionDemuxer.cs
- SchemaCollectionCompiler.cs
- WebPartZoneBase.cs
- PerfService.cs
- DataPagerFieldCommandEventArgs.cs
- ZipIOCentralDirectoryBlock.cs
- XPathScanner.cs
- ExpressionDumper.cs
- ReadingWritingEntityEventArgs.cs
- TypeConverterMarkupExtension.cs
- AffineTransform3D.cs
- ContainerAction.cs
- Wildcard.cs
- BlockExpression.cs
- Encoder.cs
- ConvertEvent.cs
- DependencyPropertyHelper.cs
- autovalidator.cs
- ToolTipService.cs
- ContentPlaceHolder.cs
- wgx_exports.cs
- TemplateColumn.cs
- ContainerControl.cs
- mediapermission.cs
- RuntimeConfigurationRecord.cs
- ReadOnlyDictionary.cs
- XmlSubtreeReader.cs
- ProviderCommandInfoUtils.cs
- PrimitiveType.cs
- Compilation.cs
- WebBrowserPermission.cs
- XmlEventCache.cs
- CodeTypeReference.cs
- ParseNumbers.cs
- ImageClickEventArgs.cs
- HttpContext.cs
- ResumeStoryboard.cs
- Triangle.cs
- ObjectNavigationPropertyMapping.cs
- StyleSheet.cs
- RectangleConverter.cs
- SoapRpcMethodAttribute.cs
- StylusDownEventArgs.cs
- ConnectionInterfaceCollection.cs
- WindowCollection.cs
- base64Transforms.cs
- EdmComplexPropertyAttribute.cs
- ListControlDesigner.cs
- SystemIcons.cs
- TypeDelegator.cs
- TimeIntervalCollection.cs
- StrongNameMembershipCondition.cs
- AttachedAnnotation.cs
- RegistryKey.cs
- PersonalizationProviderHelper.cs
- QueryLifecycle.cs
- DataServices.cs
- PenContexts.cs
- SoapElementAttribute.cs
- DiscardableAttribute.cs
- ProxyWebPartManager.cs
- ConfigXmlText.cs
- DetailsViewDeletedEventArgs.cs
- ResXDataNode.cs
- CopyEncoder.cs
- Statements.cs
- Size3DConverter.cs
- CharAnimationUsingKeyFrames.cs
- Send.cs