Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> ReadWriteDTOs C# template not emitting Write methods
 

Pages: 1
Bugs & Issues
ReadWriteDTOs C# template not emitting Write methods
Page:1/1 

  Print all messages in this thread  
Poster Message
VoyagerSystems
User



Location:

Joined on:
16-Aug-2017 22:46:10
Posted:
6 posts
# 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
  Top
daelmo
Support Team



Location:
Guatemala City
Joined on:
28-Nov-2005 23:35:24
Posted:
8125 posts
# 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'ing (articles and code snippets) | linkedin | twitter
 
Top
VoyagerSystems
User



Location:

Joined on:
16-Aug-2017 22:46:10
Posted:
6 posts
# Posted on: 17-Aug-2017 15:30:29. Goto attachments  
Whats to confirm?


everything inside the
if(emitWritePersistenceMethods)
    {

block in the template is missing.
  Top
VoyagerSystems
User



Location:

Joined on:
16-Aug-2017 22:46:10
Posted:
6 posts
# 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.


  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14603 posts
# Posted on: 17-Aug-2017 16:18:25.  
Thanks for the feedback, we will close this thread.
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37967 posts
# 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
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.