Yes! It works beautifully - I was thrown off by the TypeResolvers in
the other post - thanks!!
Deadline is fast approaching in this project, pray for no more problems...
Brian
Ron Grabowski wrote:
Does this work?
ICandidateDao _candidateDao =
daoManager[typeof(ICandidateDao)] as ICandidateDao;
IKeywordDao _keywordDao =
daoManager[typeof(IKeywordDao)] as IKeywordDao;
ICategoryDao _categoryDao =
daoManager[typeof(IUserDao)] as ICategoryDao;
--- Brian Kierstead <[EMAIL PROTECTED]> wrote:
Hello,
I'm fairly new to IBatis and having a hard time with it. I keep
running
into 'a concurrent access has occured' errors when I try and run and
update. I've searched through the archives and found the issues
about
records not being updated, but I don't think this is the case.
So, I've downloaded the source that is available on
http://ibatis.apache.org/downloads.html (Source Revision 179390
<http://prdownloads.sourceforge.net/ibatisnet/iBATIS-src-SVN-179390.zip?download>)
and I'm trying to compile it with my project. Everything is fine
except
for one things, my GetDao calls no longer work.
Here is the code I was using with the compiled binaries (1.2 and 1.6
of
the mapper and access, respectively):
_daoManager = ServiceConfig.GetInstance().DaoManager;
_candidateDao = (ICandidateDao)
_daoManager.GetDao("Candidate");
_keywordDao = (IKeywordDao)
_daoManager.GetDao("Keyword");
_categoryDao = (ICategoryDao)
_daoManager.GetDao("Category");
When I try to compile my projects, I get:
C:\Inetpub\wwwroot\dur_CandidateManager_dev2\CandidateManager.Service\EmployerService.cs(32):
Argument '1': cannot convert from 'string' to 'System.Type'
What does this mean? And how can I convert the string name of my
class
into what its looking for.
I found this:
http://www.mail-archive.com/[email protected]/msg00304.html
but
I didnt really understand it. And I tried to use the Type
IBatisNet.Common.Utilities.TypesResolver(string) mentioned by Ron in
his
response, I got a errors about it expecting a method but I had
provided
a NameSpace.
Can anyone help me to understand what is going on here? Thanks!
Brian