要寫一個(gè)C#的api訪問接口,get方式傳參,需求:參數(shù)個(gè)數(shù)和參數(shù)名不固定。例如:參數(shù)是 element,time,class,則后臺(tái)實(shí)現(xiàn) select element from tab1 where datatime>time and className=class;如果傳參數(shù) element, time,class,order,則后臺(tái)實(shí)現(xiàn) select element from tab1 where datatime>time and className=class order by order;還要類似很多這種情況, 怎么寫一個(gè)通用的方法實(shí)現(xiàn)
C# api接口不固定參數(shù)get傳參
慕桂英4014372
2018-07-16 19:22:31