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
- CustomAttributeBuilder.cs
- WebRequestModuleElementCollection.cs
- DataListItem.cs
- ConfigurationManagerInternalFactory.cs
- StreamUpgradeBindingElement.cs
- Normalization.cs
- ProfileSettings.cs
- Compensation.cs
- BaseCodePageEncoding.cs
- SystemIcons.cs
- NonSerializedAttribute.cs
- XpsS0ValidatingLoader.cs
- XmlAnyAttributeAttribute.cs
- OpenFileDialog.cs
- SendActivityEventArgs.cs
- Object.cs
- WindowsFormsDesignerOptionService.cs
- SelectingProviderEventArgs.cs
- WriteableBitmap.cs
- HtmlInputControl.cs
- SevenBitStream.cs
- MSAAWinEventWrap.cs
- WebServiceEnumData.cs
- TypeInitializationException.cs
- TraceListener.cs
- TextContainerHelper.cs
- DelayLoadType.cs
- _DomainName.cs
- Compress.cs
- ElementAction.cs
- MembershipPasswordException.cs
- AssemblyHash.cs
- NativeCompoundFileAPIs.cs
- StringAnimationBase.cs
- Serializer.cs
- ListGeneralPage.cs
- EdmComplexTypeAttribute.cs
- UniqueID.cs
- SecUtil.cs
- AuthorizationSection.cs
- FrameworkTextComposition.cs
- MarshalByValueComponent.cs
- TouchEventArgs.cs
- SimpleMailWebEventProvider.cs
- Drawing.cs
- ObservableDictionary.cs
- CharKeyFrameCollection.cs
- InstanceOwner.cs
- UnmanagedMemoryStream.cs
- StringValueSerializer.cs
- IndexOutOfRangeException.cs
- WebBrowserNavigatingEventHandler.cs
- Schema.cs
- ThicknessAnimationBase.cs
- DbParameterCollection.cs
- MemberAccessException.cs
- Color.cs
- WorkflowServiceAttributesTypeConverter.cs
- ErrorHandlingReceiver.cs
- ErasingStroke.cs
- CodeTryCatchFinallyStatement.cs
- SoapInteropTypes.cs
- DataRowChangeEvent.cs
- ComponentEditorForm.cs
- SqlEnums.cs
- DbgCompiler.cs
- ByValueEqualityComparer.cs
- TimeEnumHelper.cs
- XsdDuration.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- CustomExpressionEventArgs.cs
- XamlFigureLengthSerializer.cs
- CompositeScriptReference.cs
- SupportingTokenChannel.cs
- streamingZipPartStream.cs
- ExpandSegment.cs
- ClientSponsor.cs
- TraceListeners.cs
- WorkerRequest.cs
- _NtlmClient.cs
- SpellerHighlightLayer.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ListDictionary.cs
- AdPostCacheSubstitution.cs
- TableSectionStyle.cs
- PartitionedStream.cs
- ExpressionHelper.cs
- sqlpipe.cs
- UniqueIdentifierService.cs
- SmtpCommands.cs
- BindingList.cs
- ResourceDisplayNameAttribute.cs
- RawContentTypeMapper.cs
- PropertyEmitterBase.cs
- CornerRadiusConverter.cs
- AuthenticatingEventArgs.cs
- GridViewCellAutomationPeer.cs
- MachineKeySection.cs
- XNameConverter.cs
- RegexCharClass.cs