Ejemplo n.º 1
0
        public int FindCountByReleasedate(Varticleinfo obj)
        {
            String stmtId = "Varticleinfo.GetFindByReleasedateCount";
            int    result = this.sqlMapper.QueryForObject <int>(stmtId, obj);

            return(result);
        }
Ejemplo n.º 2
0
        public Varticleinfo Find(Int64 id)
        {
            String       stmtId = "Varticleinfo.Find";
            Varticleinfo result = this.sqlMapper.QueryForObject <Varticleinfo>(stmtId, id);

            return(result);
        }
Ejemplo n.º 3
0
        public void Reload(Varticleinfo obj)
        {
            if (obj == null)
            {
                throw new ArgumentNullException("obj");
            }
            String stmtId = "Varticleinfo.Find";

            this.sqlMapper.QueryForObject <Varticleinfo>(stmtId, obj, obj);
        }
Ejemplo n.º 4
0
        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);
        }