using System;
using System.Collections.Generic;
using System.Text;
using IBatisNet.DataMapper;
using Com.Chinasofti.PPAS.Model;
namespace Com.Chinasofti.PPAS.Dao
{
public class DiaryDao
{
private ISqlMapper sqlMapper;
public ISqlMapper SqlMapper
{
get { return sqlMapper; }
set { sqlMapper = value; }
}
/// <summary>
/// get all diary
/// </summary>
/// <returns></returns>
public IList<DiaryBean> GetAllDiary()
{
IList<DiaryBean> list = null;
list = sqlMapper.QueryForList<DiaryBean>("SelectAllDiary", null);
return list;
}
}
}
C# ibatis 测试
原创
©著作权归作者所有:来自51CTO博客作者小傅哥的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
C# 单元测试
C# 单元测试
C# 单元测试 -
C# for循环测试
C# for循环测试
C# for循环测试 -
IBatis for .Net 测试
IBatis for .Net 测试
IBatis for .Net 测试 sql xml ide 属性文件 -
c# 操作Dapper测试mysql 插入数据 sql ide 程序集