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 & max
) of type float
, but when I use the Entity Framework to map the existing database into model classes, then EF creates a class Results
with the data type of the min & max
fields as double
instead of float
as specified in the exsiting database.
So why is this behaviour happening? Will it cause any problems?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…