Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / PrimitiveSchema.cs / 2 / PrimitiveSchema.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Diagnostics; using System.Data.Common; using System.Collections.Generic; using System.Data.Metadata.Edm; using System.Xml; namespace System.Data.EntityModel.SchemaObjectModel { ////// The virtual schema for primitive data types /// internal class PrimitiveSchema : Schema { public PrimitiveSchema(SchemaManager schemaManager) : base(schemaManager) { Schema = this; DbProviderManifest providerManifest = ProviderManifest; if (providerManifest == null) { AddError(new EdmSchemaError(System.Data.Entity.Strings.FailedToRetrieveProviderManifest, (int)ErrorCode.FailedToRetrieveProviderManifest, EdmSchemaErrorSeverity.Error)); } else { foreach (PrimitiveType entry in providerManifest.GetStoreTypes()) { TryAddType(new ScalarType(this, entry.Name, entry), false /*doNotAddErrorForEmptyName*/); } } } ////// Returns the alias that can be used for type in this /// Namespace instead of the entire namespace name /// internal override string Alias { get { return ProviderManifest.NamespaceName; } } ////// Returns the TypeAuthority that is driving this schema /// internal override string Namespace { get { if (ProviderManifest != null) { return ProviderManifest.NamespaceName; } return string.Empty; } } protected override bool HandleAttribute(XmlReader reader) { // don't call the base, we don't have any attributes return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Diagnostics; using System.Data.Common; using System.Collections.Generic; using System.Data.Metadata.Edm; using System.Xml; namespace System.Data.EntityModel.SchemaObjectModel { ////// The virtual schema for primitive data types /// internal class PrimitiveSchema : Schema { public PrimitiveSchema(SchemaManager schemaManager) : base(schemaManager) { Schema = this; DbProviderManifest providerManifest = ProviderManifest; if (providerManifest == null) { AddError(new EdmSchemaError(System.Data.Entity.Strings.FailedToRetrieveProviderManifest, (int)ErrorCode.FailedToRetrieveProviderManifest, EdmSchemaErrorSeverity.Error)); } else { foreach (PrimitiveType entry in providerManifest.GetStoreTypes()) { TryAddType(new ScalarType(this, entry.Name, entry), false /*doNotAddErrorForEmptyName*/); } } } ////// Returns the alias that can be used for type in this /// Namespace instead of the entire namespace name /// internal override string Alias { get { return ProviderManifest.NamespaceName; } } ////// Returns the TypeAuthority that is driving this schema /// internal override string Namespace { get { if (ProviderManifest != null) { return ProviderManifest.NamespaceName; } return string.Empty; } } protected override bool HandleAttribute(XmlReader reader) { // don't call the base, we don't have any attributes return false; } } } // 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
- GAC.cs
- WebPartConnectionsCloseVerb.cs
- SerializationIncompleteException.cs
- DataListItemEventArgs.cs
- AssociationType.cs
- ParameterBuilder.cs
- CustomErrorsSection.cs
- TypographyProperties.cs
- XsltConvert.cs
- XmlSchemaAttribute.cs
- DifferencingCollection.cs
- FastEncoder.cs
- AdapterUtil.cs
- ClientScriptItem.cs
- CodeAssignStatement.cs
- MorphHelper.cs
- ObfuscationAttribute.cs
- CollectionBase.cs
- ClusterRegistryConfigurationProvider.cs
- SetStoryboardSpeedRatio.cs
- BrowserCapabilitiesFactoryBase.cs
- CustomTrackingRecord.cs
- ParseElement.cs
- QilGeneratorEnv.cs
- RelationshipManager.cs
- PrinterSettings.cs
- ColumnMapProcessor.cs
- RoutedEventConverter.cs
- CodeTypeMemberCollection.cs
- Operator.cs
- InternalResources.cs
- SmtpMail.cs
- LinearKeyFrames.cs
- WebPartTransformerAttribute.cs
- DesignTimeDataBinding.cs
- Int32EqualityComparer.cs
- AudioLevelUpdatedEventArgs.cs
- DbProviderSpecificTypePropertyAttribute.cs
- AspNetSynchronizationContext.cs
- ImageMapEventArgs.cs
- VBIdentifierNameEditor.cs
- AsymmetricSecurityBindingElement.cs
- PropertyEntry.cs
- DispatcherProcessingDisabled.cs
- TemplateBindingExpression.cs
- WebPartPersonalization.cs
- ReferencedAssembly.cs
- XmlDownloadManager.cs
- MarkerProperties.cs
- InvokeBase.cs
- QuaternionConverter.cs
- DBCommandBuilder.cs
- PropertyGeneratedEventArgs.cs
- ManagementExtension.cs
- AutomationPattern.cs
- StaticResourceExtension.cs
- TokenBasedSetEnumerator.cs
- LoginName.cs
- Line.cs
- WebPartsPersonalization.cs
- Regex.cs
- SoapAttributeAttribute.cs
- QueryableDataSourceView.cs
- VectorKeyFrameCollection.cs
- ReferenceAssemblyAttribute.cs
- PropertyStore.cs
- WriteTimeStream.cs
- SQLStringStorage.cs
- HashCodeCombiner.cs
- HealthMonitoringSection.cs
- ReferenceEqualityComparer.cs
- ListBindingHelper.cs
- BrowserTree.cs
- MetadataSerializer.cs
- HttpEncoderUtility.cs
- BinaryFormatterWriter.cs
- IgnoreFlushAndCloseStream.cs
- XmlSerializerAssemblyAttribute.cs
- WorkflowPersistenceContext.cs
- SortQuery.cs
- EngineSite.cs
- SystemIPInterfaceProperties.cs
- TextEditorParagraphs.cs
- LinearQuaternionKeyFrame.cs
- regiisutil.cs
- FlowSwitchLink.cs
- SessionIDManager.cs
- PropertyKey.cs
- GPPOINTF.cs
- WebServiceFaultDesigner.cs
- CryptoStream.cs
- EnumerableRowCollectionExtensions.cs
- DefaultShape.cs
- DecimalConverter.cs
- LoginUtil.cs
- Int64Animation.cs
- DataControlFieldHeaderCell.cs
- GACIdentityPermission.cs
- ListControl.cs
- AssociatedControlConverter.cs