How do I do the following

Posts   
 
    
dubman
User
Posts: 1
Joined: 10-Jul-2009
# Posted on: 25-Aug-2009 15:00:05   

Hello everyone,

How can I do the following

<[ if StringValueEquals typeofField "System.Guid"]> in the dto template.

I need this because I don't want to set the primary key if the Guid is empty.

IE If (_sportId != Guid.Empty) { toFill.SportId = _sportId; }

Thanks

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 26-Aug-2009 05:58:09   

Hi there,

Sorry if I didn't understand you 100%. What exactly code do you want to be generated? and Where (in DTO) do you want it to be generated?

David Elizondo | LLBLGen Support Team