Well, having spent endless time searching for an answer, I have to add another question in this question ...
I have a table with 2 datetime fields created by EF4 EDMX designer in VS 2010.
the generated fields in SQL 2008 are datetime, not datetime2.
looking at edmx markup, the fields are of type datetime2.
the insertion does not work with the known datetime2 / datetime conversion problem ....
I manually changed the fields to datetime2 in the sql table.
still no luck.
I probably missed something, but I can not understand what is happening.
I even tried to restore db from the designer and recreate edmx from db ...
still the same problem.
any help greatly appreciated.
entity-framework-4 datetime2 designer edmx
user300435
source share