コード例 #1
0
 public DBConnector(string filename, DBTableDefinition tableDefinition, bool keepInMemory)
 {
     this.filename        = filename;
     this.tableDefinition = tableDefinition;
     this.keepInMemory    = keepInMemory;
     if (this.keepInMemory)
     {
         this.connection = new SQLiteConnection("Data Source=:memory:;Version=3;Connect Timeout=10");
         this.connection.Open();
         this.loadDBFromFile();
     }
     else
     {
         this.connection = this.openCreateFileDB(filename);
         //this.connection.Open();
     }
 }
コード例 #2
0
 public DBConnector(string filename, DBTableDefinition tableDefinition, bool keepInMemory)
 {
     this.filename = filename;
     this.tableDefinition = tableDefinition;
     this.keepInMemory = keepInMemory;
     if (this.keepInMemory) {
         this.connection = new SQLiteConnection("Data Source=:memory:;Version=3;Connect Timeout=10");
         this.connection.Open();
         this.loadDBFromFile();
     } else {
         this.connection = this.openCreateFileDB(filename);
         //this.connection.Open();
     }
 }
コード例 #3
0
 public DBConnector(string filename, DBTableDefinition tableDefinition)
     : this(filename, tableDefinition, true)
 {
 }
コード例 #4
0
 public DBConnector(string filename, DBTableDefinition tableDefinition) : this(filename, tableDefinition, true)
 {
 }