Skip to content
New issue

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

Decimal truncation warning not received #33040

Closed
Rillian-Grant opened this issue Jul 10, 2024 · 1 comment · Fixed by #33251
Closed

Decimal truncation warning not received #33040

Rillian-Grant opened this issue Jul 10, 2024 · 1 comment · Fixed by #33251
Assignees
Labels
aspnet-core/svc okr-health Content health internal initiative seQUESTered Identifies that an issue has been imported into Quest. Source - Docs.ms Docs Customer feedback via GitHub Issue tutorials/subsvc

Comments

@Rillian-Grant
Copy link

Rillian-Grant commented Jul 10, 2024

Description

The following warning is displayed, which is addressed in a later step:

No type was specified for the decimal column 'Price' on entity type 'Movie'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values using 'HasColumnType()'.

I didn't receive this warning using dotnet-ef version 8.0.7.

PS P:\RazorPagesMovie> dotnet ef migrations add InitialCreate   
Build started...
Build succeeded.
Done. To undo this action, use 'ef migrations remove'

Page URL

https://learn.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/model?view=aspnetcore-8.0&tabs=visual-studio-code

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/tutorials/razor-pages/model.md

Document ID

7096fdb3-612e-9e00-bd0b-8ea4886a09ce

Article author

@wadepickett


Associated WorkItem - 291121

@wadepickett
Copy link
Contributor

Thanks @Rillian-Grant! I'll take a look at it.

@wadepickett wadepickett added okr-health Content health internal initiative reQUEST Triggers an issue to be imported into Quest labels Jul 29, 2024
@sequestor sequestor bot added seQUESTered Identifies that an issue has been imported into Quest. and removed reQUEST Triggers an issue to be imported into Quest labels Jul 30, 2024
@wadepickett wadepickett changed the title I didn't receive the decimal truncation warning. Decimal truncation warning not received Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aspnet-core/svc okr-health Content health internal initiative seQUESTered Identifies that an issue has been imported into Quest. Source - Docs.ms Docs Customer feedback via GitHub Issue tutorials/subsvc
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants