Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityModel / SchemaObjectModel / ReferenceSchema.cs / 1305376 / ReferenceSchema.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Xml; using System.Data; using System.Data.Metadata.Edm; using System.Diagnostics; using System.Data.Entity; namespace System.Data.EntityModel.SchemaObjectModel { ////// Summary description for UsingElement. /// internal class UsingElement : SchemaElement { #region Instance Fields private string _alias = null; private string _namespaceName = null; #endregion #region Public Methods ////// /// /// internal UsingElement(Schema parentElement) : base(parentElement) { } #endregion #region Public Properties ////// /// public virtual string Alias { get { return _alias; } private set { _alias = value; } } ////// /// public virtual string NamespaceName { get { return _namespaceName; } private set { _namespaceName = value; } } ////// /// public override string FQName { get { return null; } } #endregion #region Protected Properties ////// /// protected override bool ProhibitAttribute(string namespaceUri, string localName) { if (base.ProhibitAttribute(namespaceUri, localName)) { return true; } if (namespaceUri == null && localName == XmlConstants.Name) { return false; } return false; } protected override bool HandleAttribute(XmlReader reader) { if (base.HandleAttribute(reader)) { return true; } else if (CanHandleAttribute(reader, XmlConstants.Namespace)) { HandleNamespaceAttribute(reader); return true; } else if (CanHandleAttribute(reader, XmlConstants.Alias)) { HandleAliasAttribute(reader); return true; } return false; } #endregion #region Private Methods ////// /// /// private void HandleNamespaceAttribute(XmlReader reader) { Debug.Assert(String.IsNullOrEmpty(NamespaceName), "Alias must be set only once"); ReturnValuereturnValue = HandleDottedNameAttribute(reader,NamespaceName, null); if ( returnValue.Succeeded ) NamespaceName = returnValue.Value; } /// /// /// /// private void HandleAliasAttribute(XmlReader reader) { Debug.Assert(String.IsNullOrEmpty(Alias), "Alias must be set only once"); Alias = HandleUndottedNameAttribute(reader, Alias); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Xml; using System.Data; using System.Data.Metadata.Edm; using System.Diagnostics; using System.Data.Entity; namespace System.Data.EntityModel.SchemaObjectModel { ////// Summary description for UsingElement. /// internal class UsingElement : SchemaElement { #region Instance Fields private string _alias = null; private string _namespaceName = null; #endregion #region Public Methods ////// /// /// internal UsingElement(Schema parentElement) : base(parentElement) { } #endregion #region Public Properties ////// /// public virtual string Alias { get { return _alias; } private set { _alias = value; } } ////// /// public virtual string NamespaceName { get { return _namespaceName; } private set { _namespaceName = value; } } ////// /// public override string FQName { get { return null; } } #endregion #region Protected Properties ////// /// protected override bool ProhibitAttribute(string namespaceUri, string localName) { if (base.ProhibitAttribute(namespaceUri, localName)) { return true; } if (namespaceUri == null && localName == XmlConstants.Name) { return false; } return false; } protected override bool HandleAttribute(XmlReader reader) { if (base.HandleAttribute(reader)) { return true; } else if (CanHandleAttribute(reader, XmlConstants.Namespace)) { HandleNamespaceAttribute(reader); return true; } else if (CanHandleAttribute(reader, XmlConstants.Alias)) { HandleAliasAttribute(reader); return true; } return false; } #endregion #region Private Methods ////// /// /// private void HandleNamespaceAttribute(XmlReader reader) { Debug.Assert(String.IsNullOrEmpty(NamespaceName), "Alias must be set only once"); ReturnValuereturnValue = HandleDottedNameAttribute(reader,NamespaceName, null); if ( returnValue.Succeeded ) NamespaceName = returnValue.Value; } /// /// /// /// private void HandleAliasAttribute(XmlReader reader) { Debug.Assert(String.IsNullOrEmpty(Alias), "Alias must be set only once"); Alias = HandleUndottedNameAttribute(reader, Alias); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- localization.cs
- DbMetaDataColumnNames.cs
- AssemblyHash.cs
- Nullable.cs
- RenderDataDrawingContext.cs
- CookieParameter.cs
- NumberFunctions.cs
- CommandBinding.cs
- SQLDoubleStorage.cs
- WmpBitmapDecoder.cs
- IntellisenseTextBox.designer.cs
- NamespaceList.cs
- EtwTrace.cs
- XmlSchemaSimpleContentExtension.cs
- XmlBinaryWriterSession.cs
- OutputCacheSection.cs
- Header.cs
- SelectionProviderWrapper.cs
- GridLengthConverter.cs
- GradientStop.cs
- LOSFormatter.cs
- CatalogPartChrome.cs
- BuildProvider.cs
- FixedSOMLineRanges.cs
- HttpDictionary.cs
- SQLBytes.cs
- WeakEventManager.cs
- BordersPage.cs
- ApplicationHost.cs
- ImageList.cs
- EnterpriseServicesHelper.cs
- BorderGapMaskConverter.cs
- PointHitTestParameters.cs
- StringPropertyBuilder.cs
- DictionaryItemsCollection.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- OpenTypeMethods.cs
- EmbeddedMailObjectsCollection.cs
- StatusBarItemAutomationPeer.cs
- EmptyStringExpandableObjectConverter.cs
- MD5CryptoServiceProvider.cs
- AnnotationResourceCollection.cs
- Wrapper.cs
- DataTableCollection.cs
- ByteArrayHelperWithString.cs
- WindowsSecurityTokenAuthenticator.cs
- HttpPostedFile.cs
- AmbiguousMatchException.cs
- RelatedImageListAttribute.cs
- AbandonedMutexException.cs
- ModuleConfigurationInfo.cs
- StreamWithDictionary.cs
- FilteredXmlReader.cs
- TextElement.cs
- AggregateNode.cs
- CompletedAsyncResult.cs
- FontSourceCollection.cs
- InputLanguageSource.cs
- Size.cs
- Pool.cs
- MethodBuilderInstantiation.cs
- IUnknownConstantAttribute.cs
- Misc.cs
- StorageEntityContainerMapping.cs
- CommandExpr.cs
- SafeHandles.cs
- NativeRecognizer.cs
- MenuEventArgs.cs
- UInt16Converter.cs
- DoubleMinMaxAggregationOperator.cs
- HostedHttpTransportManager.cs
- SmiEventSink.cs
- MenuScrollingVisibilityConverter.cs
- cache.cs
- WinFormsSpinner.cs
- WorkflowDispatchContext.cs
- documentsequencetextview.cs
- Dispatcher.cs
- WebEventTraceProvider.cs
- xml.cs
- TypeGeneratedEventArgs.cs
- TimeSpanConverter.cs
- AppliedDeviceFiltersEditor.cs
- ColumnReorderedEventArgs.cs
- CharEntityEncoderFallback.cs
- ExtractedStateEntry.cs
- _HeaderInfoTable.cs
- PropertySegmentSerializer.cs
- VectorCollection.cs
- AppearanceEditorPart.cs
- SoapReflectionImporter.cs
- CellRelation.cs
- URLIdentityPermission.cs
- PagedDataSource.cs
- ZipIOFileItemStream.cs
- ParserHooks.cs
- securitycriticaldataformultiplegetandset.cs
- infer.cs
- FixUp.cs
- PathParser.cs