Page 1 of 1

How to convert .edmx to .efml ?

Posted: Mon 10 May 2021 07:52
by qq409665701
I need to convert edmx(entityframework model) to efml(entityframework core model). I have not find some solutions all the thime.

Thanks.

Re: How to convert .edmx to .efml ?

Posted: Wed 12 May 2021 18:37
by Shalex
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.

Re: How to convert .edmx to .efml ?

Posted: Wed 02 Jun 2021 02:55
by qq409665701
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.

Re: How to convert .edmx to .efml ?

Posted: Wed 02 Jun 2021 17:31
by Shalex
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.

Re: How to convert .edmx to .efml ?

Posted: Thu 03 Jun 2021 06:52
by qq409665701
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'.)

Re: How to convert .edmx to .efml ?

Posted: Fri 04 Jun 2021 01:06
by qq409665701
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'?

Re: How to convert .edmx to .efml ?

Posted: Fri 04 Jun 2021 18:30
by Shalex
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.