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
- DataGridViewAutoSizeModeEventArgs.cs
- ControllableStoryboardAction.cs
- TemplateColumn.cs
- SwitchCase.cs
- UrlMappingsModule.cs
- ObjectQueryState.cs
- ProfessionalColors.cs
- SecurityRuntime.cs
- IriParsingElement.cs
- HMACSHA512.cs
- connectionpool.cs
- Menu.cs
- DataGridPagerStyle.cs
- ArglessEventHandlerProxy.cs
- MultiSelectRootGridEntry.cs
- ReturnEventArgs.cs
- ServiceDescription.cs
- LocatorPartList.cs
- ToolboxItemAttribute.cs
- ExpressionVisitor.cs
- ResourcePermissionBaseEntry.cs
- SafeLibraryHandle.cs
- ResourcePool.cs
- ToolStripContentPanel.cs
- ProfilePropertySettingsCollection.cs
- FontStyles.cs
- sqlstateclientmanager.cs
- EntityConnectionStringBuilder.cs
- OutputCacheSettings.cs
- PhoneCall.cs
- BigInt.cs
- XmlSchemaSimpleContentExtension.cs
- Command.cs
- WebRequestModulesSection.cs
- ResourceProviderFactory.cs
- WebPartDisplayModeCancelEventArgs.cs
- SoapHttpTransportImporter.cs
- WhitespaceRuleReader.cs
- DecoderBestFitFallback.cs
- MemberRelationshipService.cs
- WsdlParser.cs
- MessageParameterAttribute.cs
- TableCell.cs
- _HTTPDateParse.cs
- BamlLocalizabilityResolver.cs
- MatcherBuilder.cs
- Privilege.cs
- RichTextBox.cs
- TemplateParser.cs
- SubMenuStyleCollectionEditor.cs
- SqlConnectionStringBuilder.cs
- HitTestWithPointDrawingContextWalker.cs
- XmlRootAttribute.cs
- SqlFormatter.cs
- SqlPersonalizationProvider.cs
- indexingfiltermarshaler.cs
- FontUnit.cs
- WsdlBuildProvider.cs
- ColorMatrix.cs
- TextEditorThreadLocalStore.cs
- TabItemAutomationPeer.cs
- LazyLoadBehavior.cs
- ISSmlParser.cs
- GeneralTransform2DTo3D.cs
- CopyNodeSetAction.cs
- WebPartConnectionsEventArgs.cs
- TextFormatterContext.cs
- MouseBinding.cs
- XmlEncodedRawTextWriter.cs
- XmlNamespaceDeclarationsAttribute.cs
- StreamReader.cs
- DocumentOrderQuery.cs
- SortableBindingList.cs
- JsonByteArrayDataContract.cs
- ChannelFactoryRefCache.cs
- XamlVector3DCollectionSerializer.cs
- LinqDataSourceHelper.cs
- ControlPropertyNameConverter.cs
- RoleManagerModule.cs
- ColumnMap.cs
- UInt32Storage.cs
- MouseActionConverter.cs
- CustomAttributeBuilder.cs
- TdsParserStateObject.cs
- GraphicsContainer.cs
- AppLevelCompilationSectionCache.cs
- MenuAdapter.cs
- ErrorStyle.cs
- ConfigXmlAttribute.cs
- BitmapEncoder.cs
- Point3DCollection.cs
- MainMenu.cs
- IteratorFilter.cs
- ContainerUIElement3D.cs
- IsolatedStorage.cs
- DataGridViewControlCollection.cs
- GridProviderWrapper.cs
- WebAdminConfigurationHelper.cs
- HtmlCommandAdapter.cs
- MenuAdapter.cs