Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / EntityDataSourceEntityTypeFilterItem.cs / 1305376 / EntityDataSourceEntityTypeFilterItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System.Data.Metadata.Edm; namespace System.Web.UI.Design.WebControls { internal class EntityDataSourceEntityTypeFilterItem : 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 EntityType _entityType; // used when we have a real EntityType backing this item private readonly string _unknownEntityTypeName; // used when we have an unknown EntityTypeFilter that we still want to include in the list internal EntityDataSourceEntityTypeFilterItem(EntityType entityType) { _entityType = entityType; } internal EntityDataSourceEntityTypeFilterItem(string unknownEntityTypeName) { _unknownEntityTypeName = unknownEntityTypeName; } internal string EntityTypeName { get { if (_entityType != null) { return _entityType.Name; } else { return _unknownEntityTypeName; } } } internal EntityType EntityType { get { return _entityType; } } public override string ToString() { return EntityTypeName; } int IComparable .CompareTo(EntityDataSourceEntityTypeFilterItem other) { return (String.Compare(this.EntityTypeName, other.EntityTypeName, 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
- TimersDescriptionAttribute.cs
- XmlTextAttribute.cs
- PersistenceContextEnlistment.cs
- BuildManager.cs
- TypeFieldSchema.cs
- ProviderConnectionPointCollection.cs
- ImageProxy.cs
- COM2IDispatchConverter.cs
- DataBindEngine.cs
- ChannelManager.cs
- InvalidProgramException.cs
- ResolveDuplexCD1AsyncResult.cs
- MsmqAppDomainProtocolHandler.cs
- CompilationLock.cs
- WebServiceReceiveDesigner.cs
- InvalidOperationException.cs
- GridViewCellAutomationPeer.cs
- ComplexPropertyEntry.cs
- AssociatedControlConverter.cs
- SmtpClient.cs
- ImageDrawing.cs
- RegexFCD.cs
- Knowncolors.cs
- SoapProtocolImporter.cs
- RtfNavigator.cs
- CancelEventArgs.cs
- DBCommandBuilder.cs
- GridItemCollection.cs
- SqlDataSourceCache.cs
- QuerySettings.cs
- RadioButtonAutomationPeer.cs
- CodeDOMProvider.cs
- WindowsEditBox.cs
- SourceSwitch.cs
- DataSourceXmlSubItemAttribute.cs
- MonikerProxyAttribute.cs
- XmlBinaryReader.cs
- TileModeValidation.cs
- ExtendedTransformFactory.cs
- SecurityState.cs
- VisualStyleTypesAndProperties.cs
- EdmComplexPropertyAttribute.cs
- DeviceSpecific.cs
- SafeCertificateContext.cs
- MessageEventSubscriptionService.cs
- ILGenerator.cs
- IgnoreFileBuildProvider.cs
- CompilerError.cs
- x509utils.cs
- ValidationErrorInfo.cs
- Util.cs
- AutoScrollExpandMessageFilter.cs
- SqlColumnizer.cs
- PrintPreviewControl.cs
- ObjectDataSourceEventArgs.cs
- EventLogInternal.cs
- SlipBehavior.cs
- metadatamappinghashervisitor.cs
- CryptoHelper.cs
- StylusButton.cs
- Properties.cs
- tibetanshape.cs
- Geometry3D.cs
- LazyTextWriterCreator.cs
- TemporaryBitmapFile.cs
- DynamicRenderer.cs
- BackStopAuthenticationModule.cs
- WindowsFormsDesignerOptionService.cs
- TransactionFlowOption.cs
- PersistenceProviderDirectory.cs
- FileLevelControlBuilderAttribute.cs
- RolePrincipal.cs
- DataGridViewDataConnection.cs
- MetadataArtifactLoaderCompositeResource.cs
- DiffuseMaterial.cs
- ObfuscationAttribute.cs
- TabControlAutomationPeer.cs
- DomainConstraint.cs
- CodeBinaryOperatorExpression.cs
- HostedNamedPipeTransportManager.cs
- SqlClientMetaDataCollectionNames.cs
- ViewValidator.cs
- Point3DIndependentAnimationStorage.cs
- CodeObject.cs
- HtmlTitle.cs
- XmlILIndex.cs
- MachinePropertyVariants.cs
- DefaultTraceListener.cs
- BindingGraph.cs
- QueuePathDialog.cs
- NetworkInterface.cs
- __Filters.cs
- XamlFigureLengthSerializer.cs
- CriticalFinalizerObject.cs
- DataObjectSettingDataEventArgs.cs
- BlurEffect.cs
- StructuralCache.cs
- SignHashRequest.cs
- RequestTimeoutManager.cs
- EventItfInfo.cs