Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BitmapPalettes.cs
- QuaternionRotation3D.cs
- SqlDataSourceFilteringEventArgs.cs
- PrePrepareMethodAttribute.cs
- PersistenceTypeAttribute.cs
- ConstraintStruct.cs
- Zone.cs
- MimeWriter.cs
- ResourcesBuildProvider.cs
- MSAAEventDispatcher.cs
- PopupEventArgs.cs
- RouteCollection.cs
- BaseValidatorDesigner.cs
- CompoundFileStorageReference.cs
- SimpleTableProvider.cs
- PropertyToken.cs
- QuaternionIndependentAnimationStorage.cs
- TextWriterTraceListener.cs
- ToolboxSnapDragDropEventArgs.cs
- XmlTextEncoder.cs
- MessageBox.cs
- MsmqIntegrationSecurityMode.cs
- PassportAuthenticationEventArgs.cs
- NotCondition.cs
- JapaneseLunisolarCalendar.cs
- PenThread.cs
- StrokeDescriptor.cs
- CommandHelper.cs
- TypeAccessException.cs
- ResXResourceSet.cs
- WebPartDisplayModeEventArgs.cs
- SafeSystemMetrics.cs
- TextEditorTables.cs
- ReadOnlyDictionary.cs
- IndexerNameAttribute.cs
- XmlEntity.cs
- ComplexTypeEmitter.cs
- CompareInfo.cs
- SessionIDManager.cs
- PreservationFileWriter.cs
- LicenseContext.cs
- IsolationInterop.cs
- XhtmlBasicValidatorAdapter.cs
- RemotingAttributes.cs
- Int32Animation.cs
- X509KeyIdentifierClauseType.cs
- InputMethod.cs
- xmlsaver.cs
- NativeMethods.cs
- ErrorFormatterPage.cs
- HandlerBase.cs
- BrushConverter.cs
- NullableIntMinMaxAggregationOperator.cs
- ScrollEventArgs.cs
- ProcessModelInfo.cs
- DataSourceHelper.cs
- ModifiableIteratorCollection.cs
- DataViewManager.cs
- FormClosingEvent.cs
- MaskInputRejectedEventArgs.cs
- LabelTarget.cs
- XmlValidatingReaderImpl.cs
- SelectionRangeConverter.cs
- AssemblyResourceLoader.cs
- ParserContext.cs
- InputLanguageProfileNotifySink.cs
- InputLanguageManager.cs
- SortedDictionary.cs
- Int32Storage.cs
- UriScheme.cs
- ClientFormsAuthenticationMembershipProvider.cs
- IChannel.cs
- HttpListener.cs
- NativeBuffer.cs
- ContextMenu.cs
- MultiTrigger.cs
- TextBlockAutomationPeer.cs
- isolationinterop.cs
- WindowsServiceCredential.cs
- BitmapEffectGroup.cs
- WebHttpSecurityElement.cs
- OutputCacheSection.cs
- DateTimeConverter.cs
- ForwardPositionQuery.cs
- XsltOutput.cs
- ProfessionalColors.cs
- _FixedSizeReader.cs
- AgileSafeNativeMemoryHandle.cs
- WebBrowserSiteBase.cs
- NameTable.cs
- ParameterReplacerVisitor.cs
- ListViewSortEventArgs.cs
- TileBrush.cs
- HttpApplicationFactory.cs
- SubMenuStyleCollection.cs
- HtmlInputControl.cs
- UpdateCompiler.cs
- DotAtomReader.cs
- LayoutDump.cs
- SecurityUniqueId.cs