Hi,
can someone shed some light onto this issue:
Here is some dao config:
<?xml version="1.0" encoding="utf-8"?>
<daoConfig xmlns="
http://ibatis.apache.org/dataAccess">
<providers resource="providers.config"/>
<context id="SqlMapDao">
<database>
<provider name="sqlServer2005" />
<dataSource name="bankAssurance"
connectionString="someconnstring"/>
</database>
<daoSessionHandler id="SqlMap">
<property name="sqlMapConfigFile" value="sqlmap.config"/>
</daoSessionHandler>
<daoFactory>
<dao interface="Namespace.Interface, DataAccess"
implementation="Namespace.SqlMapDao.DaoImpl, DataAccess"/>
</daoFactory>
</context>
</daoConfig>
I have e.g.
class BaseSqlMapDao : IDao
{
protected ISqlMapper GetLocalSqlMap()
{
IDaoManager daoManager = DaoManager.GetInstance(this); <----
this is NOT working - throws null ref exc
IDaoManager daoManager = DaoManager.GetInstance("SqlMapDao");
<--- this works OK
}
}
class DaoImpl : BaseSqlMapDao { implementation irrelevant :) }
Check out what I've marked "NOT working", does someone has idea what's
wrong,
I thought it might be config issue...but with OK line everything is
fine...
Thanks in advance