PostgreSQL error - 'NpgsqlDbType' does not contain a definition for 'VarChar'

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
fabernal
User
Posts: 3

PostgreSQL error - 'NpgsqlDbType' does not contain a definition for 'VarChar'

Post by fabernal »

Hi,
When I generate code from a Postgresql database, I get this error:
Models\Login.cs(355,43): error CS0117: 'NpgsqlDbType' does not contain a definition for 'VarChar'

If open the project in visual studio and change the type for Varchar the solution compile.

How can I resolve the issue from asp.net maker?

Thanks


MichaelG
User
Posts: 1186

Post by MichaelG »

Tested user login with PostgreSQL using ASP.NET Maker 2023 (latest version) and did not find any issue. Please make sure that you are using the latest version and also update to the latest template (Tools -> Update Template).


fbernal
User
Posts: 1

Post by fbernal »

Hi, I have the same issue. Can you show me when I can chage the data type name from VarChar to Varchar?


MichaelG
User
Posts: 1186

Post by MichaelG »

Make sure that you use the latest version of ASP.NET Maker 2023 or even better, upgrade to ASP.NET Maker 2024.


Post Reply