public static List <T> Fetch <T>(long page, long itemsPerPage, string sql, params object[] args)
 {
     using (var db = new PetaDbContext())
     {
         return(db.Fetch <T>(page, itemsPerPage, sql, args));
     }
 }
 public static List <T> Fetch <T>(string sql, params object[] args)
 {
     using (var db = new PetaDbContext())
     {
         return(db.Fetch <T>(sql, args));
     }
 }
 public List <T> Fetch <T>(long page, long itemsPerPage, Sql sql)
 {
     using (var db = new PetaDbContext())
     {
         return(db.Fetch <T>(page, itemsPerPage, sql));
     }
 }
 public static List <T> Fetch <T>(Sql sql)
 {
     using (var db = new PetaDbContext())
     {
         return(db.Fetch <T>(sql));
     }
 }