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
- LifetimeMonitor.cs
- Mutex.cs
- HebrewNumber.cs
- QilPatternFactory.cs
- DSASignatureFormatter.cs
- InitialServerConnectionReader.cs
- HttpApplicationStateWrapper.cs
- QueueProcessor.cs
- SmiRequestExecutor.cs
- StrokeNodeData.cs
- SafeBitVector32.cs
- ToolStripSplitStackLayout.cs
- AdministrationHelpers.cs
- ToolZoneDesigner.cs
- MailMessage.cs
- HtmlInputControl.cs
- CommandLineParser.cs
- Internal.cs
- SqlCommandBuilder.cs
- ReflectionPermission.cs
- MessageFormatterConverter.cs
- CalculatedColumn.cs
- DataSourceHelper.cs
- CacheEntry.cs
- WebPartExportVerb.cs
- XmlSchemaSequence.cs
- HttpMethodConstraint.cs
- ConditionalAttribute.cs
- EdmToObjectNamespaceMap.cs
- GatewayDefinition.cs
- TraceSection.cs
- EventBuilder.cs
- AccessKeyManager.cs
- ProcessHost.cs
- FlowDocumentScrollViewer.cs
- ISCIIEncoding.cs
- XmlAutoDetectWriter.cs
- PlanCompilerUtil.cs
- BlurBitmapEffect.cs
- CodeCastExpression.cs
- ObjectComplexPropertyMapping.cs
- ApplicationActivator.cs
- ActivitySurrogateSelector.cs
- XmlEncoding.cs
- RoleService.cs
- ETagAttribute.cs
- SQLGuidStorage.cs
- TabPage.cs
- AssociationType.cs
- Exceptions.cs
- SamlSecurityToken.cs
- StringInfo.cs
- UnsafeNativeMethods.cs
- WindowsContainer.cs
- DataGridViewControlCollection.cs
- GridViewDeleteEventArgs.cs
- ContextMenuStripGroup.cs
- backend.cs
- SafeRightsManagementSessionHandle.cs
- SafeSecurityHelper.cs
- TokenizerHelper.cs
- RegionIterator.cs
- SystemColorTracker.cs
- PackUriHelper.cs
- BooleanFacetDescriptionElement.cs
- MethodCallTranslator.cs
- HuffmanTree.cs
- RuntimeHelpers.cs
- Unit.cs
- CustomAttributeSerializer.cs
- DocumentOutline.cs
- PackageRelationshipSelector.cs
- PropertyBuilder.cs
- TypeUtil.cs
- ContextMenuStripGroupCollection.cs
- CharEntityEncoderFallback.cs
- XmlException.cs
- ControlBindingsConverter.cs
- KeyGesture.cs
- HandlerFactoryCache.cs
- TextEditorSelection.cs
- XmlSchemaExternal.cs
- ArrayEditor.cs
- NavigationCommands.cs
- PasswordPropertyTextAttribute.cs
- RangeValidator.cs
- SelectionItemPattern.cs
- TextModifier.cs
- SHA512.cs
- PictureBox.cs
- DependencyObjectPropertyDescriptor.cs
- WebBrowserDocumentCompletedEventHandler.cs
- HttpRequest.cs
- EncodingInfo.cs
- EndpointAddressElementBase.cs
- GridViewItemAutomationPeer.cs
- Operand.cs
- RegularExpressionValidator.cs
- SqlComparer.cs
- FragmentQuery.cs