Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / EntityDataSourceEntitySetNameItem.cs / 1305376 / EntityDataSourceEntitySetNameItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System.Data.Metadata.Edm; namespace System.Web.UI.Design.WebControls { internal class EntityDataSourceEntitySetNameItem : IComparable{ // Only one of the following should be set. This is enforced through the constructors and the fact that these fields are readonly. private readonly EntitySet _entitySet; // used when we have a real EntitySet backing this item private readonly string _unknownEntitySetName; // used when we have an unknown EntitySetName that we still want to include in the list internal EntityDataSourceEntitySetNameItem(EntitySet entitySet) { _entitySet = entitySet; } internal EntityDataSourceEntitySetNameItem(string unknownEntitySetName) { _unknownEntitySetName = unknownEntitySetName; } internal string EntitySetName { get { if (_entitySet != null) { return _entitySet.Name; } else { return _unknownEntitySetName; } } } internal EntitySet EntitySet { get { return _entitySet; } } public override string ToString() { return EntitySetName; } int IComparable .CompareTo(EntityDataSourceEntitySetNameItem other) { return (String.Compare(this.EntitySetName, other.EntitySetName, StringComparison.OrdinalIgnoreCase)); } } } // 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
- SpellerError.cs
- GradientBrush.cs
- StringDictionary.cs
- XmlDataSource.cs
- TraceUtility.cs
- SimplePropertyEntry.cs
- DiagnosticsConfiguration.cs
- OutputCacheProfileCollection.cs
- ParseNumbers.cs
- CodeParameterDeclarationExpressionCollection.cs
- SecurityChannelFaultConverter.cs
- RuleInfoComparer.cs
- DataRowIndexBuffer.cs
- ControlAdapter.cs
- MonthChangedEventArgs.cs
- ConstantExpression.cs
- XsdBuilder.cs
- CssStyleCollection.cs
- RoleService.cs
- HtmlValidationSummaryAdapter.cs
- PathFigureCollection.cs
- TileBrush.cs
- EntityDataSourceDataSelection.cs
- ConfigurationFileMap.cs
- ModelItemCollection.cs
- EventLogInformation.cs
- ClassImporter.cs
- CodeFieldReferenceExpression.cs
- EditorZoneBase.cs
- MenuScrollingVisibilityConverter.cs
- SchemaImporter.cs
- IndexedString.cs
- Menu.cs
- CultureInfoConverter.cs
- Process.cs
- CodeGotoStatement.cs
- TemplateParser.cs
- VisualState.cs
- RelationshipEntry.cs
- CachedTypeface.cs
- PointLight.cs
- StyleSelector.cs
- Int16.cs
- ContainerUtilities.cs
- SqlFileStream.cs
- HostedTcpTransportManager.cs
- Math.cs
- QilScopedVisitor.cs
- ControlValuePropertyAttribute.cs
- ObjectRef.cs
- EntityDataSourceValidationException.cs
- GCHandleCookieTable.cs
- NamedObject.cs
- CustomErrorsSectionWrapper.cs
- MissingMemberException.cs
- HotSpotCollection.cs
- DesignerImageAdapter.cs
- IISMapPath.cs
- GridViewCommandEventArgs.cs
- SBCSCodePageEncoding.cs
- DesignConnectionCollection.cs
- AttributeQuery.cs
- DragEventArgs.cs
- Directory.cs
- DecimalConstantAttribute.cs
- Mutex.cs
- XPathNode.cs
- WeakHashtable.cs
- Line.cs
- SecurityTokenAuthenticator.cs
- HierarchicalDataTemplate.cs
- Choices.cs
- WebPart.cs
- TextEmbeddedObject.cs
- PrimitiveXmlSerializers.cs
- Condition.cs
- XmlTextReaderImplHelpers.cs
- TextParaClient.cs
- ProtocolsConfigurationHandler.cs
- XPathNavigatorException.cs
- XXXOnTypeBuilderInstantiation.cs
- SettingsPropertyIsReadOnlyException.cs
- Configuration.cs
- ScaleTransform.cs
- CapabilitiesUse.cs
- RefreshEventArgs.cs
- QualifiedCellIdBoolean.cs
- EntityDataSourceWrapperCollection.cs
- ContextCorrelationInitializer.cs
- TrustManagerPromptUI.cs
- WriteStateInfoBase.cs
- ConstraintEnumerator.cs
- XamlClipboardData.cs
- DataKeyArray.cs
- TrackingLocationCollection.cs
- BindUriHelper.cs
- DBCommandBuilder.cs
- WindowAutomationPeer.cs
- DataView.cs
- ProxyWebPartManager.cs