Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------- // // 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
- ResourcePermissionBase.cs
- TextRangeEditLists.cs
- DoubleAnimation.cs
- KeyNotFoundException.cs
- DiscoveryDocumentSerializer.cs
- XmlSchemaException.cs
- DataChangedEventManager.cs
- BaseParagraph.cs
- DesignerTransactionCloseEvent.cs
- WinFormsUtils.cs
- FixedPage.cs
- HealthMonitoringSection.cs
- ListView.cs
- _IPv4Address.cs
- ParseNumbers.cs
- ClientConfigPaths.cs
- IDReferencePropertyAttribute.cs
- Condition.cs
- MenuItemStyle.cs
- CodeSpit.cs
- ProxyElement.cs
- ResourcePermissionBase.cs
- MultiSelectRootGridEntry.cs
- ConstraintEnumerator.cs
- ControlDesigner.cs
- PathFigureCollection.cs
- OleDbError.cs
- ReflectionHelper.cs
- ResourceContainer.cs
- CqlQuery.cs
- ClientBuildManager.cs
- BindingMAnagerBase.cs
- QueryStringHandler.cs
- TriggerCollection.cs
- TraceUtility.cs
- HtmlTableRow.cs
- TypeDescriptionProviderAttribute.cs
- Encoder.cs
- ListBoxChrome.cs
- XmlEntityReference.cs
- CodeStatement.cs
- QuaternionAnimationBase.cs
- BaseParaClient.cs
- ImagingCache.cs
- DataGridColumnStyleMappingNameEditor.cs
- HttpResponse.cs
- StructureChangedEventArgs.cs
- _SingleItemRequestCache.cs
- EntityDataSourceWizardForm.cs
- HandoffBehavior.cs
- SiteMapNodeItem.cs
- OperationInfo.cs
- ComponentEvent.cs
- PagedDataSource.cs
- StrongNameUtility.cs
- StateBag.cs
- DbSetClause.cs
- DependencyPropertyChangedEventArgs.cs
- EntityContainer.cs
- GCHandleCookieTable.cs
- DependencySource.cs
- Knowncolors.cs
- DetailsViewRowCollection.cs
- DynamicDataRouteHandler.cs
- ExpressionBinding.cs
- BamlLocalizationDictionary.cs
- COM2ComponentEditor.cs
- Application.cs
- MimeMultiPart.cs
- PolicyManager.cs
- InternalMappingException.cs
- SqlNotificationEventArgs.cs
- WebHttpBehavior.cs
- MetadataSource.cs
- EntitySetRetriever.cs
- SettingsAttributeDictionary.cs
- TypeDescriptor.cs
- GacUtil.cs
- MobileUITypeEditor.cs
- webclient.cs
- BitStack.cs
- Nullable.cs
- ManagedWndProcTracker.cs
- EnumDataContract.cs
- GeneralTransformGroup.cs
- TypeCodeDomSerializer.cs
- Monitor.cs
- TdsParserStateObject.cs
- SymbolUsageManager.cs
- EraserBehavior.cs
- CompilerErrorCollection.cs
- ThemeDirectoryCompiler.cs
- MimeBasePart.cs
- TextLine.cs
- ToolStripDropDownClosingEventArgs.cs
- ExpressionNode.cs
- GZipDecoder.cs
- DateTimeConverter2.cs
- AnnotationResourceChangedEventArgs.cs
- MarkupWriter.cs