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
- PropertyNames.cs
- MetadataException.cs
- GroupQuery.cs
- DbSetClause.cs
- DragEventArgs.cs
- ParseHttpDate.cs
- XPathQilFactory.cs
- SRef.cs
- Task.cs
- CodeAttributeDeclarationCollection.cs
- LoadedOrUnloadedOperation.cs
- CodeTypeParameterCollection.cs
- ColumnReorderedEventArgs.cs
- log.cs
- BitmapMetadataBlob.cs
- DesignerOptionService.cs
- PolicyUtility.cs
- DataReaderContainer.cs
- RandomNumberGenerator.cs
- UnsettableComboBox.cs
- XmlValueConverter.cs
- TransformCollection.cs
- WindowsTab.cs
- XmlAutoDetectWriter.cs
- StylusPoint.cs
- ConstraintStruct.cs
- TextEditorLists.cs
- CodeDOMProvider.cs
- SoapInteropTypes.cs
- designeractionbehavior.cs
- CookieParameter.cs
- ExtenderControl.cs
- InfoCardSymmetricCrypto.cs
- ActivationService.cs
- Ray3DHitTestResult.cs
- KnownTypesProvider.cs
- MethodBody.cs
- XmlObjectSerializerReadContext.cs
- ImageBrush.cs
- Sentence.cs
- ByteAnimationUsingKeyFrames.cs
- IndexOutOfRangeException.cs
- SqlStream.cs
- SoapFault.cs
- Utils.cs
- EntityViewGenerationConstants.cs
- CultureInfoConverter.cs
- DateTimeOffsetConverter.cs
- AstTree.cs
- ValueType.cs
- HttpResponseWrapper.cs
- DependencyObjectProvider.cs
- TokenBasedSet.cs
- WorkflowItemPresenter.cs
- Soap.cs
- SerializationHelper.cs
- ReachObjectContext.cs
- IdSpace.cs
- ISAPIRuntime.cs
- ActivityBindForm.cs
- TransformPattern.cs
- __ComObject.cs
- DetailsViewDeletedEventArgs.cs
- Span.cs
- StrokeCollection2.cs
- DeferredReference.cs
- OpenFileDialog.cs
- EntityTransaction.cs
- CodeTypeParameter.cs
- OracleConnectionFactory.cs
- NullableDecimalMinMaxAggregationOperator.cs
- NetworkCredential.cs
- ValidationUtility.cs
- HeaderedItemsControl.cs
- DataMisalignedException.cs
- CalculatedColumn.cs
- ReachDocumentReferenceCollectionSerializer.cs
- DeploymentSection.cs
- ExpressionList.cs
- DataGridViewHitTestInfo.cs
- RawStylusInput.cs
- ToolStripLocationCancelEventArgs.cs
- ACE.cs
- MulticastOption.cs
- ReferencedCollectionType.cs
- MergeFailedEvent.cs
- DefaultValueAttribute.cs
- XmlUtil.cs
- InternalMappingException.cs
- DbProviderFactories.cs
- ConnectionInterfaceCollection.cs
- XDeferredAxisSource.cs
- Button.cs
- XsdBuildProvider.cs
- ColumnWidthChangingEvent.cs
- WindowsRegion.cs
- ContextMarshalException.cs
- XmlChildEnumerator.cs
- TimeSpanOrInfiniteValidator.cs
- Calendar.cs