AuroraDbDbHelper
A helper class that is being used to retrieve the schema information (columns, primary/identity key) of an Aurora MySQL table.
This class implements IDbHelper for Aurora MySQL. It queries INFORMATION_SCHEMA.COLUMNS to build the list of DbField objects RepoDB uses internally to generate SQL statements. Columns with a blob/text-like data type (blob, blobasarray, binary, longtext, mediumtext, longblob, mediumblob, tinyblob, varbinary) are treated as unbounded — their reported size is ignored.
It also resolves the newly generated identity value via SELECT LAST_INSERT_ID().
It is automatically registered by AuroraDbBootstrap — you do not need to instantiate it directly under normal use.
Properties
| Name | Description |
|---|---|
| DbTypeResolver | The IResolver<string, Type> used to convert an Aurora MySQL column data type (e.g. varchar) into its equivalent .NET CLR type. Defaults to AuroraDbDbTypeNameToClientTypeResolver. |
Usability
Only override this if you need a custom type resolver.
var dbHelper = new AuroraDbDbHelper(new MyCustomAuroraDbDbTypeNameToClientTypeResolver());
DbHelperMapper.Add<AuroraDbConnection>(dbHelper, true);