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
- OutputCacheSettingsSection.cs
- Delegate.cs
- SessionPageStatePersister.cs
- X509CertificateEndpointIdentity.cs
- TemplatePropertyEntry.cs
- ArrayConverter.cs
- ManagementNamedValueCollection.cs
- PeerToPeerException.cs
- XmlSchemaType.cs
- DataGridViewColumnTypePicker.cs
- MD5CryptoServiceProvider.cs
- XmlTextReaderImpl.cs
- GridViewCancelEditEventArgs.cs
- InstanceCreationEditor.cs
- HtmlElementCollection.cs
- AggregatePushdown.cs
- JoinGraph.cs
- ScrollPatternIdentifiers.cs
- LinkLabel.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- WindowsSysHeader.cs
- ZipIOCentralDirectoryFileHeader.cs
- CoreSwitches.cs
- FontStretches.cs
- System.Data_BID.cs
- SplitterPanel.cs
- ToolStripManager.cs
- SimpleRecyclingCache.cs
- RowParagraph.cs
- OleDbErrorCollection.cs
- WebConfigurationHost.cs
- ImageBrush.cs
- DesignerView.Commands.cs
- Win32.cs
- TokenBasedSet.cs
- LinearGradientBrush.cs
- DataGridAutoFormatDialog.cs
- ElementMarkupObject.cs
- ControlParameter.cs
- LambdaCompiler.Generated.cs
- FacetValueContainer.cs
- SelectionPatternIdentifiers.cs
- Context.cs
- ListenerSessionConnection.cs
- RawStylusInputReport.cs
- ListSourceHelper.cs
- EntityObject.cs
- Listbox.cs
- Type.cs
- HybridDictionary.cs
- NodeLabelEditEvent.cs
- State.cs
- StopStoryboard.cs
- SourceFileInfo.cs
- UIElement3D.cs
- UnsafeNativeMethods.cs
- XNodeSchemaApplier.cs
- WebPartConnectionCollection.cs
- TypedElement.cs
- DBConcurrencyException.cs
- Win32.cs
- ItemCollection.cs
- SoapExtensionTypeElementCollection.cs
- TextFormatterContext.cs
- IndentedTextWriter.cs
- TextContainerChangeEventArgs.cs
- ACE.cs
- AutomationElement.cs
- BinHexEncoding.cs
- SafeRightsManagementQueryHandle.cs
- BrowserDefinition.cs
- DBNull.cs
- RuntimeResourceSet.cs
- SQLDecimal.cs
- SqlIdentifier.cs
- QueryStatement.cs
- CompilerError.cs
- PropertyChangedEventArgs.cs
- BatchParser.cs
- ReadOnlyDataSource.cs
- DataSourceSelectArguments.cs
- KeyTime.cs
- XmlValueConverter.cs
- WebException.cs
- ToolStripDropDownMenu.cs
- PathBox.cs
- BindingExpression.cs
- BatchStream.cs
- MarkupObject.cs
- CharEnumerator.cs
- XmlReaderSettings.cs
- Button.cs
- OletxEnlistment.cs
- ToolStripMenuItem.cs
- XpsSerializationManagerAsync.cs
- BypassElement.cs
- ADConnectionHelper.cs
- CodeGen.cs
- CompilerGeneratedAttribute.cs
- XmlReaderSettings.cs