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
- OracleDataAdapter.cs
- PageEventArgs.cs
- _FtpDataStream.cs
- CookieProtection.cs
- DataBoundControlAdapter.cs
- SelfIssuedAuthAsymmetricKey.cs
- SamlAuthorityBinding.cs
- FieldAccessException.cs
- MILUtilities.cs
- OrderedDictionary.cs
- InvokeWebService.cs
- ElementHostPropertyMap.cs
- XmlUnspecifiedAttribute.cs
- RemotingConfigParser.cs
- SiteMapSection.cs
- CssStyleCollection.cs
- PtsCache.cs
- DelegatingConfigHost.cs
- Converter.cs
- IssuanceTokenProviderBase.cs
- CompoundFileReference.cs
- FieldNameLookup.cs
- FormsAuthenticationConfiguration.cs
- XmlMapping.cs
- Listen.cs
- DetailsViewPageEventArgs.cs
- XmlNavigatorFilter.cs
- AsnEncodedData.cs
- Journaling.cs
- MemoryRecordBuffer.cs
- PointCollectionConverter.cs
- OperationInfo.cs
- CardSpaceException.cs
- KerberosTicketHashIdentifierClause.cs
- ComboBox.cs
- DbDataAdapter.cs
- DesignerVerbCollection.cs
- XmlWriterSettings.cs
- DataTrigger.cs
- XmlSortKey.cs
- RightsDocument.cs
- Double.cs
- SafeReversePInvokeHandle.cs
- PropagationProtocolsTracing.cs
- HtmlInputRadioButton.cs
- IntegerValidatorAttribute.cs
- ConnectionStringsExpressionBuilder.cs
- ResourceProperty.cs
- SessionStateUtil.cs
- EncoderParameter.cs
- DataGridColumnFloatingHeader.cs
- HMACSHA1.cs
- XPathAxisIterator.cs
- CqlIdentifiers.cs
- DispatcherProcessingDisabled.cs
- DotExpr.cs
- PropertyEmitterBase.cs
- Int64KeyFrameCollection.cs
- autovalidator.cs
- AnnotationComponentChooser.cs
- EntityKey.cs
- RemoveFromCollection.cs
- WebZone.cs
- NavigationHelper.cs
- SearchForVirtualItemEventArgs.cs
- PeerValidationBehavior.cs
- TextPointerBase.cs
- Splitter.cs
- OletxEnlistment.cs
- CompilerGlobalScopeAttribute.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- MatrixTransform3D.cs
- SnapshotChangeTrackingStrategy.cs
- ListParagraph.cs
- CachedFontFace.cs
- Animatable.cs
- BitmapEffectInput.cs
- CompilationSection.cs
- TableStyle.cs
- ComponentEditorPage.cs
- PerformanceCounterManager.cs
- MemberPathMap.cs
- TableItemProviderWrapper.cs
- DataBoundControlActionList.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- FastEncoderWindow.cs
- Point.cs
- MainMenu.cs
- SpotLight.cs
- TraceData.cs
- XmlCollation.cs
- EventHandlersStore.cs
- TextDecoration.cs
- MeasureItemEvent.cs
- SiteMapNodeCollection.cs
- SmtpTransport.cs
- AppModelKnownContentFactory.cs
- RepeaterItemEventArgs.cs
- HtmlToClrEventProxy.cs
- DefaultParameterValueAttribute.cs