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
- XPathAncestorQuery.cs
- LoginCancelEventArgs.cs
- QilExpression.cs
- MailAddressCollection.cs
- codemethodreferenceexpression.cs
- ColumnCollection.cs
- ImportContext.cs
- SiteMapSection.cs
- AsyncSerializedWorker.cs
- GenericWebPart.cs
- SpecialTypeDataContract.cs
- BamlRecords.cs
- EnvelopedPkcs7.cs
- NameValuePermission.cs
- LineBreak.cs
- Win32KeyboardDevice.cs
- AsyncOperationManager.cs
- AspNetHostingPermission.cs
- CodeThrowExceptionStatement.cs
- XslTransform.cs
- KnownTypes.cs
- CreateUserErrorEventArgs.cs
- _NativeSSPI.cs
- ObjectItemNoOpAssemblyLoader.cs
- FilteredReadOnlyMetadataCollection.cs
- HebrewCalendar.cs
- ClassHandlersStore.cs
- XmlWrappingReader.cs
- IndependentAnimationStorage.cs
- DependencyObjectProvider.cs
- Single.cs
- TextElement.cs
- PersonalizationState.cs
- UserControl.cs
- PerspectiveCamera.cs
- relpropertyhelper.cs
- CodeNamespaceImportCollection.cs
- WhitespaceRuleLookup.cs
- SqlConnectionHelper.cs
- EvidenceTypeDescriptor.cs
- WorkItem.cs
- ValidationHelper.cs
- ObjectDataSourceDisposingEventArgs.cs
- TraceSection.cs
- Util.cs
- RegexRunnerFactory.cs
- LayoutExceptionEventArgs.cs
- WebPartHeaderCloseVerb.cs
- QilVisitor.cs
- Button.cs
- ISCIIEncoding.cs
- AtlasWeb.Designer.cs
- DefaultObjectMappingItemCollection.cs
- NotifyIcon.cs
- LayoutManager.cs
- RootBrowserWindowProxy.cs
- FolderBrowserDialog.cs
- SamlAuthorizationDecisionStatement.cs
- BevelBitmapEffect.cs
- ProgressBarBrushConverter.cs
- Monitor.cs
- SqlDataSourceSelectingEventArgs.cs
- DbBuffer.cs
- XmlUtf8RawTextWriter.cs
- Journal.cs
- MergeFilterQuery.cs
- ByteStack.cs
- RC2.cs
- QuaternionAnimationUsingKeyFrames.cs
- BoundingRectTracker.cs
- ListenerElementsCollection.cs
- LocalFileSettingsProvider.cs
- Vector3DCollectionValueSerializer.cs
- PropertyChangedEventArgs.cs
- SchemaNotation.cs
- CompilerCollection.cs
- PtsHost.cs
- PersistenceMetadataNamespace.cs
- EventTask.cs
- CoTaskMemHandle.cs
- EntityConnectionStringBuilderItem.cs
- BaseHashHelper.cs
- FontUnitConverter.cs
- TextEffectCollection.cs
- ConfigurationValue.cs
- BufferBuilder.cs
- NullRuntimeConfig.cs
- EntityDesignPluralizationHandler.cs
- DrawingContext.cs
- SiteMapNode.cs
- RoutedEvent.cs
- Vector3DValueSerializer.cs
- ConfigXmlComment.cs
- DomainUpDown.cs
- ArrayWithOffset.cs
- ConvertEvent.cs
- CodeNamespace.cs
- RTLAwareMessageBox.cs
- EnvelopedPkcs7.cs
- EpmSourcePathSegment.cs