to_date

Posts   
 
    
wchan
User
Posts: 11
Joined: 01-Aug-2007
# Posted on: 14-Aug-2007 20:25:51   

asp.net 2.0 llblgenpro 2 self-servicing

Hello,

I'm wondering if LLBLGen Pro can do the following query. I can't find to_date function in the documentation.

select * from example
where to_date(date) > sysdate

Thanks!

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 14-Aug-2007 21:37:46   

IPredicateExpression filter = new PredicateExpression(); filter.Add(YourEntity.ToDate >= DateTime.Now);

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 15-Aug-2007 10:45:35   

To call to_date, you should be using DBFunctionCall, check the following section in the manual: "Using the generated code -> Calling a database function"

To get sysdate, check the following thread: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=6873

wchan
User
Posts: 11
Joined: 01-Aug-2007
# Posted on: 15-Aug-2007 22:59:05   

Thank Yousimple_smile