Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / PrimitiveSchema.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Memoizer.cs
- SQLBinaryStorage.cs
- MissingManifestResourceException.cs
- Keywords.cs
- Image.cs
- SqlConnection.cs
- WindowsScroll.cs
- BindingContext.cs
- CompilerError.cs
- CodeConstructor.cs
- DataSourceControl.cs
- ControlCodeDomSerializer.cs
- ElementNotAvailableException.cs
- cookiecollection.cs
- SerializableAttribute.cs
- OleDbStruct.cs
- TextTreeNode.cs
- RecognizedPhrase.cs
- ReliableMessagingVersionConverter.cs
- Transform3D.cs
- HtmlInputCheckBox.cs
- FixedTextContainer.cs
- XmlResolver.cs
- AbsoluteQuery.cs
- HttpClientCertificate.cs
- FixedPosition.cs
- CacheHelper.cs
- XMLDiffLoader.cs
- ObjectDataSourceView.cs
- Attributes.cs
- SpanIndex.cs
- TextChangedEventArgs.cs
- FormatConvertedBitmap.cs
- Padding.cs
- ProfileSettingsCollection.cs
- Evidence.cs
- DeploymentSection.cs
- UnSafeCharBuffer.cs
- DataGridViewBindingCompleteEventArgs.cs
- NativeObjectSecurity.cs
- DirectoryNotFoundException.cs
- SoapAttributes.cs
- Point.cs
- cookie.cs
- CompleteWizardStep.cs
- HttpValueCollection.cs
- GregorianCalendar.cs
- RoutedUICommand.cs
- CompiledQuery.cs
- EmptyQuery.cs
- HttpSessionStateBase.cs
- BuildManagerHost.cs
- PagesSection.cs
- ConstantCheck.cs
- Point.cs
- CharacterShapingProperties.cs
- FormsAuthenticationUserCollection.cs
- OleDbParameter.cs
- CapacityStreamGeometryContext.cs
- DataSourceUtil.cs
- NameObjectCollectionBase.cs
- ToolboxDataAttribute.cs
- WindowsSpinner.cs
- RemotingAttributes.cs
- RC2CryptoServiceProvider.cs
- TextBox.cs
- SerializationFieldInfo.cs
- ControlValuePropertyAttribute.cs
- AxisAngleRotation3D.cs
- XmlTextWriter.cs
- DesignTimeTemplateParser.cs
- XPathException.cs
- DropShadowBitmapEffect.cs
- BufferModesCollection.cs
- DataGridViewComboBoxColumn.cs
- ControlBindingsCollection.cs
- ContainerParagraph.cs
- ImageConverter.cs
- CmsInterop.cs
- propertytag.cs
- VirtualDirectoryMapping.cs
- SqlDelegatedTransaction.cs
- SqlTypesSchemaImporter.cs
- RadialGradientBrush.cs
- SettingsAttributeDictionary.cs
- CompModSwitches.cs
- InheritanceContextChangedEventManager.cs
- SqlSelectClauseBuilder.cs
- RenderCapability.cs
- BamlResourceSerializer.cs
- IndexedString.cs
- BrowserCapabilitiesFactory.cs
- Ticks.cs
- AttributeProviderAttribute.cs
- ValidationSummary.cs
- Int16AnimationBase.cs
- UnmanagedMemoryStreamWrapper.cs
- SqlMethodTransformer.cs
- EventLogPropertySelector.cs
- MessageSmuggler.cs