FYI, the DataMapper.sln can be used file. That should work properly. The IBatisNet.sln file is old (prior to the move to Apache SVN). Not sure if Gilles wants to keep the old solution file around for other reasons...
What is the string concatenation crap you're producing Larry? Could we have an example? :-)
Roberto
On 5/18/05, Ron Grabowski <[EMAIL PROTECTED]> wrote:
1.0.1.321 is started to show sings of age. Since it sounds like you're
just starting your project, I recommend trying a nightly build. If
you're not very familiar with checking out and building .Net things
from SVN, I can provide you instructions or a link to a nightly build.
The Visual Studio solution file currently has some very small quircks
in it that have been marked as needing fixed:
http://issues.apache.org/jira/browse/IBATISNET-43
IBatisNet does not use DataSets or DataTables to return data. It
returns data as either ILists or strongly typed collections (i.e.
ProductionCollection, CategoryCollection, etc.) which extend IList.
Most (all?) list related controls in .Net (DropDownList, ListBox, etc.)
can bind to IList. I recommend using this base class when interacting
with the mapper:
http://tinyurl.com/8fl5f
http://svn.apache.org/repos/asf/incubator/ibatis/trunk/cs/npetshop/NPetshop.Persistence/MapperDao/BaseSqlMapDao.cs
public UserCollection UserGetMany()
{
try
{
return (UserCollection)ExecuteQueryForList(" User.GetMany", null);
}
catch(IBatisNetException ex)
{
throw new XXXXXDataException("Unable to populate UserCollection
object from UserGetMany query.", ex);
}
}
There are tools for quickly generating entity objects and strogly typed
collections as well as general use classes for filtering and sorting
strongly typed collections (similiar to DataViews for DataTables).
I use IBatisNet every day in my development environment. I'm sure
myself or someone else on the list can answer any questions you or the
consultant has.
What database are you working with? Are you working on a WebForm or
WinForm application?
- Ron
--- Larry Meadors <[EMAIL PROTECTED] > wrote:
> I am trying to use iBATIS.NET <http://iBATIS.NET> for my first real
> .net
> application...and as a .net noobie, please cut me some slack.
>
> :-D
>
> We have a consultant on site, and he is asking if we can get a
> DataSet out
> of iBATIS...looking at the code, I do not see that in our version
> (1.0.1.321),
> but I am curious if that is something that is in the near future, or
> not?
>
> I am not terribly fond of the idea, for all the same reasons that I
> do not
> use Maps in iBATIS for Java, but at the same time, want to be able to
> use
> this to avoid the string concatination / parameter binding crap I
> currently
> have in my code.
>
> Any thoughts or suggestions?
>
> Larry
>