public static SelectQuery QueryTableAs(this ISQLQueryable entity, string tableName) { var query = new SelectQuery(tableName, entity.GetType().Name); return(query); }