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
- MatrixTransform.cs
- StyleBamlRecordReader.cs
- ArrayElementGridEntry.cs
- Message.cs
- CompilerParameters.cs
- SerializerDescriptor.cs
- RemoteCryptoTokenProvider.cs
- MachineKeyConverter.cs
- WebPartConnectionsCancelVerb.cs
- precedingsibling.cs
- AttachedAnnotationChangedEventArgs.cs
- AppearanceEditorPart.cs
- DrawingServices.cs
- StateDesigner.Layouts.cs
- ResXDataNode.cs
- StaticResourceExtension.cs
- AccessDataSourceView.cs
- CodePageUtils.cs
- ListItemParagraph.cs
- ConstraintConverter.cs
- _SSPISessionCache.cs
- QilDataSource.cs
- _TimerThread.cs
- DataPagerFieldItem.cs
- DecoderFallback.cs
- IgnoreFlushAndCloseStream.cs
- nulltextcontainer.cs
- DelimitedListTraceListener.cs
- ProtocolException.cs
- StateRuntime.cs
- FloaterParaClient.cs
- RubberbandSelector.cs
- StaticFileHandler.cs
- HierarchicalDataBoundControl.cs
- FormClosingEvent.cs
- HtmlAnchor.cs
- TagMapCollection.cs
- BypassElementCollection.cs
- DefaultPropertyAttribute.cs
- PropertyBuilder.cs
- ColumnHeader.cs
- TypeConverter.cs
- TraceRecords.cs
- SecurityUniqueId.cs
- ServiceChannelFactory.cs
- ColumnCollection.cs
- SqlCacheDependencyDatabaseCollection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- CodeMemberProperty.cs
- XmlFileEditor.cs
- HttpResponseBase.cs
- ThreadExceptionEvent.cs
- TextHidden.cs
- WebConfigurationHostFileChange.cs
- ToolStripArrowRenderEventArgs.cs
- AuthorizationRuleCollection.cs
- PropertiesTab.cs
- BaseComponentEditor.cs
- HtmlInputSubmit.cs
- TableLayoutPanelBehavior.cs
- LassoHelper.cs
- WorkflowEventArgs.cs
- OracleException.cs
- formatter.cs
- XpsInterleavingPolicy.cs
- MultipleViewPatternIdentifiers.cs
- SendingRequestEventArgs.cs
- MsmqTransportSecurityElement.cs
- HtmlContainerControl.cs
- _SslStream.cs
- Interlocked.cs
- AnnotationComponentManager.cs
- Decoder.cs
- XmlElementAttributes.cs
- Matrix3D.cs
- DefaultBinder.cs
- XamlSerializerUtil.cs
- OperationParameterInfo.cs
- QueryAccessibilityHelpEvent.cs
- ContainerUIElement3D.cs
- NetworkInformationPermission.cs
- CodePrimitiveExpression.cs
- AppDomainShutdownMonitor.cs
- SetIterators.cs
- ProfessionalColorTable.cs
- StateDesigner.Helpers.cs
- UserControl.cs
- RelationshipEnd.cs
- NonceCache.cs
- MasterPageCodeDomTreeGenerator.cs
- ProviderCollection.cs
- SendParametersContent.cs
- WpfPayload.cs
- ToolStripAdornerWindowService.cs
- ListItemCollection.cs
- Matrix3D.cs
- IsolatedStorageSecurityState.cs
- Vector.cs
- PropertyNames.cs
- SQLDoubleStorage.cs