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
- PagedDataSource.cs
- IOThreadScheduler.cs
- ExpressionVisitor.cs
- InvalidOleVariantTypeException.cs
- OraclePermission.cs
- RegistrySecurity.cs
- ReflectionServiceProvider.cs
- DifferencingCollection.cs
- TrackingServices.cs
- ContextMarshalException.cs
- TraceUtils.cs
- DateTimeFormat.cs
- WorkflowPrinting.cs
- RootBrowserWindow.cs
- Parser.cs
- BypassElement.cs
- Point.cs
- HttpRequest.cs
- DataGridViewCellMouseEventArgs.cs
- XLinq.cs
- PerspectiveCamera.cs
- ListViewPagedDataSource.cs
- CodeArrayCreateExpression.cs
- UrlMappingsSection.cs
- ExtensibleSyndicationObject.cs
- SmtpMail.cs
- RectAnimationBase.cs
- WebEventTraceProvider.cs
- QuestionEventArgs.cs
- TextHidden.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- LineBreak.cs
- PopOutPanel.cs
- Transactions.cs
- HtmlInputPassword.cs
- NegationPusher.cs
- StrokeCollection2.cs
- Switch.cs
- BCryptSafeHandles.cs
- RelationshipEntry.cs
- Expander.cs
- PrintPreviewDialog.cs
- WindowsToolbar.cs
- Package.cs
- SqlWorkflowPersistenceService.cs
- Operator.cs
- GridViewColumnCollectionChangedEventArgs.cs
- BamlCollectionHolder.cs
- TextBoxView.cs
- ChildDocumentBlock.cs
- SchemaImporterExtensionsSection.cs
- TraversalRequest.cs
- PolicyLevel.cs
- AutomationProperty.cs
- Process.cs
- SwitchElementsCollection.cs
- CommentEmitter.cs
- _NegotiateClient.cs
- MemberInfoSerializationHolder.cs
- XmlHierarchyData.cs
- TextElementEnumerator.cs
- ConfigurationSectionHelper.cs
- GeometryValueSerializer.cs
- BitVector32.cs
- WebPartDisplayModeCollection.cs
- IntSecurity.cs
- TemplateEditingVerb.cs
- EventLogTraceListener.cs
- TabItem.cs
- TreeNodeCollection.cs
- DataGridTablesFactory.cs
- LazyTextWriterCreator.cs
- Logging.cs
- CapabilitiesSection.cs
- FixedStringLookup.cs
- TypeHelpers.cs
- SamlSecurityTokenAuthenticator.cs
- Int64.cs
- SortFieldComparer.cs
- AppDomainUnloadedException.cs
- DbTransaction.cs
- XAMLParseException.cs
- KeyGesture.cs
- ActivityFunc.cs
- ServiceHttpHandlerFactory.cs
- DefaultShape.cs
- TextAction.cs
- OleCmdHelper.cs
- MediaContextNotificationWindow.cs
- SamlAttribute.cs
- Int32.cs
- DataMisalignedException.cs
- MonikerHelper.cs
- TreeNodeCollectionEditor.cs
- WebBrowser.cs
- Schema.cs
- PermissionSetEnumerator.cs
- QilFunction.cs
- Material.cs
- SkinBuilder.cs