/// <summary>
        /// 取得筆數
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="model"></param>
        /// <param name="dao"></param>
        /// <param name="conn"></param>
        /// <param name="trns"></param>
        /// <returns></returns>
        public static int QueryCount <T>(this T model, IDBUtil dao,
                                         DbConnection conn = null, DbTransaction trns = null) where T : IDBEntity
        {
            //處理 where 參數
            var whereParams = prepareWhereParams(model.GetOperating().WHERE_LIST);

            //查詢
            return(dao.QueryCount(model.GetTableName(), whereParams, conn, trns));
        }