Float in Database to ? in .NET

前端 未结 6 2260
花落未央
花落未央 2020-12-30 20:06

If you have a float in MSSQLServer, to what do you map this in .NET?

Can you convert it to Double or will you lose numbers?

6条回答
  •  温柔的废话
    2020-12-30 20:38

    From my recollection, most of the ORM tools will map it to a Decimal type, which will not lose precision like a double or float.

提交回复
热议问题