As the name implies, the tool could regenerate the files in case it is necessary.
There are two cases:
- when the database schema changes
- when one of the definition files change
This could potentially be more and at the same time less efficient than the type provider approach. There are migration tools, like https://github.com/amacneil/dbmate which dumps the schema definition to a file whenever a migration has been applied. Watching this file could trigger the generation of sources.
In contrast to the polling method, this is very efficient as this is triggering generation only when it is really needed.
As the name implies, the tool could regenerate the files in case it is necessary.
There are two cases:
This could potentially be more and at the same time less efficient than the type provider approach. There are migration tools, like https://github.com/amacneil/dbmate which dumps the schema definition to a file whenever a migration has been applied. Watching this file could trigger the generation of sources.
In contrast to the polling method, this is very efficient as this is triggering generation only when it is really needed.