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
- XmlElement.cs
- XmlTypeMapping.cs
- LocalTransaction.cs
- RunWorkerCompletedEventArgs.cs
- ImageMetadata.cs
- AvTrace.cs
- StandardCommandToolStripMenuItem.cs
- RequestResizeEvent.cs
- DictionaryContent.cs
- GlobalizationAssembly.cs
- _SslState.cs
- SmiXetterAccessMap.cs
- NetSectionGroup.cs
- columnmapkeybuilder.cs
- SessionPageStatePersister.cs
- VisemeEventArgs.cs
- SqlCharStream.cs
- JsonWriterDelegator.cs
- ListViewCommandEventArgs.cs
- ReflectionPermission.cs
- HtmlTextBoxAdapter.cs
- XmlSchemaAttributeGroup.cs
- MDIWindowDialog.cs
- IPHostEntry.cs
- WebControl.cs
- StylusOverProperty.cs
- UniqueIdentifierService.cs
- MembershipSection.cs
- RTTrackingProfile.cs
- MergeLocalizationDirectives.cs
- SwitchCase.cs
- AsymmetricSignatureDeformatter.cs
- ConsumerConnectionPointCollection.cs
- AssemblyInfo.cs
- PackWebRequestFactory.cs
- WrapPanel.cs
- HyperLink.cs
- ZipFileInfo.cs
- DecimalStorage.cs
- ContactManager.cs
- DetailsViewCommandEventArgs.cs
- UserNamePasswordClientCredential.cs
- Directory.cs
- ContainerCodeDomSerializer.cs
- TypeInitializationException.cs
- StreamUpgradeBindingElement.cs
- DataContractSerializerOperationFormatter.cs
- WmlCalendarAdapter.cs
- Int32CAMarshaler.cs
- MessageSecurityTokenVersion.cs
- CodeVariableReferenceExpression.cs
- BinaryParser.cs
- ItemsPresenter.cs
- HandleCollector.cs
- BufferedGraphics.cs
- SplashScreen.cs
- TrackBar.cs
- XPathMultyIterator.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- HtmlInputReset.cs
- _ConnectStream.cs
- ApplicationServiceHelper.cs
- CollectionChangedEventManager.cs
- FileAuthorizationModule.cs
- ToolStripStatusLabel.cs
- SortedDictionary.cs
- BamlVersionHeader.cs
- XmlDataImplementation.cs
- FacetChecker.cs
- XmlSortKeyAccumulator.cs
- HttpListenerResponse.cs
- ReachFixedPageSerializerAsync.cs
- SqlTypesSchemaImporter.cs
- TextServicesPropertyRanges.cs
- ContentPropertyAttribute.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ActivityBindForm.Designer.cs
- SynchronousReceiveBehavior.cs
- GuidelineCollection.cs
- QilExpression.cs
- MetadataFile.cs
- PartialCachingControl.cs
- Renderer.cs
- Divide.cs
- ClientFormsAuthenticationCredentials.cs
- rsa.cs
- DiffuseMaterial.cs
- LocatorPartList.cs
- WebPartPersonalization.cs
- XslException.cs
- ListControl.cs
- IssuanceTokenProviderState.cs
- ArithmeticException.cs
- XslNumber.cs
- DataGridViewRowStateChangedEventArgs.cs
- SqlNodeAnnotation.cs
- LogicalExpr.cs
- TriState.cs
- EllipticalNodeOperations.cs
- ConditionCollection.cs