Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / ObjectLayer / ObjectItemCachedAssemblyLoader.cs / 1305376 / ObjectItemCachedAssemblyLoader.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Reflection; using System.Data.Entity; namespace System.Data.Metadata.Edm { internal sealed class ObjectItemCachedAssemblyLoader : ObjectItemAssemblyLoader { private new ImmutableAssemblyCacheEntry CacheEntry { get { return (ImmutableAssemblyCacheEntry)base.CacheEntry; } } internal ObjectItemCachedAssemblyLoader(Assembly assembly, ImmutableAssemblyCacheEntry cacheEntry, ObjectItemLoadingSessionData sessionData) : base(assembly, cacheEntry, sessionData) { } protected override void AddToAssembliesLoaded() { // wasn't loaded, was pulled from cache instead // so don't load it } protected override void LoadTypesFromAssembly() { foreach (EdmType type in CacheEntry.TypesInAssembly) { if (!SessionData.TypesInLoading.ContainsKey(type.Identity)) { SessionData.TypesInLoading.Add(type.Identity, type); } } } } } // 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
- TripleDESCryptoServiceProvider.cs
- PrinterSettings.cs
- UriSection.cs
- FloatMinMaxAggregationOperator.cs
- ForeignKeyConstraint.cs
- FlowDocumentView.cs
- GeneralTransform3DTo2D.cs
- PageContentCollection.cs
- OutputCacheProfileCollection.cs
- ExpressionDumper.cs
- PropertyReferenceSerializer.cs
- KernelTypeValidation.cs
- Content.cs
- ColumnWidthChangingEvent.cs
- odbcmetadatacolumnnames.cs
- SystemUnicastIPAddressInformation.cs
- XmlSchemaAll.cs
- ApplicationException.cs
- ScriptControlManager.cs
- WebPartRestoreVerb.cs
- SqlReferenceCollection.cs
- ColorDialog.cs
- DataControlFieldCell.cs
- WebPartVerbCollection.cs
- _HelperAsyncResults.cs
- DataGridCellsPresenter.cs
- log.cs
- CodeIdentifier.cs
- FlowNode.cs
- ViewLoader.cs
- Matrix3DConverter.cs
- EdmConstants.cs
- PEFileEvidenceFactory.cs
- UntypedNullExpression.cs
- SizeF.cs
- BinaryObjectWriter.cs
- ListCollectionView.cs
- RemoteWebConfigurationHostStream.cs
- RestClientProxyHandler.cs
- RelationshipNavigation.cs
- XmlSerializerOperationBehavior.cs
- CachedCompositeFamily.cs
- RequestStatusBarUpdateEventArgs.cs
- SerializationInfoEnumerator.cs
- GridViewColumnCollectionChangedEventArgs.cs
- PowerStatus.cs
- QilUnary.cs
- ObjectNotFoundException.cs
- XamlPathDataSerializer.cs
- OpCellTreeNode.cs
- SessionViewState.cs
- ScrollableControl.cs
- SqlDataReaderSmi.cs
- coordinator.cs
- NestedContainer.cs
- PopupControlService.cs
- WindowsStartMenu.cs
- RenamedEventArgs.cs
- ServiceDescriptionSerializer.cs
- SubclassTypeValidatorAttribute.cs
- ServiceOperation.cs
- DispatcherTimer.cs
- ClientApiGenerator.cs
- MappingSource.cs
- _ShellExpression.cs
- WebPartsSection.cs
- StringFunctions.cs
- Predicate.cs
- DataColumnMapping.cs
- SystemResourceHost.cs
- XmlHierarchyData.cs
- MonitoringDescriptionAttribute.cs
- MimeMultiPart.cs
- TextSpanModifier.cs
- TagNameToTypeMapper.cs
- CryptoKeySecurity.cs
- AccessibleObject.cs
- UnsafeNativeMethods.cs
- DbParameterCollectionHelper.cs
- TextCompositionEventArgs.cs
- FusionWrap.cs
- HandleScope.cs
- ProtectedConfigurationSection.cs
- NavigatorOutput.cs
- XMLSyntaxException.cs
- MethodImplAttribute.cs
- DataContract.cs
- DataListItem.cs
- TransportReplyChannelAcceptor.cs
- InstanceStore.cs
- TextParaClient.cs
- DispatcherHooks.cs
- RankException.cs
- SerializationEventsCache.cs
- BaseAsyncResult.cs
- Speller.cs
- ToolboxComponentsCreatingEventArgs.cs
- TemplatedAdorner.cs
- EntityObject.cs
- XmlHelper.cs