Im having trouble with the DDL-generation from EDMX using the "Entity De开发者_开发知识库signer Database Generation Power Pack" add-on. It generates datetime-columns instead on datetime2 even though ProviderManifestToken is set to 2008. Can it be fixed? I don't want to do this manually all the time because Im using the model-first-approach...
I finally found how to specify to E4 to output a datetime2 instead of a datetime.
You need to update the .tt file that you use to generate your DDL.
Complete answer can be found here:
http://social.msdn.microsoft.com/Forums/en-GB/adodotnetentityframework/thread/22ee46ca-9b6e-44a4-b5ed-b7e89a68a9b8
精彩评论