Skip to content

Instantly share code, notes, and snippets.

@troufster
Created May 18, 2011 10:47
Show Gist options
  • Save troufster/978348 to your computer and use it in GitHub Desktop.
Save troufster/978348 to your computer and use it in GitHub Desktop.
Allow resharper to skip EF generated files
void BeginNamespace(string namespaceName, CodeGenerationTools code)
{
CodeRegion region = new CodeRegion(this);
if (!String.IsNullOrEmpty(namespaceName))
{
#>
#region EF Generated Code //<- right here
namespace <#=code.EscapeNamespace(namespaceName)#>
{
<#+
PushIndent(CodeRegion.GetIndent(1));
}
}
void EndNamespace(string namespaceName)
{
if (!String.IsNullOrEmpty(namespaceName))
{
PopIndent();
#>
}
#endregion //<- and here
<#+
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment