示例#1
0
 public virtual IEnumerable <T> GetAll()
 {
     using (var connection = SQLiteDBConnection.GetInstance().GetConnection())
     {
         return(connection.Query <T>(QUERY_SELECT_ALL));
     }
 }
示例#2
0
 protected virtual IDbConnection GetConnection()
 {
     return(SQLiteDBConnection.GetInstance().GetConnection());
 }