public PageList <AssetLogDto> PageListDto(AssetLogSearchParam param = null, int pageIndex = 1, int pageSize = 20, string cols = "*") { if (param == null) { param = new AssetLogSearchParam(); } var util = param.ToSearchUtil(); return(db.Query <AssetLogDto>(util, pageIndex, pageSize, "Asset_AssetLog", cols)); }
public IEnumerable <AssetLogDto> ListDto(AssetLogSearchParam param = null, string cols = "*") { if (param == null) { param = new AssetLogSearchParam(); } var util = param.ToSearchUtil(); return(db.Fetch <AssetLogDto>(util, "Asset_AssetLog", cols)); }