示例#1
0
        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));
        }
示例#2
0
 public ProcedureExecutor(AdoAdapter adapter, ObjectName procedureName)
 {
     _adapter       = adapter;
     _procedureName = procedureName;
     _executeImpl   = ExecuteReader;
 }
示例#3
0
 private IEnumerable <IDictionary <string, object> > FindAll(ObjectName tableName)
 {
     return(ExecuteQuery("select * from " + _adapter.GetSchema().FindTable(tableName).QualifiedName));
 }