Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / CaseExpr.cs / 1 / CaseExpr.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// Represents the Seached Case Expression - CASE WHEN THEN [ELSE] END /// internal sealed class CaseExpr : Expr { private ExprList_whenThenExpr; private Expr _elseExpr; /// /// Used to contruct case expression without else sub-expression /// /// whenThen expression list internal CaseExpr( ExprListwhenThenExpr ) : this(whenThenExpr, null) { } /// /// Used to contruct case expression with else sub-expression /// /// whenThen expression list /// else expression internal CaseExpr( ExprListwhenThenExpr, Expr elseExpr ) { _whenThenExpr = whenThenExpr; _elseExpr = elseExpr; } /// /// Returns the list of WhenThen expressions /// internal ExprListWhenThenExprList { get { return _whenThenExpr; } } /// /// Returns the optional Else expression /// internal Expr ElseExpr { get { return _elseExpr; } } } ////// Represents the when then sub expression /// internal class WhenThenExpr : Expr { private Expr _whenExpr; private Expr _thenExpr; ////// Initializes WhenThen sub-expression /// /// When expression /// Then expression internal WhenThenExpr( Expr whenExpr, Expr thenExpr ) { _whenExpr = whenExpr; _thenExpr = thenExpr; } ////// Returns When expression /// internal Expr WhenExpr { get { return _whenExpr; } } ////// Returns Then Expression /// internal Expr ThenExpr { get { return _thenExpr; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// Represents the Seached Case Expression - CASE WHEN THEN [ELSE] END /// internal sealed class CaseExpr : Expr { private ExprList_whenThenExpr; private Expr _elseExpr; /// /// Used to contruct case expression without else sub-expression /// /// whenThen expression list internal CaseExpr( ExprListwhenThenExpr ) : this(whenThenExpr, null) { } /// /// Used to contruct case expression with else sub-expression /// /// whenThen expression list /// else expression internal CaseExpr( ExprListwhenThenExpr, Expr elseExpr ) { _whenThenExpr = whenThenExpr; _elseExpr = elseExpr; } /// /// Returns the list of WhenThen expressions /// internal ExprListWhenThenExprList { get { return _whenThenExpr; } } /// /// Returns the optional Else expression /// internal Expr ElseExpr { get { return _elseExpr; } } } ////// Represents the when then sub expression /// internal class WhenThenExpr : Expr { private Expr _whenExpr; private Expr _thenExpr; ////// Initializes WhenThen sub-expression /// /// When expression /// Then expression internal WhenThenExpr( Expr whenExpr, Expr thenExpr ) { _whenExpr = whenExpr; _thenExpr = thenExpr; } ////// Returns When expression /// internal Expr WhenExpr { get { return _whenExpr; } } ////// Returns Then Expression /// internal Expr ThenExpr { get { return _thenExpr; } } } } // 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
- FixedSOMPageElement.cs
- JsonGlobals.cs
- HttpPostProtocolReflector.cs
- Merger.cs
- CorrelationHandle.cs
- HttpResponseInternalWrapper.cs
- UrlMappingCollection.cs
- HttpSessionStateBase.cs
- MailAddress.cs
- JournalEntryListConverter.cs
- RightsManagementEncryptedStream.cs
- MethodSignatureGenerator.cs
- LinqDataSourceContextEventArgs.cs
- ActionItem.cs
- SerializationInfoEnumerator.cs
- AnnotationDocumentPaginator.cs
- ObjectConverter.cs
- OraclePermission.cs
- MenuCommand.cs
- CollectionViewGroupRoot.cs
- CanonicalXml.cs
- DocumentXPathNavigator.cs
- StringExpressionSet.cs
- MenuItemAutomationPeer.cs
- BamlRecordReader.cs
- RightsManagementEncryptionTransform.cs
- ChangeInterceptorAttribute.cs
- CodeMemberField.cs
- AutomationElementCollection.cs
- ConsoleKeyInfo.cs
- ToolstripProfessionalRenderer.cs
- HtmlDocument.cs
- NetCodeGroup.cs
- TraceInternal.cs
- MetadataArtifactLoaderCompositeFile.cs
- CodeLinePragma.cs
- XmlChoiceIdentifierAttribute.cs
- MobileSysDescriptionAttribute.cs
- OperationPerformanceCounters.cs
- HyperLinkDesigner.cs
- DataGridViewComboBoxColumnDesigner.cs
- _SSPIWrapper.cs
- _ListenerAsyncResult.cs
- CodeConstructor.cs
- NamedPipeTransportBindingElement.cs
- DbUpdateCommandTree.cs
- CollectionDataContractAttribute.cs
- ProviderUtil.cs
- ProcessHostServerConfig.cs
- lengthconverter.cs
- ChannelManager.cs
- XmlSchemaObjectCollection.cs
- BindingNavigatorDesigner.cs
- SettingsPropertyIsReadOnlyException.cs
- Listbox.cs
- WindowsListViewScroll.cs
- Positioning.cs
- GridItemPattern.cs
- ColorContextHelper.cs
- LockedActivityGlyph.cs
- SharedStream.cs
- returneventsaver.cs
- EventWaitHandle.cs
- EntityType.cs
- EntityDataSourceEntityTypeFilterItem.cs
- ExpressionBuilderContext.cs
- IntPtr.cs
- IUnknownConstantAttribute.cs
- ParameterBuilder.cs
- ColorTransformHelper.cs
- RootProfilePropertySettingsCollection.cs
- SecurityPolicySection.cs
- Marshal.cs
- TrackingStringDictionary.cs
- Grammar.cs
- FormsAuthentication.cs
- ResourcePool.cs
- SetStoryboardSpeedRatio.cs
- KeySpline.cs
- ToolStripDropDown.cs
- OrderedDictionaryStateHelper.cs
- SqlExpressionNullability.cs
- SqlClientFactory.cs
- PeerNameRecordCollection.cs
- SecurityContextCookieSerializer.cs
- SqlDataSourceSelectingEventArgs.cs
- MdImport.cs
- WebBrowserBase.cs
- RijndaelManagedTransform.cs
- BinaryEditor.cs
- ToolBarButtonDesigner.cs
- CellTreeNode.cs
- Timer.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- odbcmetadatacolumnnames.cs
- SafeBitVector32.cs
- GAC.cs
- TextWriter.cs
- ObjectResult.cs
- MetadataArtifactLoaderComposite.cs