ExpresionToApply still not working for inserts

Posts   
 
    
YvesVD
User
Posts: 177
Joined: 19-Oct-2006
# Posted on: 30-Sep-2011 07:28:32   

Hi,

I want to use a function call in an Oracle insert statement. INSERT INTO TAG_BEROEP (DT_WIJZ) VALUES (GetDate())

I've coded the following line but nothing happens

clientEntity.Fields[TagBeroepFields.DtWijz.FieldIndex].ExpressionToApply = QueryHelper.GetDate();

public static IExpression GetDate()
{
   return new DbFunctionCall("GetDate", null);
}

Thanks in advance

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 30-Sep-2011 09:42:10   

Better to have it as a default value in the database, so you don't need to set it when Inserting a new row.

YvesVD
User
Posts: 177
Joined: 19-Oct-2006
# Posted on: 30-Sep-2011 10:44:26   

Walaa wrote:

Better to have it as a default value in the database, so you don't need to set it when Inserting a new row.

Do you consider to add this functionality in the near future ?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 30-Sep-2011 11:15:15   

yep, tho it's not certain it will make the cut for 3.5.

Frans Bouma | Lead developer LLBLGen Pro