Created
March 5, 2015 10:10
-
-
Save wattengard/59876ddddc3f53a5f2ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#@ template debug="false" hostspecific="true" language="C#" #> | |
<#@ assembly name="System.Core" #> | |
<#@ import namespace="System.IO" #> | |
<#@ output extension=".cs" #> | |
<# | |
var files = Directory.EnumerateFiles(Host.ResolvePath(""), "*.sql"); | |
#> | |
namespace Rappgen_WEB { | |
public static class SQL { | |
<# foreach (var file in files) { #> | |
public static string <#= Path.GetFileNameWithoutExtension(file) #> { | |
get { | |
return @"<#= File.ReadAllText(file) #>"; | |
} | |
} | |
<# } #> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment