Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Allow Entity Framework store more than 2 decimal places

Scary Swan answered on March 30, 2023 Popularity 2/10 Helpfulness 3/10

Contents


More Related Answers

  • ef core decimal
  • net 6 web api c# No store type was specified for the decimal property on entity type

  • Allow Entity Framework store more than 2 decimal places

    0

    If you are facing this issue where Entity Framework puts on 2 decimal places when inserting or updating records which is a major problem, especially when dealing with GPS Coordinates. Then you need to add this sample line to your DataModel which is mostly found in the Model folder. For example, if your Table class name is CommunityBanks then you will need to do this to get the GPS Coordinates to the length of 5 decimal places.


    Popularity 2/10 Helpfulness 3/10 Language csharp
    Link to this answer
    Share Copy Link
    Contributed on Mar 30 2023
    Scary Swan
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.