示例#1
0
文件: Test.cs 项目: armano2/fastdb
 public static void DumpRecords(FastDbCommand command)
 {
     Console.WriteLine();
       Console.WriteLine("---SQL: \"{0}\"---", command.SQL);
       command.Describe();  // Ensure that field descriptions are fetched from the database.
       foreach (FastDbField f in command.Fields)
     Console.Write("{0}\t", f.Name);
       Console.WriteLine();
       foreach(FastDbCommand.Cursor cur in command.Select()) {
     foreach (FastDbField f in cur.Fields)
       Console.Write("{0}\t", f.asString);
     Console.WriteLine();
       }
 }
示例#2
0
 public Cursor(FastDbCommand command)
 {
     this.command = command;
 }
示例#3
0
 internal void RemoveCommand(FastDbCommand command)
 {
     lock(typeof(FastDbConnection)) {
     commands.Remove(command);
       }
 }
示例#4
0
 public Cursor(FastDbCommand command)
 {
     this.command = command;
 }
示例#5
0
 internal void RemoveCommand(FastDbCommand command)
 {
     lock (typeof(FastDbConnection)) {
         commands.Remove(command);
     }
 }