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
- dbenumerator.cs
- BitmapEffect.cs
- GeneralTransform2DTo3D.cs
- HiddenField.cs
- MultipleViewProviderWrapper.cs
- BaseTemplateParser.cs
- StructuralObject.cs
- ProtocolInformationWriter.cs
- Hyperlink.cs
- AuthenticationSection.cs
- XPathAxisIterator.cs
- BitmapFrameEncode.cs
- SubMenuStyle.cs
- ConfigurationLocationCollection.cs
- TypedRowGenerator.cs
- XhtmlCssHandler.cs
- CalendarDay.cs
- RevocationPoint.cs
- RoleGroupCollection.cs
- FloaterParaClient.cs
- PointKeyFrameCollection.cs
- Int64Storage.cs
- CharacterBufferReference.cs
- ReadOnlyDataSourceView.cs
- TreeNodeCollectionEditorDialog.cs
- MimeMapping.cs
- WebPartDisplayModeEventArgs.cs
- OrderedParallelQuery.cs
- WinFormsComponentEditor.cs
- OleDbParameterCollection.cs
- CapabilitiesState.cs
- Lasso.cs
- WmpBitmapEncoder.cs
- ScrollChrome.cs
- DataGridColumnHeadersPresenter.cs
- DebugControllerThread.cs
- CompositionCommandSet.cs
- EnlistmentTraceIdentifier.cs
- ThreadAttributes.cs
- Registry.cs
- HtmlLink.cs
- ProvidersHelper.cs
- IxmlLineInfo.cs
- TextBoxRenderer.cs
- JsonWriter.cs
- VectorCollectionValueSerializer.cs
- UnsafeNativeMethods.cs
- CodeSpit.cs
- CommandField.cs
- ScalarType.cs
- VisualTreeUtils.cs
- SafeNativeMemoryHandle.cs
- EventDescriptorCollection.cs
- serverconfig.cs
- XmlSchemaSimpleTypeList.cs
- ValidationPropertyAttribute.cs
- MenuItemCollection.cs
- CustomWebEventKey.cs
- DateTimeHelper.cs
- TreeViewImageIndexConverter.cs
- ProtectedConfigurationSection.cs
- TemplatePartAttribute.cs
- SecureStringHasher.cs
- SqlPersonalizationProvider.cs
- WebPartZone.cs
- CreateUserWizardStep.cs
- NativeMethods.cs
- Brush.cs
- Atom10FormatterFactory.cs
- RelativeSource.cs
- TemplateBaseAction.cs
- RemotingAttributes.cs
- SafeBitVector32.cs
- PersonalizablePropertyEntry.cs
- TransactionsSectionGroup.cs
- Calendar.cs
- infer.cs
- HostProtectionException.cs
- RoleGroupCollection.cs
- DataGridViewCellStateChangedEventArgs.cs
- XsltArgumentList.cs
- CrossContextChannel.cs
- SafeLibraryHandle.cs
- TransformerTypeCollection.cs
- SHA1Managed.cs
- XmlComment.cs
- SeekStoryboard.cs
- XXXOnTypeBuilderInstantiation.cs
- MenuAutomationPeer.cs
- MediaScriptCommandRoutedEventArgs.cs
- JournalNavigationScope.cs
- TransactionScope.cs
- NativeMethods.cs
- COM2TypeInfoProcessor.cs
- ServicePointManager.cs
- FeatureSupport.cs
- DocumentPageViewAutomationPeer.cs
- KeyMatchBuilder.cs
- AnalyzedTree.cs
- CollectionBuilder.cs