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
- FileNotFoundException.cs
- HtmlControlPersistable.cs
- CancellationTokenSource.cs
- InputProviderSite.cs
- Context.cs
- JsonObjectDataContract.cs
- TableProviderWrapper.cs
- SelectionProcessor.cs
- ActiveXSite.cs
- SqlDataSourceQueryEditor.cs
- SystemUdpStatistics.cs
- DateTimeUtil.cs
- RepeatInfo.cs
- StatusBar.cs
- ImageAnimator.cs
- Tag.cs
- RadioButton.cs
- CalendarKeyboardHelper.cs
- AdPostCacheSubstitution.cs
- Compiler.cs
- DragDeltaEventArgs.cs
- DrawingBrush.cs
- DigitalSignatureProvider.cs
- TemplateLookupAction.cs
- IPCCacheManager.cs
- InteropBitmapSource.cs
- OpenTypeCommon.cs
- XmlTextReader.cs
- KeyMatchBuilder.cs
- ResetableIterator.cs
- AsyncStreamReader.cs
- LinearGradientBrush.cs
- SqlCacheDependencySection.cs
- MetabaseReader.cs
- TypeSystem.cs
- XmlArrayItemAttribute.cs
- ColorMatrix.cs
- FileChangesMonitor.cs
- VectorAnimationUsingKeyFrames.cs
- PrintPreviewDialog.cs
- Evaluator.cs
- SByte.cs
- ImageButton.cs
- SoapSchemaImporter.cs
- HybridDictionary.cs
- HandleRef.cs
- WorkItem.cs
- ToolboxComponentsCreatingEventArgs.cs
- DBConcurrencyException.cs
- DbMetaDataColumnNames.cs
- HGlobalSafeHandle.cs
- CryptoApi.cs
- ProfilePropertyNameValidator.cs
- ToolStripDropDownMenu.cs
- ServicePoint.cs
- HtmlInputRadioButton.cs
- Size.cs
- ProfileSettingsCollection.cs
- Listbox.cs
- ParserExtension.cs
- EntityContainerAssociationSet.cs
- MSAANativeProvider.cs
- DoubleUtil.cs
- DeadCharTextComposition.cs
- RegularExpressionValidator.cs
- ImageSource.cs
- InvokeMethodActivityDesigner.cs
- PolicyManager.cs
- ValidatorUtils.cs
- XPathException.cs
- ServiceOperationWrapper.cs
- FacetValueContainer.cs
- Animatable.cs
- BindingExpression.cs
- QuaternionAnimationBase.cs
- PersonalizationStateInfo.cs
- QilDataSource.cs
- TripleDESCryptoServiceProvider.cs
- EditingScopeUndoUnit.cs
- XmlNavigatorFilter.cs
- TextTreeTextElementNode.cs
- DefaultValueTypeConverter.cs
- AncestorChangedEventArgs.cs
- MsmqIntegrationMessageProperty.cs
- Missing.cs
- Viewport3DAutomationPeer.cs
- ActiveXSite.cs
- SchemaTypeEmitter.cs
- _ConnectionGroup.cs
- keycontainerpermission.cs
- cookiecontainer.cs
- Rectangle.cs
- GeometryHitTestResult.cs
- UnlockCardRequest.cs
- ElementMarkupObject.cs
- HyperLinkStyle.cs
- TypefaceMetricsCache.cs
- TimeSpan.cs
- IndexedString.cs
- WeakEventTable.cs