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
- _AutoWebProxyScriptHelper.cs
- ConcurrentQueue.cs
- XslCompiledTransform.cs
- SystemIcmpV4Statistics.cs
- StringArrayConverter.cs
- CompilerGeneratedAttribute.cs
- MethodToken.cs
- EventsTab.cs
- AuthenticateEventArgs.cs
- securestring.cs
- ReflectPropertyDescriptor.cs
- Lazy.cs
- PriorityQueue.cs
- UserControl.cs
- TypeContext.cs
- SafeNativeMethods.cs
- UpnEndpointIdentityExtension.cs
- WebConfigurationFileMap.cs
- Signature.cs
- WebSysDisplayNameAttribute.cs
- SpellerError.cs
- PopupEventArgs.cs
- ToolStripProgressBar.cs
- ScrollItemProviderWrapper.cs
- ResourceProperty.cs
- MailDefinition.cs
- Delay.cs
- Transform3DGroup.cs
- ConfigurationStrings.cs
- FormViewModeEventArgs.cs
- Binding.cs
- RuleInfoComparer.cs
- XmlSchemaGroupRef.cs
- Utilities.cs
- WinFormsUtils.cs
- PresentationSource.cs
- SmtpDigestAuthenticationModule.cs
- ClosureBinding.cs
- ScrollItemPatternIdentifiers.cs
- MetaChildrenColumn.cs
- WindowsFont.cs
- IssuanceLicense.cs
- WhitespaceRule.cs
- ReadContentAsBinaryHelper.cs
- WebColorConverter.cs
- SoapFormatExtensions.cs
- WebResourceAttribute.cs
- CustomPopupPlacement.cs
- RadioButton.cs
- BidOverLoads.cs
- ValidationHelpers.cs
- Native.cs
- SignatureGenerator.cs
- BlockUIContainer.cs
- ExpressionVisitorHelpers.cs
- Html32TextWriter.cs
- RelationshipType.cs
- FixedPageAutomationPeer.cs
- DataChangedEventManager.cs
- UrlPath.cs
- TextElementCollection.cs
- CodeTypeConstructor.cs
- SkinBuilder.cs
- DataReceivedEventArgs.cs
- PropertyPanel.cs
- WebPartDisplayModeCancelEventArgs.cs
- EventManager.cs
- PerformanceCounterCategory.cs
- DynamicPropertyReader.cs
- IdentitySection.cs
- RenderOptions.cs
- ProfileModule.cs
- UnmanagedMemoryStreamWrapper.cs
- WindowsGraphicsWrapper.cs
- InstanceNotFoundException.cs
- SaveFileDialog.cs
- RemotingHelper.cs
- DeviceFilterEditorDialog.cs
- MouseEvent.cs
- ToolStripItemClickedEventArgs.cs
- SqlDataSource.cs
- MenuItem.cs
- Operator.cs
- CustomSignedXml.cs
- TreeNodeBindingCollection.cs
- TemplateInstanceAttribute.cs
- SourceLineInfo.cs
- MaterialCollection.cs
- MatrixTransform.cs
- RecordBuilder.cs
- SMSvcHost.cs
- AppDomainGrammarProxy.cs
- ResourceSet.cs
- HGlobalSafeHandle.cs
- ToolboxComponentsCreatingEventArgs.cs
- NativeCppClassAttribute.cs
- SafeRegistryHandle.cs
- CodeDelegateCreateExpression.cs
- ComplexObject.cs
- WebPartDeleteVerb.cs