private string GetSelectClause(ObjectName tableName) { var table = _schema.FindTable(tableName); return(string.Format("select {0} from {1}", string.Join(", ", table.Columns.Select(c => c.QualifiedName)), table.QualifiedName)); }
public ProcedureExecutor(AdoAdapter adapter, ObjectName procedureName) { _adapter = adapter; _procedureName = procedureName; _executeImpl = ExecuteReader; }
private IEnumerable <IDictionary <string, object> > FindAll(ObjectName tableName) { return(ExecuteQuery("select * from " + _adapter.GetSchema().FindTable(tableName).QualifiedName)); }