Created
May 18, 2011 10:47
-
-
Save troufster/978348 to your computer and use it in GitHub Desktop.
Allow resharper to skip EF generated files
This file contains hidden or 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
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