Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeSecurityHelper.cs
- WindowsComboBox.cs
- DESCryptoServiceProvider.cs
- Fonts.cs
- SqlGatherConsumedAliases.cs
- DynamicFilterExpression.cs
- AssemblyBuilderData.cs
- JoinGraph.cs
- DataGridViewCellStyleConverter.cs
- DotExpr.cs
- UpDownBase.cs
- Vector3DConverter.cs
- ColorAnimationBase.cs
- SqlDataSourceWizardForm.cs
- SafeSystemMetrics.cs
- TrustLevelCollection.cs
- OleDbCommandBuilder.cs
- AssertFilter.cs
- DataGridViewHeaderCell.cs
- IntPtr.cs
- OutputCacheProfileCollection.cs
- RoutedEventArgs.cs
- DoubleSumAggregationOperator.cs
- GenericParameterDataContract.cs
- Pair.cs
- ChannelServices.cs
- DesignerAutoFormatCollection.cs
- ToolBarPanel.cs
- XmlUtil.cs
- EntityProviderFactory.cs
- XpsS0ValidatingLoader.cs
- WorkflowFileItem.cs
- MenuCommand.cs
- RightNameExpirationInfoPair.cs
- SystemParameters.cs
- ConfigXmlElement.cs
- SubstitutionResponseElement.cs
- RoleService.cs
- EnlistmentState.cs
- _ConnectOverlappedAsyncResult.cs
- NavigationPropertyEmitter.cs
- NodeFunctions.cs
- SqlVersion.cs
- ConsumerConnectionPointCollection.cs
- FileInfo.cs
- SecurityTokenProvider.cs
- MarkupExtensionReturnTypeAttribute.cs
- RuleElement.cs
- Merger.cs
- CannotUnloadAppDomainException.cs
- UInt64Storage.cs
- LoginDesignerUtil.cs
- DBSqlParserTable.cs
- DesignerObjectListAdapter.cs
- CopyNodeSetAction.cs
- WindowsAuthenticationEventArgs.cs
- DtcInterfaces.cs
- ElementProxy.cs
- DataGridViewCellStyle.cs
- MetadataArtifactLoaderFile.cs
- Menu.cs
- InvalidComObjectException.cs
- CellQuery.cs
- ReturnEventArgs.cs
- KeyInterop.cs
- AsyncResult.cs
- SchemaAttDef.cs
- XmlEncoding.cs
- Group.cs
- DataGridViewHitTestInfo.cs
- KeyboardEventArgs.cs
- UpdatePanelTrigger.cs
- XmlAttributeOverrides.cs
- InfoCardPolicy.cs
- ForeignKeyConstraint.cs
- StatusBarDrawItemEvent.cs
- DataGridViewCellConverter.cs
- MessageSmuggler.cs
- ApplicationGesture.cs
- KnownTypesProvider.cs
- SmtpTransport.cs
- FolderNameEditor.cs
- TaskFormBase.cs
- CodeRegionDirective.cs
- UIElement3D.cs
- _ListenerResponseStream.cs
- TemplatePagerField.cs
- MouseBinding.cs
- ListViewCommandEventArgs.cs
- QuaternionConverter.cs
- ObjectStorage.cs
- DataControlFieldCollection.cs
- ItemsPanelTemplate.cs
- DiscardableAttribute.cs
- FieldToken.cs
- SevenBitStream.cs
- PathSegmentCollection.cs
- OleDbException.cs
- ExcCanonicalXml.cs
- WebControlAdapter.cs