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
- MailMessage.cs
- AbsoluteQuery.cs
- ToolboxItemCollection.cs
- ProxyGenerator.cs
- MessageAction.cs
- EdmFunctions.cs
- ComponentManagerBroker.cs
- OleDbRowUpdatedEvent.cs
- ChannelCacheSettings.cs
- StylusPointPropertyInfo.cs
- TextRangeEditLists.cs
- SqlGatherConsumedAliases.cs
- BitmapImage.cs
- DataPagerFieldCollection.cs
- HotSpot.cs
- StylusDevice.cs
- EventArgs.cs
- AutoSizeComboBox.cs
- InstanceDataCollection.cs
- GroupDescription.cs
- InteropAutomationProvider.cs
- SystemInformation.cs
- GuidTagList.cs
- SocketException.cs
- CompilationUtil.cs
- RegionInfo.cs
- StylusPointPropertyInfoDefaults.cs
- MailWebEventProvider.cs
- ColorIndependentAnimationStorage.cs
- ImpersonateTokenRef.cs
- CfgArc.cs
- TextAnchor.cs
- DbParameterHelper.cs
- WhitespaceRuleLookup.cs
- StylusPlugInCollection.cs
- OutputCacheEntry.cs
- FileDialog_Vista.cs
- BaseAsyncResult.cs
- BooleanConverter.cs
- XmlAttributeCache.cs
- QueryableDataSource.cs
- ACE.cs
- JsonUriDataContract.cs
- WrappedDispatcherException.cs
- ServiceDeploymentInfo.cs
- GridLength.cs
- ObjectDataSourceEventArgs.cs
- InvalidDataException.cs
- PartialCachingAttribute.cs
- ToolStripPanelRow.cs
- UserValidatedEventArgs.cs
- CodeSubDirectory.cs
- SystemTcpStatistics.cs
- DaylightTime.cs
- WebServiceErrorEvent.cs
- XmlDataCollection.cs
- JsonSerializer.cs
- Operators.cs
- SafeThreadHandle.cs
- DetailsViewPageEventArgs.cs
- IPipelineRuntime.cs
- PrintPreviewControl.cs
- XPathSingletonIterator.cs
- AccessKeyManager.cs
- TableDesigner.cs
- DataGridComboBoxColumn.cs
- MsmqInputMessagePool.cs
- XPathChildIterator.cs
- DocumentPage.cs
- DtdParser.cs
- WindowsComboBox.cs
- QilTypeChecker.cs
- SqlNotificationRequest.cs
- EdmConstants.cs
- ExtenderControl.cs
- TextEncodedRawTextWriter.cs
- DataColumnCollection.cs
- ToolStripPanelRow.cs
- TypeInfo.cs
- XmlSchemaType.cs
- Annotation.cs
- ForwardPositionQuery.cs
- FixUpCollection.cs
- TextSpanModifier.cs
- ArrangedElementCollection.cs
- FontConverter.cs
- InvalidCastException.cs
- DiscoveryClientProtocol.cs
- FastEncoderWindow.cs
- EmbeddedMailObject.cs
- Converter.cs
- ReplyAdapterChannelListener.cs
- tibetanshape.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- basecomparevalidator.cs
- StylusPointProperties.cs
- MatrixTransform.cs
- DbXmlEnabledProviderManifest.cs
- ProtocolsConfigurationHandler.cs
- XmlAttributes.cs