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
- DbConnectionInternal.cs
- RefreshPropertiesAttribute.cs
- DataGridViewRow.cs
- RelationshipEnd.cs
- CodeTypeDeclaration.cs
- DbConnectionOptions.cs
- TextTreeTextBlock.cs
- ListViewGroupConverter.cs
- PrtCap_Public_Simple.cs
- EFDataModelProvider.cs
- BeginEvent.cs
- ComponentResourceKeyConverter.cs
- ConstraintCollection.cs
- DataSourceCache.cs
- FrameworkName.cs
- ErrorFormatterPage.cs
- XPathSelectionIterator.cs
- ObjectStateFormatter.cs
- SortDescriptionCollection.cs
- CharacterMetrics.cs
- SettingsSavedEventArgs.cs
- SoapElementAttribute.cs
- TableLayoutStyleCollection.cs
- StreamWithDictionary.cs
- DocumentXmlWriter.cs
- CommandID.cs
- ParallelTimeline.cs
- XmlSignatureProperties.cs
- SemanticValue.cs
- QilName.cs
- ToolboxComponentsCreatingEventArgs.cs
- HtmlEncodedRawTextWriter.cs
- RoutedUICommand.cs
- ToolStripScrollButton.cs
- PtsHost.cs
- Point3DAnimation.cs
- MenuStrip.cs
- AuthorizationPolicyTypeElementCollection.cs
- CompilerCollection.cs
- ApplicationInfo.cs
- ConsumerConnectionPoint.cs
- NotSupportedException.cs
- TimeoutStream.cs
- COM2Enum.cs
- MobileControlDesigner.cs
- TransformProviderWrapper.cs
- ClientSideQueueItem.cs
- EnglishPluralizationService.cs
- SocketInformation.cs
- ChannelBinding.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- MultipleViewProviderWrapper.cs
- EventHandlersStore.cs
- ResXResourceWriter.cs
- BitmapScalingModeValidation.cs
- SafeProcessHandle.cs
- BidirectionalDictionary.cs
- LOSFormatter.cs
- GiveFeedbackEventArgs.cs
- Encoding.cs
- FrameworkTemplate.cs
- InvalidateEvent.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- Matrix3D.cs
- BooleanFunctions.cs
- RectAnimationUsingKeyFrames.cs
- ListViewPagedDataSource.cs
- ZipIOExtraFieldPaddingElement.cs
- PerformanceCounterPermissionEntryCollection.cs
- SystemWebCachingSectionGroup.cs
- AutomationTextAttribute.cs
- _BaseOverlappedAsyncResult.cs
- ClrPerspective.cs
- XmlText.cs
- SmtpFailedRecipientsException.cs
- SmiConnection.cs
- SystemTcpStatistics.cs
- ImportException.cs
- DocumentOutline.cs
- BrowserDefinitionCollection.cs
- BrowserDefinitionCollection.cs
- VisualStyleRenderer.cs
- odbcmetadatacolumnnames.cs
- CacheRequest.cs
- X509CertificateClaimSet.cs
- MessageDecoder.cs
- ContextMenu.cs
- BevelBitmapEffect.cs
- _FixedSizeReader.cs
- GeneralTransformGroup.cs
- DocumentReferenceCollection.cs
- CopyOfAction.cs
- MimeFormatExtensions.cs
- EventTrigger.cs
- URLIdentityPermission.cs
- SqlNotificationEventArgs.cs
- X509Utils.cs
- DropDownList.cs
- DocumentPaginator.cs
- HttpProtocolReflector.cs