Simon Hughes
Simon Hughes
You can debug it. Add a line: ```c# if (tableName.ToLowerInvariant() == "UserDocument") Console.WriteLine(); // add breakpoint here ``` Right click on the T4 template and select "Debug T4 Template" ...
Attempt is an important number. I can see it's on attempt 4 on the bottom screen shot, which matches the switch statement above your code. Attempt 4 does this in...
I'll look into it and get back to you!
Could you give me the sql to create the `User` and `UserDocument` table, I'll use your tables as an actual test. If not don't worry, I'll come up with my...
I get this generated as standard: ```c# // User public class User { public int Id { get; set; } // ID (Primary key) public string ExternalUserId { get; set;...
Adding in ```c# if (fkName == "User_UserId") return "DocumentUser"; ``` gives ```c# public virtual User DocumentUser { get; set; } // FK_User_Document_User ``` Adding in ```c# if (fkName == "User_UserId")...
Standard (not renaming anything) is: `checkForFkNameClashes = true` | # | fkName | name from Settings.ForeignKeyName | |---|-----------------|-----------------------------------------------------------------------| | 1 | CreatedByUserId | attempt1 = 'User' | | 2 |...
Hi Brian, Yes I think you've hit on the quicker solution. To quickly change your code to use the FK names generated by this generator. An easy way to do...
Try using the msi installer from https://github.com/npgsql/npgsql/releases/tag/v4.1.8 The generator is a T4 template that runs externally to your project, and therefore cannot make use of any nuget packages you have...
@afust003 I have updated the documentation in https://github.com/sjh37/EntityFramework-Reverse-POCO-Code-First-Generator/wiki/PostgreSQL Let me know how you get on.