温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:iBatisNet入门示例源码(操作GridView和DetailsView)
当前文件:
IBatisNet_GridView_DetailsView_QuikStart/IBatisNetDemo/Service/BaseService.cs[1K,2009-6-12 11:44:51],打开代码结构图
IBatisNet_GridView_DetailsView_QuikStart/IBatisNetDemo/Service/BaseService.cs[1K,2009-6-12 11:44:51],打开代码结构图1Apache Notice 24
using System; 25
using System.Collections.Generic; 26
using System.Text; 27
using System.IO; 28
using IBatisNet.DataMapper.Configuration; 29
using IBatisNet.DataMapper; 30
using IBatisNet.Common.Utilities; 31
using System.Reflection; 32
33
namespace IBatisNetDemo.Service 34
{ 35
/// download from www.51aspx.com(51aspx.com) 36
37
public class BaseService 38
{ 39
private static SqlMapper sqlMap; 40
41
//private string fileName = "sqlMap.Config"; 42
43
public BaseService() 44
{ 45
Assembly assembly = Assembly.Load("IBatisNetDemo"); 46
Stream stream = assembly.GetManifestResourceStream("IBatisNetDemo.sqlmap.config"); 47
48
DomSqlMapBuilder builder = new DomSqlMapBuilder(); 49
sqlMap = builder.Configure( stream ); 50
51
} 52
53
54
public SqlMapper SqlMap 55
{ 56
get 57
{ 58
return sqlMap; 59
} 60
} 61
} 62
} 63






* $Header: $
*******************************************************************************

