• 當前位置:首頁 > IT技術 > Windows編程 > 正文

    C# ibatis 測試
    2021-08-07 12:46:42

    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;
            }
        }
    }

    本文摘自 :https://blog.51cto.com/u

    開通會員,享受整站包年服務
    国产呦精品一区二区三区网站|久久www免费人咸|精品无码人妻一区二区|久99久热只有精品国产15|中文字幕亚洲无线码