StorageModelBuildProvider.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntityDesign / Design / System / Data / Entity / Design / AspNet / StorageModelBuildProvider.cs / 1305376 / StorageModelBuildProvider.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 SSDL in ADO .NET
    ///  
    /// 
    [BuildProviderAppliesTo(BuildProviderAppliesTo.Code)]
    public class StorageModelBuildProvider : System.Web.Compilation.BuildProvider 
    {
        /// 
        /// Default constructor
        ///  
        public StorageModelBuildProvider()
        { 
        } 

        ///  
        /// 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 SSDL in ADO .NET
    ///  
    /// 
    [BuildProviderAppliesTo(BuildProviderAppliesTo.Code)]
    public class StorageModelBuildProvider : System.Web.Compilation.BuildProvider 
    {
        /// 
        /// Default constructor
        ///  
        public StorageModelBuildProvider()
        { 
        } 

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