Feature Request

Posts   
 
    
Angus
User
Posts: 44
Joined: 08-Jul-2005
# Posted on: 02-Mar-2006 02:09:25   

Franz, Great Product.

I have been using LLBL Gen since June 05 and I can't say enough good things about it. So much that I have updated our Standard Design Book to require that any outsourcer who does work for us purchase and use LLBL Gen as the data access layer.

There is one thing I would like to see added to the next version though.

I really miss the methods to set values to null and the IsNull on datatables


employee.SetFirstNameNull() 

is cleaner than

employee.SetNewFieldValue("FirstName",null);

OR  for better compile time checking

employee.SetNewFieldValue((int)EmployeeFieldIndex.FirstName,null);

Same thing for Checking null


employee.IsFirstNameNull() 

VS
employee.FirstName == null

Whatever you decide, keep up the great work. I'm going to love the tool with or without the changes. But I would love it more with them. wink

Chris

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 02-Mar-2006 07:27:28   

You may alter the templates, and put your suddested function within.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39590
Joined: 17-Aug-2003
# Posted on: 02-Mar-2006 08:37:42   

Thanks for the kind words smile

In v2 nullable type support will be added so you will be able to test a field if it's null with '=='. I didn't add the methods as you requested, as that would create a big pile of extra code. As walaa said, it's a small addition to a template. You can do this by creating a small include template which generates these methods into your entities. I won't add them, so they won't clash with future methods. The template system is re-designed in v2 so it will be much much more easier to add an include template so IMHO it's the proper solution in this situation.

Frans Bouma | Lead developer LLBLGen Pro