Asp.net源码专业站
首页->控件应用->iBatisNet入门示例源码(操作GridView和DetailsView)>>IBatisNetDemo/Service/BaseService.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:iBatisNet入门示例源码(操作GridView和DetailsView)
当前文件:文件类型 IBatisNet_GridView_DetailsView_QuikStart/IBatisNetDemo/Service/BaseService.cs[1K,2009-6-12 11:44:51]打开代码结构图
普通视图
		            
1Apache Notice 24using System; 25using System.Collections.Generic; 26using System.Text; 27using System.IO; 28using IBatisNet.DataMapper.Configuration; 29using IBatisNet.DataMapper; 30using IBatisNet.Common.Utilities; 31using System.Reflection; 32 33namespace 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
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:iBatisNet入门示例源码(操作GridView和DetailsView)
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146