Questions tagged [ibatis.net]

iBATIS is a simple but complete framework that makes it easy to map objects to SQL statements or stored procedures.

iBATIS DataMapper couples objects with stored procedures or SQL statements using a XML descriptor. Simplicity is the biggest advantage of the iBATIS DataMapper over object relational mapping tools. To use iBATIS DataMapper you rely on your own objects, XML, and SQL.

54 questions
2
votes
1 answer

caching per request in ASP.NET?

I'm using both IBatis.NET and Spring.NET on a project at work and I'd like to figure out if I can leverage both/either frameworks to achieve "per-request caching" on all calls into my DAL layer. In other words, every time an HTTP request is served…
Mitch A
  • 2,050
  • 1
  • 21
  • 41
1
vote
1 answer

Can iBATIS.NET work with ICollection?

This question is in relation to another question I have: Using iBATIS.NET with generic custom collection interfaces and Unity The problem seems to be that iBATIS.NET will only populate a custom collection (i.e. QueryForObject("Select_Foo") which has…
tRi11
  • 149
  • 8
1
vote
1 answer

Using iBATIS.NET with generic custom collection interfaces and Unity

I'm trying to use a generic custom collection interface (to support injection with Microsoft Patterns and Practices Unity) in a class O/R mapped with iBATIS.NET. Does anyone know if this is possible and if so how to do it? I have an…
tRi11
  • 149
  • 8
1
vote
1 answer

ibatis.net datetime and dynamic sql

how can i test if a property of type dateTime contains value on dynamic sql statement with ibatis.net my mapping file is as follow, but it does not work .... …
ion
  • 1,141
  • 3
  • 9
  • 9
1
vote
0 answers

Exception of type 'System.OutOfMemoryException' was thrown

I have an application which throws "Exception of type 'System.OutOfMemoryException'". Which reduces the performance of the server,the CPU usage was around 95%. I dont know the reason why this problem is occuring .... can any one pls tell…
Pranesh Nair
  • 313
  • 4
  • 11
  • 27
1
vote
0 answers

ibatis Serach Queston when condition like Like '$propertyname$%'

when i use ibatis,I have a sql like that select * from user where name like '%$name$%' if i set the username value is ???, it throw a exception,System.ArgumentOutOfRangeException. i know i can do like that mysql: select * from user where name…
he ivan
  • 11
  • 3
1
vote
0 answers

Ibatis in .NET: get sql from sqlmap as string?

Is it possible to get sql in a sqlmap as a string? There appears to be a way with java? So I have a sqlmap like so:
anthonybell
  • 5,790
  • 7
  • 42
  • 60
1
vote
2 answers

How can I do batch insert using ibatis annotations

I cannot find a tutorial on this, and I find the documentation scant. How can I do batch insert using ibatis annotations? public interface MyTableMapper { @Insert("insert into MyTable(col1) values (#{valueOfCol1})") void…
hba
  • 7,406
  • 10
  • 63
  • 105
1
vote
4 answers

Getting stored procedure's return value with iBatis.NET

How can I retrieve the return value of a stored procedure using iBatis.NET? The below code successfully calls the stored procedure, but the QueryForObject call returns 0. SqlMap
MikeWyatt
  • 7,842
  • 10
  • 50
  • 71
1
vote
2 answers

ibatis.net or nhibernate on mono

I need a stable orm or dataccess framework to use with mono 2.4.2.3. Does anyone used ibatis.net (3.0 alpha or older) or nhibernate 2.1 on mono, are they solid enough for production use ? Regards, sirmak
sirmak
1
vote
0 answers

Ibatis Index Out of Range

Im developing some sort of searcher using Ibatis.NET. So far, this is the sqlMap for the procedure: DECLARE @table1 Table1, @table2 Table2 INSERT INTO…