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
- SkewTransform.cs
- PropertyDescriptor.cs
- datacache.cs
- HMACMD5.cs
- CodeCompiler.cs
- OrthographicCamera.cs
- AnnotationObservableCollection.cs
- XmlExtensionFunction.cs
- HttpHandler.cs
- NodeCounter.cs
- ResourceType.cs
- StylusLogic.cs
- AppSettingsExpressionBuilder.cs
- DragDeltaEventArgs.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- Types.cs
- InfiniteIntConverter.cs
- LineMetrics.cs
- Rule.cs
- QuaternionIndependentAnimationStorage.cs
- ItemsPresenter.cs
- EntryPointNotFoundException.cs
- DataGridViewCheckBoxColumn.cs
- TransformConverter.cs
- XmlReflectionMember.cs
- DocumentApplicationJournalEntry.cs
- OpenTypeLayoutCache.cs
- Validator.cs
- ConnectionManagementElement.cs
- PopupRoot.cs
- DataGridViewColumnConverter.cs
- DataServiceStreamResponse.cs
- PropertyCollection.cs
- RoleManagerEventArgs.cs
- TaiwanCalendar.cs
- HtmlButton.cs
- AuthenticateEventArgs.cs
- HeaderedItemsControl.cs
- NativeStructs.cs
- PageAdapter.cs
- ProxyManager.cs
- CodeTypeParameter.cs
- ElementMarkupObject.cs
- StateMachine.cs
- smtppermission.cs
- HtmlTableCell.cs
- HttpContextWrapper.cs
- ActiveDocumentEvent.cs
- Switch.cs
- SQLBytes.cs
- VectorConverter.cs
- TextMetrics.cs
- XmlException.cs
- FileReservationCollection.cs
- StoragePropertyMapping.cs
- HttpHeaderCollection.cs
- ProcessHostMapPath.cs
- RotateTransform.cs
- AmbiguousMatchException.cs
- ComponentResourceKeyConverter.cs
- XmlUtil.cs
- SqlNotificationEventArgs.cs
- PointCollectionConverter.cs
- FormView.cs
- GridViewRow.cs
- UriTemplateMatchException.cs
- CodeNamespaceImport.cs
- PointHitTestParameters.cs
- ImageListStreamer.cs
- SafeNativeMethods.cs
- RequestQueue.cs
- CustomTrackingRecord.cs
- EnvelopeVersion.cs
- ContentTextAutomationPeer.cs
- OutputCacheModule.cs
- DynamicDiscoveryDocument.cs
- PackageDigitalSignatureManager.cs
- GlobalProxySelection.cs
- VirtualPath.cs
- DecoderReplacementFallback.cs
- DocumentEventArgs.cs
- LinearKeyFrames.cs
- QueryableFilterUserControl.cs
- XmlDataCollection.cs
- SplitContainer.cs
- DataTableReaderListener.cs
- RuntimeConfig.cs
- SpotLight.cs
- ApplicationSecurityManager.cs
- NativeCppClassAttribute.cs
- ContextMenuAutomationPeer.cs
- PtsHelper.cs
- COAUTHIDENTITY.cs
- WrapPanel.cs
- GridViewSelectEventArgs.cs
- WmlTextBoxAdapter.cs
- MatrixValueSerializer.cs
- SqlLiftIndependentRowExpressions.cs
- AttributeAction.cs
- WindowsGraphics2.cs