Skip to content

Fix EF core warning#72

Merged
hhoangnl merged 1 commit intomasterfrom
bugfix/efcore-migrations-add-warning
Oct 24, 2020
Merged

Fix EF core warning#72
hhoangnl merged 1 commit intomasterfrom
bugfix/efcore-migrations-add-warning

Conversation

@hhoangnl
Copy link
Copy Markdown
Contributor

The 'bool' property 'X' on entity type 'Y' is configured with a database-generated default. This default will always be used for inserts when the property has the value 'false', since this is the CLR default for the 'bool' type. Consider using the nullable 'bool?' type instead so that the default will only be used for inserts when the property value is 'null'."

…onfigured with a database-generated default. This default will always be used for inserts when the property has the value 'false', since this is the CLR default for the 'bool' type. Consider using the nullable 'bool?' type instead so that the default will only be used for inserts when the property value is 'null'."
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@hhoangnl hhoangnl merged commit c0e8693 into master Oct 24, 2020
@hhoangnl hhoangnl deleted the bugfix/efcore-migrations-add-warning branch October 24, 2020 10:04
@hhoangnl hhoangnl added the bug Something isn't working label Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant