public int FindCountByReleasedate(Varticleinfo obj) { String stmtId = "Varticleinfo.GetFindByReleasedateCount"; int result = this.sqlMapper.QueryForObject <int>(stmtId, obj); return(result); }
public Varticleinfo Find(Int64 id) { String stmtId = "Varticleinfo.Find"; Varticleinfo result = this.sqlMapper.QueryForObject <Varticleinfo>(stmtId, id); return(result); }
public void Reload(Varticleinfo obj) { if (obj == null) { throw new ArgumentNullException("obj"); } String stmtId = "Varticleinfo.Find"; this.sqlMapper.QueryForObject <Varticleinfo>(stmtId, obj, obj); }
public void ProcessRequest(HttpContext context) { StreamReader streamReader = new StreamReader(context.Request.InputStream); string typeId = streamReader.ReadToEnd(); logger.Info("Got news type parameter:" + typeId); Varticleinfo poco = new Varticleinfo(); poco.Typeid = long.Parse(typeId); int count = this.vArticleInfoDao.FindCountByTypeid(poco); logger.Info("got item count:" + count.ToString()); context.Response.ContentType = "text/plain"; context.Response.Write(count); }