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
- CodeSubDirectoriesCollection.cs
- XmlSerializerNamespaces.cs
- TextParentUndoUnit.cs
- SqlParameterCollection.cs
- ToolStripContainer.cs
- MasterPageCodeDomTreeGenerator.cs
- CodeArrayCreateExpression.cs
- AssemblyName.cs
- BaseHashHelper.cs
- EntryPointNotFoundException.cs
- SqlNotificationEventArgs.cs
- MediaElement.cs
- TransformerInfoCollection.cs
- Variant.cs
- Identity.cs
- OneToOneMappingSerializer.cs
- counter.cs
- SchemaTableOptionalColumn.cs
- SingleConverter.cs
- PolicyStatement.cs
- Stackframe.cs
- OutputCacheSettings.cs
- Ref.cs
- StrokeIntersection.cs
- InnerItemCollectionView.cs
- OutputCacheSettingsSection.cs
- PageClientProxyGenerator.cs
- SystemIPInterfaceStatistics.cs
- ListViewTableRow.cs
- ImageBrush.cs
- ReferenceSchema.cs
- DesignerView.cs
- CreateParams.cs
- DeflateStream.cs
- ProxyGenerator.cs
- CompilationLock.cs
- DropDownList.cs
- ConstructorBuilder.cs
- EntityClientCacheEntry.cs
- SponsorHelper.cs
- Size3D.cs
- DrawingCollection.cs
- Label.cs
- FontUnit.cs
- XamlSerializer.cs
- RectangleF.cs
- InternalsVisibleToAttribute.cs
- NativeObjectSecurity.cs
- BrowserDefinitionCollection.cs
- SafeProcessHandle.cs
- DataPointer.cs
- ColorTransform.cs
- TailCallAnalyzer.cs
- HtmlCommandAdapter.cs
- ToolboxItemCollection.cs
- SafeFileMappingHandle.cs
- Identity.cs
- RegexReplacement.cs
- TaskFormBase.cs
- webclient.cs
- IndentedWriter.cs
- WinFormsUtils.cs
- ImmutableAssemblyCacheEntry.cs
- AuthorizationSection.cs
- SslStream.cs
- XmlElementAttributes.cs
- LassoSelectionBehavior.cs
- Empty.cs
- FrameworkPropertyMetadata.cs
- ObjectQuery.cs
- ProgressiveCrcCalculatingStream.cs
- RuntimeResourceSet.cs
- MSAANativeProvider.cs
- Utils.cs
- HtmlInputReset.cs
- DBCSCodePageEncoding.cs
- BypassElementCollection.cs
- SortQueryOperator.cs
- ShimAsPublicXamlType.cs
- ContentDisposition.cs
- PeerTransportBindingElement.cs
- WebZone.cs
- SchemaElementDecl.cs
- ListViewItem.cs
- Transform.cs
- MouseEvent.cs
- PrtTicket_Public_Simple.cs
- ThemeInfoAttribute.cs
- BitStack.cs
- Wizard.cs
- typedescriptorpermissionattribute.cs
- RangeValidator.cs
- ControlBuilderAttribute.cs
- XmlName.cs
- TransformerInfoCollection.cs
- Stream.cs
- NonSerializedAttribute.cs
- TextStore.cs
- IISMapPath.cs
- RepeaterItemCollection.cs