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
- _BufferOffsetSize.cs
- LinqDataSourceHelper.cs
- WebContext.cs
- Coordinator.cs
- ApplyTemplatesAction.cs
- EntityDataSourceViewSchema.cs
- WindowsGraphicsCacheManager.cs
- UpdatableWrapper.cs
- GridViewSelectEventArgs.cs
- x509store.cs
- Win32SafeHandles.cs
- DbModificationCommandTree.cs
- ReadOnlyCollection.cs
- CommandField.cs
- SecondaryViewProvider.cs
- Compress.cs
- Point3DAnimationUsingKeyFrames.cs
- PageParserFilter.cs
- ServiceDurableInstanceContextProvider.cs
- printdlgexmarshaler.cs
- SpeechSeg.cs
- RegexCompilationInfo.cs
- ClassicBorderDecorator.cs
- TrackingProfileDeserializationException.cs
- DataGridViewRowEventArgs.cs
- designeractionbehavior.cs
- Privilege.cs
- ApplicationGesture.cs
- DbConnectionStringBuilder.cs
- ListenerElementsCollection.cs
- UIPropertyMetadata.cs
- ListItem.cs
- SwitchLevelAttribute.cs
- DefaultTraceListener.cs
- IisTraceWebEventProvider.cs
- EncoderNLS.cs
- ActiveXMessageFormatter.cs
- UnmanagedMarshal.cs
- ParagraphResult.cs
- ListDictionaryInternal.cs
- RestClientProxyHandler.cs
- precedingquery.cs
- TableLayoutPanelCellPosition.cs
- GuidTagList.cs
- StringResourceManager.cs
- SqlConnectionPoolGroupProviderInfo.cs
- XmlSchemaValidator.cs
- HttpWrapper.cs
- EraserBehavior.cs
- CriticalExceptions.cs
- SerializerProvider.cs
- Rotation3DAnimationBase.cs
- GridViewPageEventArgs.cs
- ImageFormatConverter.cs
- EntityConnection.cs
- LazyInitializer.cs
- WebPartEditVerb.cs
- DbCommandTree.cs
- ArgumentNullException.cs
- DefaultPropertyAttribute.cs
- StateMachine.cs
- SslStream.cs
- WebControlsSection.cs
- ToolStripDropTargetManager.cs
- SoapHeaderAttribute.cs
- CollectionExtensions.cs
- PeerDuplexChannel.cs
- CopyAttributesAction.cs
- Int64.cs
- TypeValidationEventArgs.cs
- ManipulationPivot.cs
- DeflateStream.cs
- WebEncodingValidator.cs
- ExpressionList.cs
- ZipIOBlockManager.cs
- EmptyControlCollection.cs
- ExcludePathInfo.cs
- OptionUsage.cs
- HtmlSelect.cs
- ServiceDebugBehavior.cs
- CustomAttributeSerializer.cs
- GlyphRunDrawing.cs
- WindowsScrollBarBits.cs
- ProtocolsConfigurationEntry.cs
- IntegerValidatorAttribute.cs
- ACL.cs
- DuplicateWaitObjectException.cs
- FunctionQuery.cs
- RepeaterDataBoundAdapter.cs
- ColorAnimationUsingKeyFrames.cs
- TemplateNodeContextMenu.cs
- AdornedElementPlaceholder.cs
- XmlDataSource.cs
- ProcessManager.cs
- UrlAuthFailedErrorFormatter.cs
- UIElementHelper.cs
- TextDecorationCollectionConverter.cs
- SingleObjectCollection.cs
- InputLanguage.cs
- TextSimpleMarkerProperties.cs