c#,asp.net,odata,odata-v4,t4-template
I guess you are using T4 2.2.0, right? There is a bug in T4 2.2.0 which causes this issue. You can use the content in following link to replace your ttinclude file and regenerate your proxy to work around the issue. https://raw.githubusercontent.com/LaylaLiu/odata.net/T4TempFix/src/CodeGen/ODataT4CodeGenerator.ttinclude...
c#,asp.net-mvc,t4mvc,t4-template
I have customized T4MVC template for my issue: public static class UrlConst { <#foreach (var controller in DefaultArea.GetControllers()) { foreach (var action in controller.ActionMethods.ToList()) { #> public const string <#=controller.Name#>_<#=action.ActionName#> = "/<#=controller.Name#>/<#=action.ActionName#>"; <#} } #> } ...