Ejemplo n.º 1
0
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public List <MobileSoft.Model.Resources.Tb_Resources_ReleaseVenues> DataTableToList(DataTable dt)
        {
            List <MobileSoft.Model.Resources.Tb_Resources_ReleaseVenues> modelList = new List <MobileSoft.Model.Resources.Tb_Resources_ReleaseVenues>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                MobileSoft.Model.Resources.Tb_Resources_ReleaseVenues model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.Resources.Tb_Resources_ReleaseVenues();
                    //model.ReleaseVenuesID=dt.Rows[n]["ReleaseVenuesID"].ToString();
                    //model.ReleaseID=dt.Rows[n]["ReleaseID"].ToString();
                    model.ReleaseVenuesContent  = dt.Rows[n]["ReleaseVenuesContent"].ToString();
                    model.ReleaseVenuesNeedKnow = dt.Rows[n]["ReleaseVenuesNeedKnow"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.Resources.Tb_Resources_ReleaseVenues model)
 {
     dal.Update(model);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public long  Add(MobileSoft.Model.Resources.Tb_Resources_ReleaseVenues model)
 {
     return(dal.Add(model));
 }