c# - ODP.NET and Entity Framework Not Cooperating with Float Values -


i have odd issue occurring odp.net when accessing float column in database table. using entity framework generate models (code first) , trying scaffold controller , set of views it. when create model, notice entity framework , odp.net create float data type way in c# class:

[column(typename = "float")] public decimal? dbvalue { get; set; } 

presumably because float has high precision? however, causing error when try run scaffolding. when take out column specifier , straight-up float in c#, seems work fine. however, worries me precision of value. idea whether odp.net or entity framework this? best way handle precision values of type float in database when using odp.net?


Comments