SchemaContext.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / SchemaContext.cs / 2 / SchemaContext.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner [....]
// @backupOwner [....] 
//--------------------------------------------------------------------- 

 
using System.Data.Common.Utils;
using System.Text;
using System.Data.Mapping.ViewGeneration.Structures;
using System.Diagnostics; 
using System.Data.Metadata.Edm;
 
namespace System.Data.Mapping.ViewGeneration { 

    // This class captures all the relevant information about a schema 
    // e.g., metadata information, whether we want query views or update
    // views, and the result of validation
    internal class SchemaContext : InternalBase {
 
        #region Constructor
        // effects: Encapsulates the various metadata information 
 
        public SchemaContext(ViewTarget viewTarget, MetadataWorkspace workspace) {
            m_viewTarget = viewTarget; 
            Debug.Assert(workspace != null, "workspace should never be null");
            m_workspace = workspace;
        }
        #endregion 

        #region Fields 
        private ViewTarget m_viewTarget; 
        private MetadataWorkspace m_workspace;
        #endregion 

        #region Properties
        internal ViewTarget ViewTarget {
            get { return m_viewTarget; } 
        }
 
        internal MetadataWorkspace MetadataWorkspace { 
            get { return m_workspace; }
        } 
        #endregion

        #region String methods
        internal override void ToCompactString(StringBuilder builder) { 
            StringUtil.FormatStringBuilder(builder, "ViewTarget = {0}", m_viewTarget);
        } 
        #endregion 

    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner [....]
// @backupOwner [....] 
//--------------------------------------------------------------------- 

 
using System.Data.Common.Utils;
using System.Text;
using System.Data.Mapping.ViewGeneration.Structures;
using System.Diagnostics; 
using System.Data.Metadata.Edm;
 
namespace System.Data.Mapping.ViewGeneration { 

    // This class captures all the relevant information about a schema 
    // e.g., metadata information, whether we want query views or update
    // views, and the result of validation
    internal class SchemaContext : InternalBase {
 
        #region Constructor
        // effects: Encapsulates the various metadata information 
 
        public SchemaContext(ViewTarget viewTarget, MetadataWorkspace workspace) {
            m_viewTarget = viewTarget; 
            Debug.Assert(workspace != null, "workspace should never be null");
            m_workspace = workspace;
        }
        #endregion 

        #region Fields 
        private ViewTarget m_viewTarget; 
        private MetadataWorkspace m_workspace;
        #endregion 

        #region Properties
        internal ViewTarget ViewTarget {
            get { return m_viewTarget; } 
        }
 
        internal MetadataWorkspace MetadataWorkspace { 
            get { return m_workspace; }
        } 
        #endregion

        #region String methods
        internal override void ToCompactString(StringBuilder builder) { 
            StringUtil.FormatStringBuilder(builder, "ViewTarget = {0}", m_viewTarget);
        } 
        #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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK