Skip to content

Instantly share code, notes, and snippets.

@wattengard
Created March 5, 2015 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wattengard/59876ddddc3f53a5f2ae to your computer and use it in GitHub Desktop.
Save wattengard/59876ddddc3f53a5f2ae to your computer and use it in GitHub Desktop.
<#@ 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