We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps to reproduce:
CREATE DOMAIN ebool AS bool DEFAULT false NOT NULL;
CREATE TABLE test ( testbool ebool );
dotnet ef dbcontext scaffold "Host=my_host;Database=my_db;Username=my_user;Password=my_pw" Npgsql.EntityFrameworkCore.PostgreSQL
Observed:
Property is bool? type:
public partial class Test { public bool? Testbool { get; set; }
Expected: Property should be bool type:
public bool Testbool { get; set; }
The text was updated successfully, but these errors were encountered:
Take domain nullability into account when scaffolding
43a3af0
Closes npgsql#1626
Take domain nullability into account when scaffolding (#1634)
bb02267
Closes #1626
bc654ce
Closes #1626 (cherry picked from commit bb02267)
It looks like this commit does not add support for not-nullable boolean. It adds only not-nullable string and integer type support.
Sorry, something went wrong.
@kobruleht what makes you say that? The tests check int/string, but the change itself is valid for any PostgreSQL domain, isn't it?
roji
Successfully merging a pull request may close this issue.
Steps to reproduce:
CREATE DOMAIN ebool AS bool DEFAULT false NOT NULL;
CREATE TABLE test ( testbool ebool );
dotnet ef dbcontext scaffold "Host=my_host;Database=my_db;Username=my_user;Password=my_pw" Npgsql.EntityFrameworkCore.PostgreSQL
Observed:
Property is bool? type:
Expected:
Property should be bool type:
The text was updated successfully, but these errors were encountered: