Exemple #1
0
        public PageList <LoanDto> PageListDto(LoanSearchParam param = null, int pageIndex = 1, int pageSize = 20, string cols = "*")
        {
            if (param == null)
            {
                param = new LoanSearchParam();
            }
            var util = param.ToSearchUtil();

            return(db.Query <LoanDto>(util, pageIndex, pageSize, "Asset_Loan", cols));
        }
Exemple #2
0
        public IEnumerable <LoanDto> ListDto(LoanSearchParam param = null, string cols = "*")
        {
            if (param == null)
            {
                param = new LoanSearchParam();
            }
            MySearchUtil util = param.ToSearchUtil();

            return(db.Fetch <LoanDto>(util, "Asset_Loan", cols));
        }