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
- DataListGeneralPage.cs
- DesignerWidgets.cs
- Converter.cs
- MarshalByValueComponent.cs
- PartitionerStatic.cs
- MessageQueueKey.cs
- TemplateColumn.cs
- WebPartEditorOkVerb.cs
- HttpCachePolicyElement.cs
- NeutralResourcesLanguageAttribute.cs
- SerialReceived.cs
- SchemaAttDef.cs
- DataBoundLiteralControl.cs
- HtmlLiteralTextAdapter.cs
- ConfigurationManagerHelper.cs
- COSERVERINFO.cs
- DispatcherFrame.cs
- WriteFileContext.cs
- CannotUnloadAppDomainException.cs
- JoinGraph.cs
- XmlDataSource.cs
- InkPresenter.cs
- hebrewshape.cs
- ChannelBase.cs
- RedirectionProxy.cs
- ForeignConstraint.cs
- TabOrder.cs
- Control.cs
- ChooseAction.cs
- ToolStripCodeDomSerializer.cs
- NativeMethods.cs
- SQLDecimalStorage.cs
- GridViewSelectEventArgs.cs
- DodSequenceMerge.cs
- FileStream.cs
- HostingEnvironmentSection.cs
- SpecularMaterial.cs
- coordinator.cs
- PipeSecurity.cs
- Metafile.cs
- BindingUtils.cs
- PathGradientBrush.cs
- WorkflowMarkupSerializerMapping.cs
- Timeline.cs
- x509utils.cs
- Operand.cs
- DisplayNameAttribute.cs
- InstanceOwnerException.cs
- SQLSingle.cs
- TableChangeProcessor.cs
- ResourceDictionaryCollection.cs
- AvTrace.cs
- TaskExceptionHolder.cs
- UnorderedHashRepartitionStream.cs
- SectionRecord.cs
- DesignerObject.cs
- Point.cs
- ObjectTag.cs
- BoundPropertyEntry.cs
- RegisteredArrayDeclaration.cs
- PropertyInformationCollection.cs
- ToolStripLocationCancelEventArgs.cs
- MessagePartDescription.cs
- RangeValidator.cs
- XmlSchemaSet.cs
- AQNBuilder.cs
- XPathBuilder.cs
- DockAndAnchorLayout.cs
- WorkflowPageSetupDialog.cs
- Rotation3DAnimation.cs
- MatrixUtil.cs
- RtfControlWordInfo.cs
- SqlDataSourceCommandEventArgs.cs
- GroupItem.cs
- PersonalizationEntry.cs
- KeyFrames.cs
- XsltLoader.cs
- DataGridSortCommandEventArgs.cs
- CodeNamespaceImportCollection.cs
- MetadataPropertyvalue.cs
- ValidationSummary.cs
- WebPartConnectionsCancelVerb.cs
- MetaDataInfo.cs
- MsdtcWrapper.cs
- PropertyEntry.cs
- IfElseDesigner.xaml.cs
- HashCodeCombiner.cs
- MarkedHighlightComponent.cs
- Point3DKeyFrameCollection.cs
- ConnectionConsumerAttribute.cs
- DataGridViewColumn.cs
- XmlNamespaceMapping.cs
- DelegatingConfigHost.cs
- DeflateInput.cs
- TypeUsage.cs
- ScaleTransform3D.cs
- TextSelectionHighlightLayer.cs
- RoutedEvent.cs
- DefaultPrintController.cs
- StaticTextPointer.cs