Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / ModelPerspective.cs / 1305376 / ModelPerspective.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- namespace System.Data.Metadata.Edm { using System.Collections.Generic; using System.Globalization; ////// Internal helper class for query /// internal class ModelPerspective : Perspective { #region Contructors ////// Creates a new instance of perspective class so that query can work /// ignorant of all spaces /// /// runtime metadata container internal ModelPerspective(MetadataWorkspace metadataWorkspace) : base(metadataWorkspace, DataSpace.CSpace) { } #endregion #region Methods ////// Look up a type in the target data space based upon the fullName /// /// fullName /// true for case-insensitive lookup /// The type usage object to return ///True if the retrieval succeeded internal override bool TryGetTypeByName(string fullName, bool ignoreCase, out TypeUsage typeUsage ) { EntityUtil.CheckStringArgument(fullName, "fullName"); typeUsage = null; EdmType edmType = null; if (this.MetadataWorkspace.TryGetItem(fullName, ignoreCase, this.TargetDataspace, out edmType)) { if (Helper.IsPrimitiveType(edmType)) { typeUsage = this.MetadataWorkspace.GetCanonicalModelTypeUsage(((PrimitiveType)edmType).PrimitiveTypeKind); } else { typeUsage = TypeUsage.Create(edmType); } } return typeUsage != null; } #endregion } } // 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
- FamilyMapCollection.cs
- TextTreeTextBlock.cs
- ResourceReferenceExpression.cs
- Token.cs
- EncryptedReference.cs
- ProgressBarRenderer.cs
- GroupDescription.cs
- DisableDpiAwarenessAttribute.cs
- DefaultPropertyAttribute.cs
- AssemblyContextControlItem.cs
- DESCryptoServiceProvider.cs
- Transform3DCollection.cs
- DataChangedEventManager.cs
- SmuggledIUnknown.cs
- CriticalFinalizerObject.cs
- MsmqIntegrationInputChannel.cs
- FormatterServices.cs
- HostingEnvironmentException.cs
- SudsCommon.cs
- PreProcessInputEventArgs.cs
- Image.cs
- DetailsViewUpdateEventArgs.cs
- FunctionGenerator.cs
- DataGridViewRowStateChangedEventArgs.cs
- SafeUserTokenHandle.cs
- RootProfilePropertySettingsCollection.cs
- PropertyEmitterBase.cs
- FlowDocumentView.cs
- ProcessProtocolHandler.cs
- SystemKeyConverter.cs
- XamlToRtfWriter.cs
- HttpProcessUtility.cs
- CanonicalFontFamilyReference.cs
- XmlElementAttributes.cs
- RenderCapability.cs
- MouseButton.cs
- OrthographicCamera.cs
- _ServiceNameStore.cs
- CryptoKeySecurity.cs
- SecurityKeyIdentifier.cs
- dtdvalidator.cs
- XPathChildIterator.cs
- CompatibleIComparer.cs
- ColorComboBox.cs
- AndMessageFilterTable.cs
- ComplexLine.cs
- _SslStream.cs
- TextEditorMouse.cs
- GenericAuthenticationEventArgs.cs
- Visual3D.cs
- ClientSettingsStore.cs
- BufferModesCollection.cs
- BindingListCollectionView.cs
- ProviderException.cs
- GridView.cs
- WinFormsComponentEditor.cs
- SqlClientFactory.cs
- MenuCommand.cs
- ConfigurationSectionHelper.cs
- RequestTimeoutManager.cs
- FixedFlowMap.cs
- HwndPanningFeedback.cs
- DataView.cs
- PrincipalPermissionMode.cs
- AnnotationMap.cs
- QueryInterceptorAttribute.cs
- PeerConnector.cs
- AttachedAnnotation.cs
- Point3DAnimation.cs
- ProcessMessagesAsyncResult.cs
- _StreamFramer.cs
- XmlBinaryWriter.cs
- SqlTriggerAttribute.cs
- WorkflowInstanceExtensionProvider.cs
- DisposableCollectionWrapper.cs
- ParserOptions.cs
- PipelineModuleStepContainer.cs
- SubpageParaClient.cs
- EpmSourcePathSegment.cs
- DataMemberAttribute.cs
- ErrorHandlingAcceptor.cs
- XmlILStorageConverter.cs
- ComponentEditorForm.cs
- EntityViewGenerationAttribute.cs
- WinInetCache.cs
- ObjectListFieldsPage.cs
- BaseUriHelper.cs
- Encoder.cs
- DataObject.cs
- DesignerInterfaces.cs
- Deserializer.cs
- Point3DAnimationBase.cs
- DataGridViewColumnHeaderCell.cs
- SchemaElementDecl.cs
- SoapClientMessage.cs
- PropertyInfoSet.cs
- ProfileProvider.cs
- SystemEvents.cs
- SqlDataSourceFilteringEventArgs.cs
- GacUtil.cs