The problem is when inserting a model, if one of my columns is defined as BranchId in the class definition but the table column name is branch_id. The MatchNamesWithUnderscores is being overwritten?
When I define the mapper for each column Map(i => i.BranchId).ToColumn("branch_id") the column is found as I have explicitly defined the column map. All the table columns are snake case. Do I need to overrride the MatchNamesWithUnderscores somewhere else so it takes precedence?
I initialize the FluentMapper as follows:
The problem is when inserting a model, if one of my columns is defined as BranchId in the class definition but the table column name is branch_id. The
MatchNamesWithUnderscores
is being overwritten?When I define the mapper for each column
Map(i => i.BranchId).ToColumn("branch_id")
the column is found as I have explicitly defined the column map. All the table columns are snake case. Do I need to overrride theMatchNamesWithUnderscores
somewhere else so it takes precedence?