Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / EntityDataSourceEntityTypeFilterItem.cs / 3 / 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. //------------------------------------------------------------------------------ // // 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MailMessageEventArgs.cs
- ServicePoint.cs
- HtmlWindowCollection.cs
- SessionStateContainer.cs
- SqlMethodAttribute.cs
- SystemNetworkInterface.cs
- FontEmbeddingManager.cs
- WebCodeGenerator.cs
- InfoCardClaimCollection.cs
- FontResourceCache.cs
- _Win32.cs
- securestring.cs
- SchemaNamespaceManager.cs
- Configuration.cs
- SecurityTokenSpecification.cs
- DataGridViewCellEventArgs.cs
- NoneExcludedImageIndexConverter.cs
- BinaryFormatterSinks.cs
- XmlSchemaSimpleType.cs
- DefaultParameterValueAttribute.cs
- ConfigurationSchemaErrors.cs
- BitmapEffectDrawingContextState.cs
- SimpleModelProvider.cs
- Pool.cs
- CatalogPartDesigner.cs
- ProcessThreadCollection.cs
- mactripleDES.cs
- ADMembershipProvider.cs
- ConstructorNeedsTagAttribute.cs
- FrugalMap.cs
- TimerElapsedEvenArgs.cs
- Bidi.cs
- ObjectItemAssemblyLoader.cs
- ObjectStorage.cs
- IOException.cs
- DataGridColumnHeader.cs
- InputProcessorProfiles.cs
- HandleCollector.cs
- DataGridViewImageCell.cs
- TimeZoneNotFoundException.cs
- AbstractSvcMapFileLoader.cs
- odbcmetadatacollectionnames.cs
- DataViewManager.cs
- WorkflowOperationErrorHandler.cs
- DynamicQueryableWrapper.cs
- OnOperation.cs
- WebExceptionStatus.cs
- LinqDataSourceInsertEventArgs.cs
- MemberProjectedSlot.cs
- SingleKeyFrameCollection.cs
- ClockController.cs
- ResourceLoader.cs
- DrawToolTipEventArgs.cs
- CodeTryCatchFinallyStatement.cs
- RootAction.cs
- XmlElementAttributes.cs
- NetCodeGroup.cs
- COM2EnumConverter.cs
- SqlCacheDependency.cs
- EraserBehavior.cs
- SvcMapFile.cs
- SubpageParaClient.cs
- Choices.cs
- DatatypeImplementation.cs
- PTUtility.cs
- SHA384.cs
- CheckBoxStandardAdapter.cs
- CodePrimitiveExpression.cs
- StoreContentChangedEventArgs.cs
- RectAnimationUsingKeyFrames.cs
- CounterSample.cs
- SchemaDeclBase.cs
- RawStylusInputCustomData.cs
- Matrix3D.cs
- PathFigureCollectionConverter.cs
- TextSelection.cs
- ScriptReferenceEventArgs.cs
- SoapExtensionTypeElement.cs
- ByteStream.cs
- PageCodeDomTreeGenerator.cs
- DataGridDetailsPresenter.cs
- CodeAttachEventStatement.cs
- ClosableStream.cs
- FormsAuthenticationConfiguration.cs
- Base64Decoder.cs
- DataAdapter.cs
- ReaderContextStackData.cs
- IsolatedStoragePermission.cs
- TextFormatterHost.cs
- SqlReferenceCollection.cs
- ToolStripSplitStackLayout.cs
- CodeDefaultValueExpression.cs
- storepermission.cs
- BitmapScalingModeValidation.cs
- HtmlContainerControl.cs
- Item.cs
- SHA384CryptoServiceProvider.cs
- ColumnBinding.cs
- SqlDataRecord.cs
- StorageScalarPropertyMapping.cs