Entity Framework maps the float datatype into double

后端 未结 2 1980
旧巷少年郎
旧巷少年郎 2020-12-17 14:32

I am working on an asp.net mvc 3 web application using database-first approach.

I have a table called Results that contains two columns (min &

2条回答
  •  时光取名叫无心
    2020-12-17 14:45

    I'm not sure if your problem is identical to this or not:

    http://forums.asp.net/p/1606916/4100117.aspx

    But it doesn't seem like this should cause any problems. You could lose precision with your numbers going from a double to a float, but it should still work unless you need the extra digits.

提交回复
热议问题