MappingModelBuildProvider.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntityDesign / Design / System / Data / Entity / Design / AspNet / MappingModelBuildProvider.cs / 1 / MappingModelBuildProvider.cs

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

using System; 
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.CodeDom; 
using System.CodeDom.Compiler;
using System.Globalization; 
using System.Web; 
using System.Web.Hosting;
using System.Web.Compilation; 

namespace System.Data.Entity.Design.AspNet
{
    ///  
    /// The ASP .NET Build provider for the MSL in ADO .NET
    ///  
    /// 
    [BuildProviderAppliesTo(BuildProviderAppliesTo.Code)]
    public class MappingModelBuildProvider : System.Web.Compilation.BuildProvider 
    {
        /// 
        /// Default constructor
        ///  
        public MappingModelBuildProvider()
        { 
        } 

        ///  
        /// We want ASP .NET to always reset the app domain when we have to rebuild
        /// 
        /// 
        ///  
        public override BuildProviderResultFlags GetResultFlags(CompilerResults results)
        { 
            return BuildProviderResultFlags.ShutdownAppDomainOnChange; 
        }
 
        /// 
        ///
        /// 
        ///  
        public override void GenerateCode(AssemblyBuilder assemblyBuilder)
        { 
            BuildProviderUtils.AddArtifactReference(assemblyBuilder, this, base.VirtualPath); 
        }
    } 
}

// 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.Generic;
using System.Text;
using System.Diagnostics;
using System.CodeDom; 
using System.CodeDom.Compiler;
using System.Globalization; 
using System.Web; 
using System.Web.Hosting;
using System.Web.Compilation; 

namespace System.Data.Entity.Design.AspNet
{
    ///  
    /// The ASP .NET Build provider for the MSL in ADO .NET
    ///  
    /// 
    [BuildProviderAppliesTo(BuildProviderAppliesTo.Code)]
    public class MappingModelBuildProvider : System.Web.Compilation.BuildProvider 
    {
        /// 
        /// Default constructor
        ///  
        public MappingModelBuildProvider()
        { 
        } 

        ///  
        /// We want ASP .NET to always reset the app domain when we have to rebuild
        /// 
        /// 
        ///  
        public override BuildProviderResultFlags GetResultFlags(CompilerResults results)
        { 
            return BuildProviderResultFlags.ShutdownAppDomainOnChange; 
        }
 
        /// 
        ///
        /// 
        ///  
        public override void GenerateCode(AssemblyBuilder assemblyBuilder)
        { 
            BuildProviderUtils.AddArtifactReference(assemblyBuilder, this, base.VirtualPath); 
        }
    } 
}

// 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