Multiple Target Frameworks

Posts   
 
    
JoeE
User
Posts: 11
Joined: 28-Nov-2023
# Posted on: 28-Nov-2023 09:29:08   

Hi,

I have a .Net Framework 4.8 and .NET (Core) project that share the same database. As such I need EF code generated for both platforms.

From what I've seen I can change the Target Framework, switching between the two in order to generate the code. Is it possible to have the two Target Frameworks configured to generate the code for both, not having to swop the Target Frameworks every time?

Or is there perhaps a more elegant way to handle this?

Regards,

Joe

Walaa avatar
Walaa
Support Team
Posts: 14982
Joined: 21-Aug-2005
# Posted on: 28-Nov-2023 21:57:51   

That's not supported.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39747
Joined: 17-Aug-2003
# Posted on: 29-Nov-2023 09:24:28   

Even Entity Framework 6 for netstandard is different from the EF on .net framework, so you have to create two projects.

Frans Bouma | Lead developer LLBLGen Pro
JoeE
User
Posts: 11
Joined: 28-Nov-2023
# Posted on: 29-Nov-2023 10:04:06   

Otis wrote:

Even Entity Framework 6 for netstandard is different from the EF on .net framework, so you have to create two projects.

Thank you.

So, you suggest I have two LLBLGen projects, one to target .Net Core and the other .Net Framework, and then ensure whatever I do in the one, I do in the other (when new tables or fields are added)?

I am completely new to LLBLGen and is busy evaluating - sorry if I am missing something.

Walaa avatar
Walaa
Support Team
Posts: 14982
Joined: 21-Aug-2005
# Posted on: 29-Nov-2023 16:53:02   

Indeed.