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
- BulletedList.cs
- SearchForVirtualItemEventArgs.cs
- CommandManager.cs
- SendKeys.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- Point4D.cs
- IsolationInterop.cs
- XmlSchemaComplexContentRestriction.cs
- DummyDataSource.cs
- SpellerError.cs
- PlatformCulture.cs
- OdbcFactory.cs
- UrlMapping.cs
- XLinq.cs
- SiteMapDataSource.cs
- MimeTypePropertyAttribute.cs
- DataGridViewAdvancedBorderStyle.cs
- QueryableDataSourceView.cs
- CroppedBitmap.cs
- WebControlsSection.cs
- ImpersonationContext.cs
- SettingsPropertyIsReadOnlyException.cs
- IdentityReference.cs
- TextParagraphView.cs
- ValidatorCompatibilityHelper.cs
- TraceData.cs
- WSSecureConversationFeb2005.cs
- _UncName.cs
- PocoPropertyAccessorStrategy.cs
- ToolStripItemImageRenderEventArgs.cs
- DeferredReference.cs
- TextEditorTables.cs
- GeneralTransform3DTo2DTo3D.cs
- SparseMemoryStream.cs
- SerializationStore.cs
- PropertyOverridesDialog.cs
- ConfigurationSchemaErrors.cs
- OutputCacheProfileCollection.cs
- InvalidEnumArgumentException.cs
- ErrorFormatter.cs
- TabletDevice.cs
- EventRoute.cs
- LocalFileSettingsProvider.cs
- StylusPointPropertyInfo.cs
- XmlSchemaInfo.cs
- EntityModelSchemaGenerator.cs
- XamlClipboardData.cs
- DataGridViewLinkColumn.cs
- StrongNameKeyPair.cs
- ImageIndexConverter.cs
- EventInfo.cs
- PackageDigitalSignature.cs
- Win32SafeHandles.cs
- SamlEvidence.cs
- AppearanceEditorPart.cs
- RegistryDataKey.cs
- TreeNodeEventArgs.cs
- StylusPointPropertyInfoDefaults.cs
- UserControlBuildProvider.cs
- OAVariantLib.cs
- SessionIDManager.cs
- OleDbInfoMessageEvent.cs
- Facet.cs
- TextEditorMouse.cs
- ConfigurationPermission.cs
- Int64.cs
- MatcherBuilder.cs
- DataObjectCopyingEventArgs.cs
- FormatterServices.cs
- DateTimeStorage.cs
- HttpClientCertificate.cs
- ResourceProviderFactory.cs
- selecteditemcollection.cs
- MsmqProcessProtocolHandler.cs
- basevalidator.cs
- _NestedSingleAsyncResult.cs
- ThemeableAttribute.cs
- ValidationErrorCollection.cs
- InternalControlCollection.cs
- CombinedGeometry.cs
- AddInAttribute.cs
- CorruptingExceptionCommon.cs
- BindableTemplateBuilder.cs
- BigInt.cs
- EventTask.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- CompositionAdorner.cs
- LinkLabelLinkClickedEvent.cs
- Size.cs
- ObjectPersistData.cs
- SchemaEntity.cs
- ResourcePart.cs
- _HelperAsyncResults.cs
- ResourceDefaultValueAttribute.cs
- SQLChars.cs
- ThrowHelper.cs
- ServiceModelConfigurationElementCollection.cs
- XmlSerializationReader.cs
- ScriptControlManager.cs
- CacheVirtualItemsEvent.cs