Something like this:
mapper.QueryForObject("executeSql", "SELECT * FROM User");
<select id="executeSql">
$value$
</select>
mapper.QueryForObject("executeSql", "WHERE Age = 99");
<select id="executeSql">
SELET * FROM User $value$
</select>
--- Luke Poortinga <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have looked in the reference manual but was unable to find an
> answer to my situation. It seems that it might leverage the
> IBatisNet.DataMapper.Configuration.Sql.Static.StaticSql class.
> I want to send a string sql statement database call from my code. I
> would like to use the configuration properties specified in my
> sqlmapper xml file. Is there anyway I can do this? Or is this
> property exposed so that I can modify it before I execute the
> statement?
>
> Thanks,
> Luke
>