use function in insert

Oct 23, 2012 at 8:14 AM

Hi,

is it supported to use sql function in column value?

like

int pointId = DBContext.Insert("points").Column("the_geom", "ST_GeomFromText('POINT(0,0)' , 900913)").ExecuteReturnLastId();

Thanks,

Kamal

Coordinator
Oct 23, 2012 at 12:56 PM

This is currently not supported, until it is then you need to use the Sql("insert into points ....").ExecuteReturnLastId();

I'm working on version 3 now where I'm looking into adding the option of having SQL in the column.

 

Regards,

Lars-Erik Kindblad