During insert a float number like 0.0001 into sql from my code, the result is a 0.0000 in database. here is definition of my table column:
decimal(20,15)
Here is the definition of class field:
public decimal Rate {get ; set; }
How can I solve this problem?
I am using EF Code first approach like this:
Class1 obj = new Class1();
obj.Rate = 0.000001;
ClassDbSet.Add(obj);
DbContext.SaveChange();