/// <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 bool IsExist <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.IsExistByTable(model.GetTableName(), whereParams, conn, trns)); }