Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Common / internal / materialization / recordstatescratchpad.cs / 1 / 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; 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 (); 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. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System.Collections.Generic; using System.Data.Metadata.Edm; using System.Linq; using System.Linq.Expressions; 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 (); 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
- DataGridDetailsPresenter.cs
- XmlSerializerFactory.cs
- SizeChangedEventArgs.cs
- DefaultPrintController.cs
- UriParserTemplates.cs
- TypedTableBase.cs
- ExpandSegmentCollection.cs
- SQLBytes.cs
- DataChangedEventManager.cs
- MobileControlsSection.cs
- ConsoleKeyInfo.cs
- PerformanceCounterPermission.cs
- HttpListenerException.cs
- MenuItem.cs
- WebPartVerbsEventArgs.cs
- ActivityInterfaces.cs
- XmlUrlResolver.cs
- GeometryDrawing.cs
- XmlSigningNodeWriter.cs
- ChtmlTextBoxAdapter.cs
- MultipleViewPattern.cs
- HandleRef.cs
- UnsafeNativeMethods.cs
- ListSortDescription.cs
- SafeArrayRankMismatchException.cs
- XmlNullResolver.cs
- DataContractSerializerMessageContractImporter.cs
- CodeDesigner.cs
- localization.cs
- InteropEnvironment.cs
- DateTimeFormat.cs
- regiisutil.cs
- ToolboxItemCollection.cs
- PassportPrincipal.cs
- HashCoreRequest.cs
- FileLogRecordHeader.cs
- XmlExtensionFunction.cs
- IsolatedStorageFilePermission.cs
- ToolStripContentPanelRenderEventArgs.cs
- TableDetailsRow.cs
- XmlIgnoreAttribute.cs
- XmlSchemaSimpleContent.cs
- ObjectDataSourceDesigner.cs
- AttachInfo.cs
- SiteOfOriginPart.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- DbDataAdapter.cs
- StackBuilderSink.cs
- SqlCommandBuilder.cs
- SQLByte.cs
- Maps.cs
- TextTreeObjectNode.cs
- Int32KeyFrameCollection.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- Transform.cs
- LayoutEvent.cs
- TransportConfigurationTypeElementCollection.cs
- MonthCalendar.cs
- TraceProvider.cs
- EntityContainer.cs
- RtfToXamlLexer.cs
- ConnectionInterfaceCollection.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- DataControlReferenceCollection.cs
- XmlTextEncoder.cs
- CodeGeneratorOptions.cs
- XmlParserContext.cs
- _DigestClient.cs
- MonitoringDescriptionAttribute.cs
- DiscoveryDocumentLinksPattern.cs
- xdrvalidator.cs
- PointLightBase.cs
- Rotation3DAnimation.cs
- Site.cs
- DataGridViewCellConverter.cs
- DocumentSchemaValidator.cs
- WeakReferenceKey.cs
- CodeAssignStatement.cs
- FusionWrap.cs
- AccessDataSourceDesigner.cs
- XmlQueryRuntime.cs
- WebConfigurationFileMap.cs
- SqlRowUpdatingEvent.cs
- XhtmlBasicSelectionListAdapter.cs
- DataGridViewCellLinkedList.cs
- ResourceExpression.cs
- SqlConnectionStringBuilder.cs
- IERequestCache.cs
- CharAnimationBase.cs
- PrintDocument.cs
- ServiceTimeoutsBehavior.cs
- CannotUnloadAppDomainException.cs
- EqualityComparer.cs
- WebResourceAttribute.cs
- TableLayoutPanelDesigner.cs
- ComMethodElementCollection.cs
- ObjectDataSourceView.cs
- MethodCallTranslator.cs
- XmlAttributeOverrides.cs
- GridViewDeletedEventArgs.cs