Would like to ask what the following syntax is useful to the new norms of c #? What is a proper noun? I want to search and learn...
RefAsync
TotalCount=0;
Var list=await _db. Queryable ()
OrderByIF (! String. IsNullOrEmpty (strOrderByFileds), strOrderByFileds)
WhereIF (whereExpression!=null, whereExpression)
ToPageListAsync (intPageIndex intPageSize, totalCount);
_db. Queryable After () why can [.] three times? Again bother everybody to reassure,
I wonder if the following this order...
_db. Queryable (). OrderByIF performed first return an A object, the object has A method called A WhereIF? WhereIF method call and then returns a B, B objects have ToPageListAsync method?
CodePudding user response:
Nothing new syntax,
Search the lambda and extension methods,