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
- ThreadStateException.cs
- CodeAttributeDeclaration.cs
- ParameterToken.cs
- UncommonField.cs
- AttributeCollection.cs
- SqlClientWrapperSmiStream.cs
- DesignerActionKeyboardBehavior.cs
- TextBox.cs
- WebRequest.cs
- ObjectQueryExecutionPlan.cs
- EndpointInfo.cs
- Vector3DCollectionConverter.cs
- ToolStripDesigner.cs
- Operand.cs
- OleDbSchemaGuid.cs
- Config.cs
- XmlSchemaDatatype.cs
- HttpAsyncResult.cs
- XsdCachingReader.cs
- TypeUtil.cs
- Parallel.cs
- MaskedTextBox.cs
- RequestQueryParser.cs
- OdbcConnectionFactory.cs
- SimpleHandlerBuildProvider.cs
- InstanceData.cs
- X509CertificateInitiatorClientCredential.cs
- CommandManager.cs
- AssertSection.cs
- TraceProvider.cs
- HtmlTableRowCollection.cs
- DebugView.cs
- EntryWrittenEventArgs.cs
- BuildResultCache.cs
- Single.cs
- FixedSOMSemanticBox.cs
- ConfigPathUtility.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ComponentEvent.cs
- XmlDictionaryReaderQuotas.cs
- DataRecordObjectView.cs
- ConditionalAttribute.cs
- ComplexType.cs
- StrokeRenderer.cs
- EntityDataReader.cs
- RepeaterItem.cs
- Types.cs
- SqlDesignerDataSourceView.cs
- DataBindingCollection.cs
- XmlQueryType.cs
- ThicknessAnimation.cs
- IndexerNameAttribute.cs
- PartitionerStatic.cs
- KoreanCalendar.cs
- PropertyFilterAttribute.cs
- VectorConverter.cs
- AppModelKnownContentFactory.cs
- UpWmlPageAdapter.cs
- StringBuilder.cs
- PrinterUnitConvert.cs
- XXXOnTypeBuilderInstantiation.cs
- MetafileHeaderWmf.cs
- ContainerUIElement3D.cs
- QueryOperationResponseOfT.cs
- SoapInteropTypes.cs
- UpdateDelegates.Generated.cs
- IPipelineRuntime.cs
- ThaiBuddhistCalendar.cs
- CompiledELinqQueryState.cs
- SortDescription.cs
- Quaternion.cs
- CodeDomLoader.cs
- WindowsToolbarAsMenu.cs
- ExpressionDumper.cs
- streamingZipPartStream.cs
- Rotation3DAnimationUsingKeyFrames.cs
- EntitySqlQueryCacheEntry.cs
- NullReferenceException.cs
- sqlpipe.cs
- PersonalizableTypeEntry.cs
- RtType.cs
- ReflectionPermission.cs
- _ConnectStream.cs
- OneOfTypeConst.cs
- EmptyReadOnlyDictionaryInternal.cs
- InvalidFilterCriteriaException.cs
- StorageEntityTypeMapping.cs
- LabelLiteral.cs
- RegexCapture.cs
- WithStatement.cs
- DBConnection.cs
- ErrorTableItemStyle.cs
- ResourceContainer.cs
- ListDictionary.cs
- EventMappingSettingsCollection.cs
- PageWrapper.cs
- WorkflowViewManager.cs
- FormsAuthenticationCredentials.cs
- FamilyTypeface.cs
- DataGridViewCellConverter.cs