Beispiel #1
0
 public Goods GetGoods(int id)
 {
     Storage.Storage sto = new Storage.Storage(System.Configuration.ConfigurationManager.ConnectionStrings["eworm"].ConnectionString);
     return(sto.GetGoodsById(id));
 }
Beispiel #2
0
 public int SearchCount(string query)
 {
     Storage.Storage sto = new Storage.Storage(System.Configuration.ConfigurationManager.ConnectionStrings["eworm"].ConnectionString);
     return(sto.SearchGoodsCount(query));
 }
Beispiel #3
0
 public IEnumerable <Goods> Search(string keyword, int start = 0, int limit = 50, string order = null, bool desc = false)
 {
     Crawler.Crawler.AddKeyword(keyword);
     Storage.Storage sto = new Storage.Storage(System.Configuration.ConfigurationManager.ConnectionStrings["eworm"].ConnectionString);
     return(sto.SearchGoods(keyword, start, limit, order, desc));
 }