Skip to content

Commit c5fd15a

Browse files
fix: document override option
1 parent 6c664d9 commit c5fd15a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,17 @@ sql:
4747
| namespaceName | default: the generated project name | Yes | Allows you to override the namespace name to be different than the project name |
4848
| useDapper | default: `false`<br/>values: `false`,`true` | Yes | Enables Dapper as a thin wrapper for the generated code. For more information, please refer to the [Dapper documentation](https://github.com/DapperLib/Dapper). |
4949
| overrideDapperVersion| default:<br/> `2.1.35`<br/>values: The desired Dapper version | Yes | If `useDapper` is set to `true`, this option allows you to override the version of Dapper to be used. |
50-
| Override | values: N/A | Yes | Allows you to override the generated C# data types for specific columns in specific queries. This option accepts a `query_name:column_name` mapping and the overriden data type. |
50+
| Override | values: A nested override value like [this](#override-option). | Yes | Allows you to override the generated C# data types for specific columns in specific queries. This option accepts a `query_name:column_name` mapping and the overriden data type. |
51+
52+
### Override option
53+
```
54+
yaml
55+
overrides:
56+
- column: "<query-name>:<field-name>"
57+
csharp_type:
58+
type: "<csharp-datatype>"
59+
notNull: true|false
60+
```
5161
5262
## Supported Features
5363
- ✅ means the feature is fully supported.

0 commit comments

Comments
 (0)