File tree Expand file tree Collapse file tree
MySqlConnectorDapperExample
MySqlConnectorDapperLegacyExample
NpgsqlDapperLegacyExample
SqliteDapperLegacyExample Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ public virtual string[] GetTransactionConstructorStatements()
195195 {
196196 $ "this.{ Variable . Transaction . AsPropertyName ( ) } = { Variable . Transaction . AsVarName ( ) } ;"
197197 }
198+ . AppendIf ( "Utils.ConfigureSqlMapper();" , Options . UseDapper )
198199 . AppendIf ( "Dapper.DefaultTypeMap.MatchNamesWithUnderscores = true;" , Options . UseDapper ) ] ;
199200 }
200201
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public QuerySql(string connectionString)
3030 private QuerySql ( MySqlTransaction transaction )
3131 {
3232 this . Transaction = transaction ;
33+ Utils . ConfigureSqlMapper ( ) ;
3334 Dapper . DefaultTypeMap . MatchNamesWithUnderscores = true ;
3435 }
3536
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ public QuerySql(string connectionString)
3131 private QuerySql ( MySqlTransaction transaction )
3232 {
3333 this . Transaction = transaction ;
34+ Utils . ConfigureSqlMapper ( ) ;
3435 Dapper . DefaultTypeMap . MatchNamesWithUnderscores = true ;
3536 }
3637
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ public QuerySql(string connectionString)
2626 private QuerySql ( NpgsqlTransaction transaction )
2727 {
2828 this . Transaction = transaction ;
29+ Utils . ConfigureSqlMapper ( ) ;
2930 Dapper . DefaultTypeMap . MatchNamesWithUnderscores = true ;
3031 }
3132
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public QuerySql(string connectionString)
2727 private QuerySql ( NpgsqlTransaction transaction )
2828 {
2929 this . Transaction = transaction ;
30+ Utils . ConfigureSqlMapper ( ) ;
3031 Dapper . DefaultTypeMap . MatchNamesWithUnderscores = true ;
3132 }
3233
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ public QuerySql(string connectionString)
2323 private QuerySql ( SqliteTransaction transaction )
2424 {
2525 this . Transaction = transaction ;
26+ Utils . ConfigureSqlMapper ( ) ;
2627 Dapper . DefaultTypeMap . MatchNamesWithUnderscores = true ;
2728 }
2829
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public QuerySql(string connectionString)
2424 private QuerySql ( SqliteTransaction transaction )
2525 {
2626 this . Transaction = transaction ;
27+ Utils . ConfigureSqlMapper ( ) ;
2728 Dapper . DefaultTypeMap . MatchNamesWithUnderscores = true ;
2829 }
2930
You can’t perform that action at this time.
0 commit comments