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
- PointConverter.cs
- UnsafeNativeMethods.cs
- Int16Storage.cs
- XmlAttributeAttribute.cs
- Variable.cs
- PagerSettings.cs
- DataBindingsDialog.cs
- CompatibleIComparer.cs
- ObjectSet.cs
- EntitySqlQueryCacheEntry.cs
- WindowsListViewItemCheckBox.cs
- TypeValidationEventArgs.cs
- FtpWebRequest.cs
- ClassHandlersStore.cs
- MetadataArtifactLoaderCompositeFile.cs
- PageStatePersister.cs
- SafeRightsManagementPubHandle.cs
- CachedRequestParams.cs
- DesignConnection.cs
- ValidationEventArgs.cs
- SqlUtil.cs
- FunctionParameter.cs
- XmlSchemaParticle.cs
- CodeTypeConstructor.cs
- AuthenticationService.cs
- TypeUtil.cs
- Label.cs
- ResponseBodyWriter.cs
- XamlPointCollectionSerializer.cs
- UnicodeEncoding.cs
- FormsAuthenticationCredentials.cs
- GetPageCompletedEventArgs.cs
- StsCommunicationException.cs
- IPipelineRuntime.cs
- Base64Stream.cs
- Odbc32.cs
- OrderedEnumerableRowCollection.cs
- XamlStream.cs
- DependencyPropertyKey.cs
- ChannelDispatcherCollection.cs
- HttpHandlersSection.cs
- AddingNewEventArgs.cs
- fixedPageContentExtractor.cs
- MessageBox.cs
- ContextProperty.cs
- QuaternionIndependentAnimationStorage.cs
- AdornerHitTestResult.cs
- ElementNotAvailableException.cs
- CollectionsUtil.cs
- InvalidEnumArgumentException.cs
- DataControlReferenceCollection.cs
- AssemblyAssociatedContentFileAttribute.cs
- CustomAttributeFormatException.cs
- InheritedPropertyDescriptor.cs
- Completion.cs
- XmlSchemaAnnotation.cs
- Point.cs
- Pair.cs
- List.cs
- NativeMsmqMessage.cs
- FileDataSourceCache.cs
- MultipartIdentifier.cs
- ControlDesigner.cs
- MethodMessage.cs
- PageEventArgs.cs
- LocalizableResourceBuilder.cs
- FeatureSupport.cs
- X509ChainPolicy.cs
- SpellerStatusTable.cs
- XmlConverter.cs
- ScriptDescriptor.cs
- UInt64Storage.cs
- TextElementEnumerator.cs
- CustomAttributeFormatException.cs
- SQLBinaryStorage.cs
- ProcessRequestArgs.cs
- RegexInterpreter.cs
- ServiceHttpHandlerFactory.cs
- Mapping.cs
- SourceFileBuildProvider.cs
- ArgumentsParser.cs
- SQLMembershipProvider.cs
- EncoderFallback.cs
- EventRoute.cs
- ProviderSettingsCollection.cs
- Container.cs
- ELinqQueryState.cs
- XmlObjectSerializerReadContextComplex.cs
- DesignerSerializationManager.cs
- AVElementHelper.cs
- EntityDataSourceView.cs
- ProcessStartInfo.cs
- RectIndependentAnimationStorage.cs
- safelinkcollection.cs
- SafeLibraryHandle.cs
- TraceLog.cs
- EntityDataSourceDesigner.cs
- XmlArrayItemAttribute.cs
- NavigationWindowAutomationPeer.cs
- DesignerCategoryAttribute.cs