Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Asp.net core 2.0 comma and point decimal separator

$
0
0

Hello,

<div> <div id="m_4925469674113528411divtagdefaultwrapper" dir="ltr">

I tried to make an attempt of a basic project Core 2 with just a model:

<div>    public class Bilance 
    { 
        [Key] 
        public int Id { get; set; } 

        [Required] 
        public decimal Amount{ get; set; } // (sql 18,2) 
    }</div>

I used this Custom Model Binding to use the comma as decimal seperator but it doesn't work.

(https://stackoverflow.com/questions/39737607/aspnet-core-decimal-binding-not-working-on-non-english-culture)

Works with a few numbers (123,456) with others no (11,50... 1520,77)

Could you help me? 

Thanks

</div> </div>

Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>