ReadWriteDTOs C# template not emitting Write methods

Posts   
 
    
Posts: 6
Joined: 16-Aug-2017
# Posted on: 16-Aug-2017 23:12:40   

I'm trying to generate a simple dto object but the UpdateFrom and PF methods referenced in documentation aren't present in the DtoXXX.Persistence.cs file. The CreateProjectionFunc is present.

Code gen settings DTO Class Model C# .Net 4.6.1 ReadWriteDTOs

LLblGen 5.2.2 (project converted from 5.0.1)

The entity model is NHibernate v4

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 17-Aug-2017 07:53:38   

Hi there,

I can't reproduce what you are seeing. Please confirm the values you have set up in the Code Generation screen for the DTO model/persistence.

Also, what is exactly what you expect in the persistence file that isn't there?

David Elizondo | LLBLGen Support Team
Posts: 6
Joined: 16-Aug-2017
# Posted on: 17-Aug-2017 15:30:29   

Whats to confirm?

everything inside the if(emitWritePersistenceMethods) {

block in the template is missing.

Attachments
Filename File size Added on Approval
settings.PNG 19,791 17-Aug-2017 15:30.44 Approved
DtoeventPersistence.cs 2,874 17-Aug-2017 15:31.06 Approved
Posts: 6
Joined: 16-Aug-2017
# Posted on: 17-Aug-2017 16:05:03   

Deleting the derived models section from the project and the .net projects then recreating everything from scratch solved it.

I don't have time to debug, I'm guessing the issue is in 5.0.1 not 5.2.2.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 17-Aug-2017 16:18:25   

Thanks for the feedback, we will close this thread.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 18-Aug-2017 09:27:57   

VoyagerSystems wrote:

Whats to confirm?

I didn't think the question was that vague?

VoyagerSystems wrote:

Deleting the derived models section from the project and the .net projects then recreating everything from scratch solved it.

I don't have time to debug, I'm guessing the issue is in 5.0.1 not 5.2.2.

Next time please attach the llblgenproj file, as it's the source of truth for templates to emit output so we can then try to reproduce it with that file. If something's wrong inside the project file we can help you with that then so you avoid doing redundant work.

There's no known issue around this, so it's weird the write part of the output isn't performed.

Frans Bouma | Lead developer LLBLGen Pro