DateTime Type is reflected as "datetime2" in Entity Developer Version6.4.775

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
PixelHunter
Posts: 17
Joined: Thu 29 Jun 2017 11:07

DateTime Type is reflected as "datetime2" in Entity Developer Version6.4.775

Post by PixelHunter » Fri 26 Jul 2019 09:35

Hi!

I have a problem regarding Entity Developer/Entity Framework Core and the migration to a database after model creation.

I created an EF Core Model in Entity Developer.

When I set the Type as "DateTime" in the desired properties, the type is reflected in Database (Sql Server) as "datetime2", the same happens when I ser the type to "Date", it goes to "datetime2".

Image
Image


I would like to have a normal "datetime" value in Sql Server, How can I achieve this?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: DateTime Type is reflected as "datetime2" in Entity Developer Version6.4.775

Post by Shalex » Fri 26 Jul 2019 18:17

Please double-click on the particular property in your EF Core Model to get Property Editor, then press [...] against Column to open Column Editor, set SQL Type and press OK.

Post Reply