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
- WpfSharedBamlSchemaContext.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- TimeSpanConverter.cs
- XmlILTrace.cs
- ListViewEditEventArgs.cs
- ResXResourceWriter.cs
- ControlAdapter.cs
- EnumerableRowCollectionExtensions.cs
- FlowDocumentPage.cs
- RuleInfoComparer.cs
- Util.cs
- Int64KeyFrameCollection.cs
- ExtensionCollection.cs
- StylusPlugInCollection.cs
- RichTextBox.cs
- DesignerCalendarAdapter.cs
- Events.cs
- AssemblyBuilder.cs
- DesignerActionService.cs
- TreeNodeStyleCollection.cs
- MultipartContentParser.cs
- X509SubjectKeyIdentifierClause.cs
- ToolStripSplitStackLayout.cs
- StartUpEventArgs.cs
- Listbox.cs
- CqlIdentifiers.cs
- Exception.cs
- OutputCacheProfile.cs
- GridViewColumnCollection.cs
- Predicate.cs
- SystemColors.cs
- Enlistment.cs
- BitmapEffectDrawing.cs
- TextPointer.cs
- CompilerParameters.cs
- RemotingServices.cs
- PtsPage.cs
- SoapEnumAttribute.cs
- CapiNative.cs
- DoubleLink.cs
- WSHttpSecurityElement.cs
- Color.cs
- TakeOrSkipWhileQueryOperator.cs
- PropertyManager.cs
- HandlerMappingMemo.cs
- RawStylusInputCustomDataList.cs
- CodePageEncoding.cs
- TypeConverterHelper.cs
- LabelLiteral.cs
- Debug.cs
- ColumnMapTranslator.cs
- UserControlFileEditor.cs
- CompoundFileReference.cs
- MatrixCamera.cs
- BamlTreeUpdater.cs
- DescendentsWalker.cs
- GCHandleCookieTable.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- InvokeProviderWrapper.cs
- SequentialWorkflowRootDesigner.cs
- XmlSchemaSimpleTypeUnion.cs
- SQLInt64.cs
- CustomErrorsSection.cs
- SignedInfo.cs
- ScrollEvent.cs
- SrgsElementFactory.cs
- PropertyGeneratedEventArgs.cs
- XamlSerializationHelper.cs
- EDesignUtil.cs
- XmlRootAttribute.cs
- PartialCachingControl.cs
- OAVariantLib.cs
- MethodAccessException.cs
- ObjectConverter.cs
- XmlIterators.cs
- LeafCellTreeNode.cs
- HttpClientCertificate.cs
- RichTextBox.cs
- SudsCommon.cs
- Path.cs
- MetabaseServerConfig.cs
- TypeResolvingOptions.cs
- Rotation3DAnimationBase.cs
- VirtualDirectoryMapping.cs
- ZipIORawDataFileBlock.cs
- _AutoWebProxyScriptWrapper.cs
- GeometryConverter.cs
- FileUpload.cs
- XmlQualifiedName.cs
- FilteredReadOnlyMetadataCollection.cs
- TextEditor.cs
- PreviewPrintController.cs
- ContainerParaClient.cs
- FindCompletedEventArgs.cs
- ScrollEvent.cs
- CommonObjectSecurity.cs
- OleDbStruct.cs
- ObjRef.cs
- Rules.cs
- XhtmlBasicLabelAdapter.cs