Entity framework EF中的资源模板_GeneratedCodeCommentLine1来自哪里?

Entity framework EF中的资源模板_GeneratedCodeCommentLine1来自哪里?,entity-framework,Entity Framework,我正在做一个EF6 model first项目,它有一个定制的.tt模板,用于生成.cs文件。我注意到注释是从资源字符串生成的,例如Template\u GeneratedCodeCommentLine1。这些资源文件在哪里?它们可以被修改吗?我只是好奇 ... fileManager.StartHeader(); #> //------------------------------------------------------------------------------ // &

我正在做一个EF6 model first项目,它有一个定制的
.tt
模板,用于生成
.cs
文件。我注意到注释是从资源字符串生成的,例如
Template\u GeneratedCodeCommentLine1
。这些资源文件在哪里?它们可以被修改吗?我只是好奇

...
fileManager.StartHeader();
#>
//------------------------------------------------------------------------------
// <auto-generated>
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine1")#>
//
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine2")#>
// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine3")#>
// </auto-generated>
//------------------------------------------------------------------------------
<#=codeStringGenerator.UsingDirectives(inHeader: true)#>
....
。。。
fileManager.StartHeader();
#>
//------------------------------------------------------------------------------
//
  • 相关问题

  • 它们是Microsoft.Data.Entity.Design.dll中的嵌入式资源,位于visualstudio文件夹/Common7/IDE/中

    使用ILSpy或类似工具,您可以浏览程序集并找到此资源文件

    Microsoft.Data.Entity.Design.TemplateResources.resources (Embedded, Public)
    

    出于兴趣,你怎么知道要看里面?好吧,一切都从谷歌开始,点击Template_GeneratedCodeCommentLine1,跟随msdn链接,直到找到程序集,然后找到它并偷看它。谢谢,我可能会亲自尝试一下,因为这对我来说就像一条死胡同:-)