You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Eka Gautama <ek...@seatech.com> on 2006/10/30 08:19:07 UTC

Bundle into one DLL files

Hi all,

Is it possible to bundle all neccessary IBatis files, such as dao.config, sqlMap.config, XML files, BO and DAO into one DLL file? 

Re: Bundle into one DLL files

Posted by Giancarlo Valente <gi...@gmail.com>.
Yes,
you have to specify in visual strudio, "Embedded Resource" in "Build
Action" in the Property page for each file (map.xml,
properties.config,providers.config)

then you can reference each file in this way:

es. providers.config

 <providers embedded="providers.config , mycompany.project.DataAccess"/>

where :
providers.config is the file, in the root of the dll project
mycompany.project.DataAccess is the project default namespace and dll file name.

for more info you should read the online docs :
http://ibatis.apache.org/docs/dotnet/datamapper/ch04s03.html
for each configuration element it is specified if you can use the
"embedded" attribute.


On 10/30/06, Eka Gautama <ek...@seatech.com> wrote:
>
>
> Hi all,
>
> Is it possible to bundle all neccessary IBatis files, such as dao.config,
> sqlMap.config, XML files, BO and DAO into one DLL file?