Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Objects / Internal / complextypematerializer.cs / 1305376 / complextypematerializer.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Metadata.Edm; using System.Data.Common; using System.Diagnostics; using System.Data.Mapping; namespace System.Data.Objects.Internal { ////// Supports materialization of complex type instances from records. Used /// by the ObjectStateManager. /// internal class ComplexTypeMaterializer { private readonly MetadataWorkspace _workspace; private const int MaxPlanCount = 4; private Plan[] _lastPlans; private int _lastPlanIndex; internal ComplexTypeMaterializer(MetadataWorkspace workspace) { _workspace = workspace; } internal object CreateComplex(IExtendedDataRecord record, DataRecordInfo recordInfo, object result) { Debug.Assert(null != record, "null IExtendedDataRecord"); Debug.Assert(null != recordInfo, "null DataRecordInfo"); Debug.Assert(null != recordInfo.RecordType, "null TypeUsage"); Debug.Assert(null != recordInfo.RecordType.EdmType, "null EdmType"); Debug.Assert(Helper.IsEntityType(recordInfo.RecordType.EdmType) || Helper.IsComplexType(recordInfo.RecordType.EdmType), "not EntityType or ComplexType"); Plan plan = GetPlan(record, recordInfo); if (null == result) { result = ((Func
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Visual3D.cs
- BindableTemplateBuilder.cs
- MasterPageCodeDomTreeGenerator.cs
- UnauthorizedAccessException.cs
- DataGridAutomationPeer.cs
- Logging.cs
- Char.cs
- SignatureDescription.cs
- RIPEMD160Managed.cs
- MailWriter.cs
- DescendentsWalkerBase.cs
- LambdaCompiler.ControlFlow.cs
- RtfControls.cs
- DocumentApplication.cs
- DefinitionUpdate.cs
- CurrentChangedEventManager.cs
- SQLInt32Storage.cs
- LinkClickEvent.cs
- WinOEToolBoxItem.cs
- TraceHandlerErrorFormatter.cs
- TextEffectCollection.cs
- TemplateXamlTreeBuilder.cs
- SafeNativeMethodsCLR.cs
- TypeForwardedToAttribute.cs
- ErrorTableItemStyle.cs
- DataGridViewRowPostPaintEventArgs.cs
- UrlAuthorizationModule.cs
- DbProviderFactoriesConfigurationHandler.cs
- SafeCryptoHandles.cs
- GestureRecognizer.cs
- XpsSerializationManagerAsync.cs
- DebugView.cs
- WpfWebRequestHelper.cs
- Odbc32.cs
- DynamicResourceExtensionConverter.cs
- FlowDocumentReaderAutomationPeer.cs
- DependencyPropertyKind.cs
- clipboard.cs
- ColorAnimationUsingKeyFrames.cs
- QilNode.cs
- Gdiplus.cs
- GridProviderWrapper.cs
- BitSet.cs
- RepeaterCommandEventArgs.cs
- WebPartEditorOkVerb.cs
- DataGridViewRowCancelEventArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- UpdatePanelControlTrigger.cs
- DeferredRunTextReference.cs
- ClonableStack.cs
- SchemaNotation.cs
- CharStorage.cs
- DataAccessor.cs
- InvariantComparer.cs
- ClientScriptItemCollection.cs
- HandledEventArgs.cs
- SwitchAttribute.cs
- CallTemplateAction.cs
- BoundingRectTracker.cs
- RC2CryptoServiceProvider.cs
- QuotaThrottle.cs
- StrokeCollection2.cs
- NonParentingControl.cs
- SqlConnectionHelper.cs
- SystemMulticastIPAddressInformation.cs
- WindowsFont.cs
- PreservationFileReader.cs
- SqlCommand.cs
- PrivilegedConfigurationManager.cs
- ReadOnlyDataSource.cs
- ComplexBindingPropertiesAttribute.cs
- CreateRefExpr.cs
- LogicalExpr.cs
- BuildResultCache.cs
- SectionRecord.cs
- Empty.cs
- ImpersonateTokenRef.cs
- SetterTriggerConditionValueConverter.cs
- OpCellTreeNode.cs
- DataAdapter.cs
- PhonemeConverter.cs
- GenerateTemporaryTargetAssembly.cs
- RetriableClipboard.cs
- SubclassTypeValidatorAttribute.cs
- WorkflowServiceHostFactory.cs
- DockAndAnchorLayout.cs
- Rotation3DAnimationBase.cs
- RecognizerInfo.cs
- UnhandledExceptionEventArgs.cs
- IsolatedStorageException.cs
- MenuDesigner.cs
- EmptyStringExpandableObjectConverter.cs
- DataGridViewHeaderCell.cs
- HtmlObjectListAdapter.cs
- OleDbDataReader.cs
- XD.cs
- PageWrapper.cs
- ValidationPropertyAttribute.cs
- FocusManager.cs
- ColorConvertedBitmapExtension.cs