This question is locked. New answers and comments are not allowed.
Hello telerik team,
I don't see , how can i build this kind of method for linq for telerik data access ?
can you help me ?
thanks Olivier
I don't see , how can i build this kind of method for linq for telerik data access ?
can you help me ?
public virtual Type GetFillData (string cSelect, string cWhere, string cOrder, string cGroupBy) { string cSql =""; cSql = "select "+cSelect+" from "+ this.TableName; if (! string.IsNullOrEmpty(cWhere)) { cSql += " where "+cWhere; } //===================================================================================== if (! string.IsNullOrEmpty(cGroupBy)) cSql += " group by "+cGroupBy; if (! string.IsNullOrEmpty(cOrder)) cSql += " order by "+cOrder; if ( ! string.IsNullOrEmpty(cSql)) { var oUserList = (from user in this.DbContext.GeTable("mytable") where (cWhere) select new {cSelect}) orderby(cOrder) .ToList(); //====================================================== } return oUserList; }thanks Olivier