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
- StagingAreaInputItem.cs
- DataGridViewLinkColumn.cs
- TextDecorationCollectionConverter.cs
- WebBrowserNavigatedEventHandler.cs
- DataRowCollection.cs
- CharacterHit.cs
- BoundsDrawingContextWalker.cs
- PDBReader.cs
- Wizard.cs
- DecimalFormatter.cs
- ComEventsHelper.cs
- MessageDecoder.cs
- COM2PropertyDescriptor.cs
- ConfigurationValidatorBase.cs
- SnapLine.cs
- CachedPathData.cs
- DrawingContextDrawingContextWalker.cs
- PaginationProgressEventArgs.cs
- DocumentGrid.cs
- SqlDelegatedTransaction.cs
- SelectedDatesCollection.cs
- DeleteHelper.cs
- TraceProvider.cs
- DirectoryInfo.cs
- TcpChannelListener.cs
- SqlInternalConnection.cs
- SqlClientWrapperSmiStreamChars.cs
- RichTextBoxAutomationPeer.cs
- QuotedPrintableStream.cs
- WhileDesigner.xaml.cs
- GridViewColumnCollection.cs
- XmlSchemaAny.cs
- ServiceOperationParameter.cs
- xmlfixedPageInfo.cs
- AnonymousIdentificationModule.cs
- DbParameterHelper.cs
- StaticContext.cs
- BufferModesCollection.cs
- cookieexception.cs
- TransportSecurityBindingElement.cs
- IncrementalCompileAnalyzer.cs
- CorrelationValidator.cs
- ApplicationCommands.cs
- XPathQilFactory.cs
- DataObjectMethodAttribute.cs
- QueueProcessor.cs
- WebZone.cs
- EndpointDiscoveryMetadata11.cs
- AutomationElement.cs
- DataGridTable.cs
- PixelFormats.cs
- WebDescriptionAttribute.cs
- Random.cs
- TrustSection.cs
- CacheEntry.cs
- AmbientValueAttribute.cs
- ResizeBehavior.cs
- initElementDictionary.cs
- DBSqlParserColumnCollection.cs
- DbXmlEnabledProviderManifest.cs
- Utils.cs
- StreamGeometryContext.cs
- MissingManifestResourceException.cs
- DrawingBrush.cs
- DataGridCellInfo.cs
- EditCommandColumn.cs
- Table.cs
- ContextProperty.cs
- Calendar.cs
- ScriptRegistrationManager.cs
- MobileControlBuilder.cs
- DataGridHyperlinkColumn.cs
- SelectionPatternIdentifiers.cs
- MemoryPressure.cs
- SecurityElement.cs
- AssemblyResolver.cs
- LoginCancelEventArgs.cs
- NestedContainer.cs
- MethodCallConverter.cs
- SQLByteStorage.cs
- TraceContextRecord.cs
- SymbolType.cs
- WebContext.cs
- MissingMemberException.cs
- XmlArrayAttribute.cs
- ConditionalAttribute.cs
- SigningDialog.cs
- ExtendedProtectionPolicy.cs
- Win32Native.cs
- EventPropertyMap.cs
- HMACSHA256.cs
- RequiredAttributeAttribute.cs
- RowTypeElement.cs
- SafeRightsManagementPubHandle.cs
- XmlEncodedRawTextWriter.cs
- HttpConfigurationContext.cs
- LiteralTextParser.cs
- Guid.cs
- StringCollectionEditor.cs
- MembershipAdapter.cs