Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / CommandTrees / ExpressionBuilder / Row.cs / 1305376 / Row.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Data.Common.CommandTrees; using System.Data.Common.Utils; namespace System.Data.Common.CommandTrees.ExpressionBuilder { ////// The Row class is intended to provide a constructor-like means of calling internal sealed class Row { private readonly System.Collections.ObjectModel.ReadOnlyCollection. /// > arguments; /// /// Constructs a new Row with the specified first column value and optional successive column values /// /// A key-value pair that provides the first column in the new row instance (required) /// Key-value pairs that provide any subsequent columns in the new row instance (optional) public Row(KeyValuePaircolumnValue, params KeyValuePair [] columnValues) { this.arguments = new System.Collections.ObjectModel.ReadOnlyCollection >(Helpers.Prepend(columnValues, columnValue)); } /// /// Creates a new ///that constructs a new row based on the columns /// contained in this Row instance. /// A new DbNewInstanceExpression that constructs a row with the same column names and DbExpression values as this Row instance ///public DbNewInstanceExpression ToExpression() { return DbExpressionBuilder.NewRow(this.arguments); } /// /// Converts the given Row instance into an instance of /// ////// A DbExpression based on the Row instance ////// is null. public static implicit operator DbExpression(Row row) { EntityUtil.CheckArgumentNull(row, "row"); return row.ToExpression(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Data.Common.CommandTrees; using System.Data.Common.Utils; namespace System.Data.Common.CommandTrees.ExpressionBuilder { ////// The Row class is intended to provide a constructor-like means of calling internal sealed class Row { private readonly System.Collections.ObjectModel.ReadOnlyCollection. /// > arguments; /// /// Constructs a new Row with the specified first column value and optional successive column values /// /// A key-value pair that provides the first column in the new row instance (required) /// Key-value pairs that provide any subsequent columns in the new row instance (optional) public Row(KeyValuePaircolumnValue, params KeyValuePair [] columnValues) { this.arguments = new System.Collections.ObjectModel.ReadOnlyCollection >(Helpers.Prepend(columnValues, columnValue)); } /// /// Creates a new ///that constructs a new row based on the columns /// contained in this Row instance. /// A new DbNewInstanceExpression that constructs a row with the same column names and DbExpression values as this Row instance ///public DbNewInstanceExpression ToExpression() { return DbExpressionBuilder.NewRow(this.arguments); } /// /// Converts the given Row instance into an instance of /// ////// A DbExpression based on the Row instance ////// is null. public static implicit operator DbExpression(Row row) { EntityUtil.CheckArgumentNull(row, "row"); return row.ToExpression(); } } } // 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
- TreeViewAutomationPeer.cs
- TextTreeNode.cs
- XmlSchemaType.cs
- WS2007HttpBinding.cs
- ExceptionUtil.cs
- ItemsPresenter.cs
- GridItem.cs
- ThicknessAnimationUsingKeyFrames.cs
- OneToOneMappingSerializer.cs
- XamlStream.cs
- VersionPair.cs
- SymbolTable.cs
- DataRecord.cs
- TrustManagerMoreInformation.cs
- PasswordDeriveBytes.cs
- CaseCqlBlock.cs
- DictionarySectionHandler.cs
- XmlNotation.cs
- BuildProvidersCompiler.cs
- IndentTextWriter.cs
- Win32Native.cs
- IsolatedStorageException.cs
- XsltQilFactory.cs
- SectionVisual.cs
- CacheAxisQuery.cs
- webproxy.cs
- StyleCollectionEditor.cs
- TypeUtil.cs
- ConnectionManagementElement.cs
- WebPartAddingEventArgs.cs
- ScriptControl.cs
- PackWebRequest.cs
- DataKey.cs
- FormViewInsertEventArgs.cs
- EntityDataSourceContextCreatedEventArgs.cs
- PropertyChangedEventArgs.cs
- loginstatus.cs
- Journaling.cs
- EventDescriptorCollection.cs
- HttpHostedTransportConfiguration.cs
- XmlILOptimizerVisitor.cs
- DataGridColumnHeadersPresenter.cs
- SizeAnimation.cs
- DocumentPageView.cs
- TypeInitializationException.cs
- DesignerAdRotatorAdapter.cs
- CodeExporter.cs
- TimeSpanMinutesConverter.cs
- PrincipalPermission.cs
- TypeElement.cs
- XmlCustomFormatter.cs
- WindowsButton.cs
- EntityDataSourceColumn.cs
- XmlSchemaInferenceException.cs
- listitem.cs
- SqlWebEventProvider.cs
- IsolatedStorageException.cs
- ManifestSignatureInformation.cs
- NetSectionGroup.cs
- Material.cs
- MenuCommand.cs
- BindingListCollectionView.cs
- DebugHandleTracker.cs
- FloaterBaseParaClient.cs
- TextParagraphCache.cs
- RelationshipWrapper.cs
- SignedInfo.cs
- InstanceNormalEvent.cs
- ScrollBarAutomationPeer.cs
- CommonDialog.cs
- EditCommandColumn.cs
- EntityDataSourceColumn.cs
- CanExecuteRoutedEventArgs.cs
- ModelItemDictionary.cs
- AvTraceFormat.cs
- PropertyPath.cs
- PageParserFilter.cs
- Executor.cs
- HttpModuleAction.cs
- SecurityListenerSettingsLifetimeManager.cs
- RectIndependentAnimationStorage.cs
- SqlXmlStorage.cs
- PackageFilter.cs
- OleDbInfoMessageEvent.cs
- Vector3DValueSerializer.cs
- RijndaelManagedTransform.cs
- NetworkInformationException.cs
- HostExecutionContextManager.cs
- TagElement.cs
- StaticContext.cs
- ProxyWebPartManager.cs
- CustomPopupPlacement.cs
- PriorityQueue.cs
- PartialTrustHelpers.cs
- GenerateTemporaryTargetAssembly.cs
- ConcurrentStack.cs
- PowerModeChangedEventArgs.cs
- GeneralTransform3DGroup.cs
- FormattedTextSymbols.cs
- SByte.cs