public string GetSql() { var s = select.ToString(); var r = orderby.ToString(); if (index > 1 && string.IsNullOrEmpty(r)) { r = Key; } return(db.CreateSql(string.IsNullOrEmpty(s)?"*":s, TableName, where.ToString(), r, size, index)); }