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
- ToolStripDesignerAvailabilityAttribute.cs
- ZipFileInfo.cs
- SocketStream.cs
- Comparer.cs
- XamlPathDataSerializer.cs
- SqlNodeAnnotation.cs
- ContentElementAutomationPeer.cs
- NonParentingControl.cs
- DragEventArgs.cs
- CheckPair.cs
- FormViewUpdatedEventArgs.cs
- InternalResources.cs
- PreservationFileWriter.cs
- BaseCollection.cs
- UdpTransportSettings.cs
- XXXOnTypeBuilderInstantiation.cs
- ViewStateModeByIdAttribute.cs
- TemplateBamlTreeBuilder.cs
- UniqueConstraint.cs
- SessionEndedEventArgs.cs
- Point4D.cs
- WorkingDirectoryEditor.cs
- LinkedResource.cs
- AutoCompleteStringCollection.cs
- Double.cs
- ProvidePropertyAttribute.cs
- TimeSpanValidator.cs
- GlyphElement.cs
- RijndaelManaged.cs
- brushes.cs
- CompositeScriptReference.cs
- Util.cs
- WebRequestModuleElement.cs
- HttpBindingExtension.cs
- PatternMatcher.cs
- CqlLexerHelpers.cs
- CreateRefExpr.cs
- ShutDownListener.cs
- AppDomainManager.cs
- AsnEncodedData.cs
- EntityConnection.cs
- ExtensionSimplifierMarkupObject.cs
- XhtmlBasicPanelAdapter.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- MsmqException.cs
- XmlSchemaGroupRef.cs
- URLIdentityPermission.cs
- SmiSettersStream.cs
- Root.cs
- Rect3D.cs
- IImplicitResourceProvider.cs
- GregorianCalendarHelper.cs
- TypeInfo.cs
- SafeProcessHandle.cs
- HttpModuleCollection.cs
- ExtendedPropertyCollection.cs
- ErrorStyle.cs
- StructuredTypeEmitter.cs
- IUnknownConstantAttribute.cs
- EventLogEntry.cs
- FlowLayout.cs
- ImportCatalogPart.cs
- SByte.cs
- ReadOnlyCollection.cs
- ChangePasswordDesigner.cs
- ListViewInsertEventArgs.cs
- GetLedgerRequest.cs
- InkPresenterAutomationPeer.cs
- GenericPrincipal.cs
- View.cs
- MenuStrip.cs
- NamespaceList.cs
- VariantWrapper.cs
- ProtocolsConfigurationHandler.cs
- ValidatorCompatibilityHelper.cs
- CapabilitiesAssignment.cs
- XamlToRtfParser.cs
- SplineKeyFrames.cs
- ListSortDescription.cs
- ToolboxItemWrapper.cs
- TablePattern.cs
- DescendantBaseQuery.cs
- HttpVersion.cs
- Dump.cs
- SqlCacheDependencyDatabase.cs
- RemotingConfiguration.cs
- BamlRecordHelper.cs
- TCPClient.cs
- BrowserCapabilitiesCompiler.cs
- RawKeyboardInputReport.cs
- InfoCardX509Validator.cs
- HtmlTableRow.cs
- EventSource.cs
- XmlSchemaSimpleContentExtension.cs
- DrawingBrush.cs
- TrackingExtract.cs
- BindingGraph.cs
- SqlTrackingWorkflowInstance.cs
- TemplateBindingExtensionConverter.cs
- SchemaImporterExtensionElementCollection.cs