Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / internal / materialization / recordstatescratchpad.cs / 1599186 / recordstatescratchpad.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System.Collections.Generic; using System.Data.Metadata.Edm; using System.Linq; using System.Linq.Expressions; using System.Runtime.CompilerServices; namespace System.Data.Common.Internal.Materialization { ////// Used in the Translator to aggregate information about a (nested) record /// state. After the translator visits the columnMaps, it will compile /// the recordState(s) which produces an immutable RecordStateFactory that /// can be shared amongst many query instances. /// internal class RecordStateScratchpad { private int _stateSlotNumber; internal int StateSlotNumber { get { return _stateSlotNumber; } set { _stateSlotNumber = value; } } private int _columnCount; internal int ColumnCount { get { return _columnCount; } set { _columnCount = value; } } private DataRecordInfo _dataRecordInfo; internal DataRecordInfo DataRecordInfo { get { return _dataRecordInfo; } set { _dataRecordInfo = value; } } private Expression _gatherData; internal Expression GatherData { get { return _gatherData; } set { _gatherData = value; } } private string[] _propertyNames; internal string[] PropertyNames { get { return _propertyNames; } set { _propertyNames = value; } } private TypeUsage[] _typeUsages; internal TypeUsage[] TypeUsages { get { return _typeUsages; } set { _typeUsages = value; } } private List_nestedRecordStateScratchpads = new List (); [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)] internal RecordStateFactory Compile() { RecordStateFactory[] nestedRecordStateFactories = new RecordStateFactory[_nestedRecordStateScratchpads.Count]; for (int i = 0; i < nestedRecordStateFactories.Length; i++) { nestedRecordStateFactories[i] = _nestedRecordStateScratchpads[i].Compile(); } RecordStateFactory result = (RecordStateFactory)Activator.CreateInstance(typeof(RecordStateFactory), new object[] { this.StateSlotNumber, this.ColumnCount, nestedRecordStateFactories, this.DataRecordInfo, this.GatherData, this.PropertyNames, this.TypeUsages }); return result; } } } // 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
- SmiMetaDataProperty.cs
- DocumentEventArgs.cs
- DetailsViewRow.cs
- DataGridItem.cs
- ResourceDefaultValueAttribute.cs
- DnsPermission.cs
- PenLineCapValidation.cs
- Delegate.cs
- IndexedEnumerable.cs
- TypedAsyncResult.cs
- IdleTimeoutMonitor.cs
- CharKeyFrameCollection.cs
- SRDisplayNameAttribute.cs
- PeerNameRegistration.cs
- DependencyPropertyHelper.cs
- DocumentPageView.cs
- MultiBindingExpression.cs
- PackageStore.cs
- SuspendDesigner.cs
- _Events.cs
- LocatorPart.cs
- RequestCacheManager.cs
- XmlWriterTraceListener.cs
- QueryStringParameter.cs
- BitmapPalette.cs
- BaseInfoTable.cs
- DeclaredTypeElement.cs
- TypeElement.cs
- UrlAuthFailureHandler.cs
- ManagementEventWatcher.cs
- Panel.cs
- DataServiceHost.cs
- ToolStripContentPanelRenderEventArgs.cs
- IOThreadTimer.cs
- ModuleElement.cs
- DataGridViewRowHeaderCell.cs
- DomNameTable.cs
- BlockCollection.cs
- DbConnectionPoolOptions.cs
- XmlValidatingReader.cs
- SchemaTableColumn.cs
- SqlUtils.cs
- WindowsImpersonationContext.cs
- InputElement.cs
- ImageMetadata.cs
- DeferredReference.cs
- UnsafeNativeMethodsCLR.cs
- SafeNativeMethods.cs
- XmlDocumentType.cs
- XslTransformFileEditor.cs
- FixedSOMGroup.cs
- CopyOfAction.cs
- AdCreatedEventArgs.cs
- COMException.cs
- WebConfigurationHostFileChange.cs
- ComponentDispatcher.cs
- QueryCacheEntry.cs
- InlineObject.cs
- SingleTagSectionHandler.cs
- WorkflowRuntimeEndpoint.cs
- DataSetViewSchema.cs
- validationstate.cs
- brushes.cs
- Clock.cs
- SimpleBitVector32.cs
- DateTimeFormatInfoScanner.cs
- JsonEnumDataContract.cs
- OdbcErrorCollection.cs
- formatter.cs
- UserInitiatedNavigationPermission.cs
- HtmlTableCellCollection.cs
- FigureParagraph.cs
- StringComparer.cs
- SourceFilter.cs
- FontCollection.cs
- UIElement3D.cs
- ServiceSettingsResponseInfo.cs
- filewebrequest.cs
- IPPacketInformation.cs
- MsmqChannelFactory.cs
- DataGrid.cs
- ClosureBinding.cs
- TypeExtension.cs
- ApplicationProxyInternal.cs
- StreamingContext.cs
- MaskPropertyEditor.cs
- DataContractSerializerElement.cs
- SqlCrossApplyToCrossJoin.cs
- PackagingUtilities.cs
- StatusBarPanel.cs
- DiscreteKeyFrames.cs
- AttachedAnnotation.cs
- RSACryptoServiceProvider.cs
- KnownIds.cs
- TextTreeUndoUnit.cs
- QueryCreatedEventArgs.cs
- XmlUTF8TextReader.cs
- ConfigurationException.cs
- BitmapFrameEncode.cs
- TypedTableBase.cs