I have moved most of the type-generation specific code in "DynamicPostgreSqlDriver.cs" to "PostgreSqlTablesProvider.cs" to make room for an analogous "PostgreSqlFunctionsProvider" and keep classes at a manageable size but the code is otherwise unchanged.
With these changes merged in, the output for a PostgreSql database with tables and functions should be something like this:
PostgreSql functions can be called as strongly typed methods on the TypedDataContext in a similar fashion to the built-in driver for SqlServer. You can look at the tests to see what is supposed to work.
If you feel I should change something to get this merged in, I am open to suggestions. I can open another PR with squashed commits if you prefer, but I wanted to get the review done first in case I need to change something.
I have moved most of the type-generation specific code in "DynamicPostgreSqlDriver.cs" to "PostgreSqlTablesProvider.cs" to make room for an analogous "PostgreSqlFunctionsProvider" and keep classes at a manageable size but the code is otherwise unchanged.
With these changes merged in, the output for a PostgreSql database with tables and functions should be something like this:
PostgreSql functions can be called as strongly typed methods on the TypedDataContext in a similar fashion to the built-in driver for SqlServer. You can look at the tests to see what is supposed to work.
If you feel I should change something to get this merged in, I am open to suggestions. I can open another PR with squashed commits if you prefer, but I wanted to get the review done first in case I need to change something.