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
- ApplySecurityAndSendAsyncResult.cs
- Int32KeyFrameCollection.cs
- QilReference.cs
- RuntimeWrappedException.cs
- FixedSOMGroup.cs
- VisualTarget.cs
- XmlSchemaObjectTable.cs
- ConfigurationSettings.cs
- CLSCompliantAttribute.cs
- SrgsItemList.cs
- SwitchLevelAttribute.cs
- Path.cs
- OutputCacheProfile.cs
- BindingBase.cs
- KerberosSecurityTokenProvider.cs
- WindowsFormsHostAutomationPeer.cs
- TraceAsyncResult.cs
- RefType.cs
- PropertyInformationCollection.cs
- TextEditorSelection.cs
- TextPatternIdentifiers.cs
- CacheModeValueSerializer.cs
- DataGridHeaderBorder.cs
- configsystem.cs
- Win32Exception.cs
- ImageBrush.cs
- RectangleHotSpot.cs
- NavigateEvent.cs
- PathFigure.cs
- XmlConvert.cs
- SmtpFailedRecipientException.cs
- HitTestWithGeometryDrawingContextWalker.cs
- MatrixStack.cs
- PartialTrustValidationBehavior.cs
- MimeBasePart.cs
- GenericIdentity.cs
- HttpTransportSecurityElement.cs
- BinaryParser.cs
- CodeLabeledStatement.cs
- TextRunCache.cs
- _OSSOCK.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- HttpCachePolicyElement.cs
- ServiceModelConfigurationSectionGroup.cs
- DocumentXmlWriter.cs
- WsdlBuildProvider.cs
- WebPartConnectionsEventArgs.cs
- ProxyGenerator.cs
- StringUtil.cs
- FormsAuthenticationModule.cs
- InkCanvas.cs
- ResetableIterator.cs
- XmlCDATASection.cs
- FileUtil.cs
- ExtensionWindow.cs
- ThreadAbortException.cs
- RouteParser.cs
- EditBehavior.cs
- IsolationInterop.cs
- ContentPlaceHolder.cs
- ExceptionDetail.cs
- BuildProviderUtils.cs
- SizeFConverter.cs
- DefaultHttpHandler.cs
- WorkflowOperationAsyncResult.cs
- DataFieldConverter.cs
- PrinterResolution.cs
- TrayIconDesigner.cs
- EventLevel.cs
- Item.cs
- webbrowsersite.cs
- datacache.cs
- RuleSettings.cs
- KeyGesture.cs
- SecureStringHasher.cs
- ScrollEvent.cs
- WebPartZoneCollection.cs
- Keyboard.cs
- LayoutTableCell.cs
- DesignerProperties.cs
- DetailsViewUpdatedEventArgs.cs
- RankException.cs
- PieceDirectory.cs
- ModelUIElement3D.cs
- cookieexception.cs
- InternalsVisibleToAttribute.cs
- NamespaceList.cs
- DataGridPagingPage.cs
- OutputCacheProfileCollection.cs
- DynamicMetaObjectBinder.cs
- GridViewItemAutomationPeer.cs
- TagPrefixAttribute.cs
- UniqueConstraint.cs
- EndpointDispatcher.cs
- WebUtil.cs
- TimeSpanStorage.cs
- Parallel.cs
- ArgIterator.cs
- ClientBuildManager.cs
- _NativeSSPI.cs