Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Common / internal / materialization / recordstatescratchpad.cs / 2 / 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
- DataRecord.cs
- _CookieModule.cs
- DrawingContextDrawingContextWalker.cs
- ColorInterpolationModeValidation.cs
- LabelInfo.cs
- DataGridViewBindingCompleteEventArgs.cs
- HierarchicalDataTemplate.cs
- ListDictionaryInternal.cs
- ParserHooks.cs
- FacetValueContainer.cs
- NameObjectCollectionBase.cs
- TextDocumentView.cs
- SHA512Managed.cs
- ExpressionBindingCollection.cs
- CodeTypeMember.cs
- MDIControlStrip.cs
- AnonymousIdentificationSection.cs
- TTSEngineTypes.cs
- XmlSortKeyAccumulator.cs
- SeverityFilter.cs
- GroupBox.cs
- StorageEndPropertyMapping.cs
- Sql8ExpressionRewriter.cs
- DataGridTable.cs
- DrawingContext.cs
- ParseNumbers.cs
- XmlRawWriter.cs
- filewebrequest.cs
- DataPager.cs
- SafeCryptoHandles.cs
- dbenumerator.cs
- TextReader.cs
- ReadOnlyTernaryTree.cs
- DataPagerFieldCommandEventArgs.cs
- BooleanExpr.cs
- PbrsForward.cs
- StorageAssociationTypeMapping.cs
- SelfSignedCertificate.cs
- FigureHelper.cs
- StringHandle.cs
- Size3D.cs
- HttpCacheVaryByContentEncodings.cs
- OptimalBreakSession.cs
- AssemblyInfo.cs
- StructureChangedEventArgs.cs
- ServiceEndpointAssociationProvider.cs
- ReadOnlyDataSourceView.cs
- GlobalProxySelection.cs
- QuadraticBezierSegment.cs
- OleDbEnumerator.cs
- TheQuery.cs
- GeometryDrawing.cs
- MetaChildrenColumn.cs
- ExpanderAutomationPeer.cs
- LogicalTreeHelper.cs
- VolatileEnlistmentState.cs
- WindowsRichEdit.cs
- BuildProviderAppliesToAttribute.cs
- CodeGroup.cs
- PromptStyle.cs
- Byte.cs
- Message.cs
- InstanceNameConverter.cs
- RequestUriProcessor.cs
- ClientRolePrincipal.cs
- Int32Rect.cs
- RuleSettingsCollection.cs
- ActivityDelegate.cs
- MonikerProxyAttribute.cs
- HttpConfigurationContext.cs
- XmlDataProvider.cs
- ManagementObjectSearcher.cs
- SqlRowUpdatingEvent.cs
- PropertyTabChangedEvent.cs
- VersionPair.cs
- QilTargetType.cs
- RoleGroup.cs
- IPPacketInformation.cs
- ScanQueryOperator.cs
- ObservableCollection.cs
- StringCollectionEditor.cs
- PolyBezierSegmentFigureLogic.cs
- XmlComplianceUtil.cs
- SubtreeProcessor.cs
- ColorConverter.cs
- Parallel.cs
- DocumentAutomationPeer.cs
- QuaternionRotation3D.cs
- ConfigurationSettings.cs
- FrameworkReadOnlyPropertyMetadata.cs
- DataQuery.cs
- ReadOnlyDataSource.cs
- ContentPlaceHolder.cs
- ImageUrlEditor.cs
- SearchExpression.cs
- DocumentDesigner.cs
- TextEditorContextMenu.cs
- TargetControlTypeAttribute.cs
- OperationCanceledException.cs
- UriScheme.cs