1 I've have done a version of IBatisNet facility.
\r
2 The configuration node schema follows:
\r
4 <facility id="IBatisNet">
\r
5 <sqlMap id="sqlMap1.name" config="sqlMap1.config.name">
\r
6 <sqlMap id="sqlMap2.name" config="sqlMap2.config.name">
\r
11 Windsor container = new Windsor();
\r
12 container.AddFacility("IBatisNet", new IBatisNetFacility());
\r
14 // You can query the SqlMapper
\r
15 SqlMapper sqlMap = container["sqlMap.name"] as SqlMapper;
\r
17 // And your components can request the SqlMapper silently :
\r
20 private SqlMapper _sqlMap;
\r
22 public AuthorDao(SqlMapper sqlMap)
\r
27 public virtual Blog Insert( Account account )
\r
29 _sqlMap.Insert("insertAccount", account);
\r
33 The facility added support for AutomaticSession and Transactional management
\r
36 [NoSession] attribute on method to remove auto-open-session
\r
38 [Session("sqlMap.Name")] attribute on method to specify an sqlmap instance to use
\r