How to convert .edmx to .efml ?

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
qq409665701
Posts: 9
Joined: Mon 10 May 2021 07:48

How to convert .edmx to .efml ?

Post by qq409665701 » Mon 10 May 2021 07:52

I need to convert edmx(entityframework model) to efml(entityframework core model). I have not find some solutions all the thime.

Thanks.

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

Re: How to convert .edmx to .efml ?

Post by Shalex » Wed 12 May 2021 18:37

ADO.NET Entity Data Model (*.edmx) can be converted to Devart Entity Model (*.edml) with Entity Developer.

Neither *.edmx, no *.edml can be converted to Devart EF Core Model (*.efml) because it uses a different object model.

You should create a new *.efml model with Database-First approach and add the existing database objects with Create Model Wizard or Update From Database Wizard.

qq409665701
Posts: 9
Joined: Mon 10 May 2021 07:48

Re: How to convert .edmx to .efml ?

Post by qq409665701 » Wed 02 Jun 2021 02:55

Shalex wrote: Wed 12 May 2021 18:37 ADO.NET Entity Data Model (*.edmx) can be converted to Devart Entity Model (*.edml) with Entity Developer.

Neither *.edmx, no *.edml can be converted to Devart EF Core Model (*.efml) because it uses a different object model.

You should create a new *.efml model with Database-First approach and add the existing database objects with Create Model Wizard or Update From Database Wizard.
Thank you for your answer and attention!
EDML has some information attached to it that is not in the database, so i can't use database first way to generate efml. Now, we need to convert edml or edmx to efml.
I read EDMX by parsing XML files, is there a more stable way to do it? Such as t4.

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

Re: How to convert .edmx to .efml ?

Post by Shalex » Wed 02 Jun 2021 17:31

qq409665701 wrote: Wed 02 Jun 2021 02:55 Now, we need to convert edml or edmx to efml.
I read EDMX by parsing XML files, is there a more stable way to do it? Such as t4.
We do not provide an out-of-the-box solution for converting EF6 model to EF Core model. Microsoft documentation about differences between EF6 and EF Core models is available at https://docs.microsoft.com/en-us/ef/efc ... /port-edmx.

qq409665701
Posts: 9
Joined: Mon 10 May 2021 07:48

Re: How to convert .edmx to .efml ?

Post by qq409665701 » Thu 03 Jun 2021 06:52

Shalex wrote: Wed 02 Jun 2021 17:31
qq409665701 wrote: Wed 02 Jun 2021 02:55 Now, we need to convert edml or edmx to efml.
I read EDMX by parsing XML files, is there a more stable way to do it? Such as t4.
We do not provide an out-of-the-box solution for converting EF6 model to EF Core model. Microsoft documentation about differences between EF6 and EF Core models is available at https://docs.microsoft.com/en-us/ef/efc ... /port-edmx.
I already know about this.(https://docs.microsoft.com/en-us/ef/efc ... /port-edmx)
I wonder if the templates in Entity Developer can resolve EDML?
I don't know if I can get all the EDML information in the template. such as model.Association, model.Classes and so on.
(The fornms can't upload images. The path of template is 'entity developer'->'model explorer'->'templates'->'data transfer object'.)

qq409665701
Posts: 9
Joined: Mon 10 May 2021 07:48

Re: How to convert .edmx to .efml ?

Post by qq409665701 » Fri 04 Jun 2021 01:06

qq409665701 wrote: Thu 03 Jun 2021 06:52
Shalex wrote: Wed 02 Jun 2021 17:31
qq409665701 wrote: Wed 02 Jun 2021 02:55 Now, we need to convert edml or edmx to efml.
I read EDMX by parsing XML files, is there a more stable way to do it? Such as t4.
We do not provide an out-of-the-box solution for converting EF6 model to EF Core model. Microsoft documentation about differences between EF6 and EF Core models is available at https://docs.microsoft.com/en-us/ef/efc ... /port-edmx.
I already know about this.(https://docs.microsoft.com/en-us/ef/efc ... /port-edmx)
I wonder if the templates in Entity Developer can resolve EDML?
I don't know if I can get all the EDML information in the template. such as model.Association, model.Classes and so on.
(The fornms can't upload images. The path of template is 'entity developer'->'model explorer'->'templates'->'data transfer object'.)
Where can I view the API documentation of 'entity developer templates'?

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

Re: How to convert .edmx to .efml ?

Post by Shalex » Fri 04 Jun 2021 18:30

qq409665701 wrote: Thu 03 Jun 2021 06:52 I wonder if the templates in Entity Developer can resolve EDML?
I don't know if I can get all the EDML information in the template. such as model.Association, model.Classes and so on.
(The fornms can't upload images. The path of template is 'entity developer'->'model explorer'->'templates'->'data transfer object'.)
T4 template could not convert EF6 model to EF Core model. This should be a separate solution being a resource-demanding task taking into account differences between EF6 and EF Core. We recommend you to create a new *.efml model with the Database-First approach and comprehend it with your extra settings manually.
qq409665701 wrote: Fri 04 Jun 2021 01:06 Where can I view the API documentation of 'entity developer templates'?
Refer to viewtopic.php?f=32&t=46705.

Post Reply