Open jgwconsulting opened 2 years ago
Hi, I'll check this example but, just reading the code, it's seems wrong. tableName should be changed to Persons, not TableName
Ah cool, that's what I thought but I'm no stranger to getting things wrong, so I figured I'd check :) Thanks for all your hard work on this super handy project!
I've been looking at creating a custom mapper but the example seems off to me (although it's probably me misunderstanding it!).
The code above appears to set
TableName
to "Persons" if the original table name is "Person" but it then callsbase.Table
passing the originaltableName
....which will set
TableName
back to "Person", won't it? I guess this will still work if the table name is always referenced from the overriddenTable
method, but it seems a bit odd.