Sielnix / EFCore.Snowflake

Entity Framework Core provider for Snowflake
GNU Lesser General Public License v3.0
31 stars 2 forks source link

Cannot set default value 'FALSE' of type 'System.String' on property 'foo' of type 'System.Nullable'1[System.Boolean]' in entity type 'BAR #2

Closed coridrew closed 8 months ago

coridrew commented 8 months ago

The table definition in Snowflake for that is

create or replace TRANSIENT TABLE dbname.schemaname.BAR { ... FOO BOOLEAN DEFAULT FALSE, ... }

Sielnix commented 8 months ago

Hello @coridrew , Could you provide some code in c# that triggers that error?

Best regards

coridrew commented 8 months ago

We're scaffolding from the EF CLI dotnet ef dbcontext scaffold... https://learn.microsoft.com/en-us/ef/core/cli/dotnet#dotnet-ef-dbcontext-scaffold

Sielnix commented 8 months ago

Thank you @coridrew for your bug report. This issue has been fixed in newest version v8.0.3 of EFCore.Snowflake. Please update your nuget package and verify if it's ok.

coridrew commented 8 months ago

Verified - thank you! Adding another I found :)