I use Entity Framework 7 with Npgsql adapter. Sql generated by EF seems like
SELECT \"r\".\"Id\", \"r\".\"Name\" FROM \"public\".\"Role\" AS \"r\"
To do this, you would need to swap out the SQL generation service with your own, quote-less, lowercase version. To do this, you will need to understand how EF uses DI (try reading Understanding EF Services), and need to replace the service that generates SQL. In EF, this could be ISqlGenerationHelper
, IMigrationsSqlGenerator
, or IUpdateSqlGenerator
depending on the circumstance..