Closed gdlcf88 closed 3 years ago
The first two lines are unnecessary, do they have special use?
The last line "HasColumnType` is not likely to be auto generated.
Just like the ABP official modules did, maybe configuring Fluent API is a good practice.
decimal(18, 2)
is EF Core's default column type for a decimal property, if we did not set the HasColumnType for decimal properties manually, we will get a warning when using the ef-tools.
decimal(18, 2)
is EF Core's default column type for a decimal property
So why do we need to manually configure it?
decimal(18, 2)
prevents the warning and make the column type clearer.
However, I am not really sure if we need to create Fluent API configurations like ABP's modules did. 😄
Close for now. Reopen later if needed.
Should generate property configurations when the command
generate crud
runs.