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

            if (rowsCount > 0)
            {
                MobileSoft.Model.Resources.Tb_Resources_ReleaseVenuesScheduling model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.Resources.Tb_Resources_ReleaseVenuesScheduling();
                    //model.ReleaseVenuesSchedulingID=dt.Rows[n]["ReleaseVenuesSchedulingID"].ToString();
                    if (dt.Rows[n]["ReleaseVenuesSchedulingStartDate"].ToString() != "")
                    {
                        model.ReleaseVenuesSchedulingStartDate = DateTime.Parse(dt.Rows[n]["ReleaseVenuesSchedulingStartDate"].ToString());
                    }
                    if (dt.Rows[n]["ReleaseVenuesSchedulingEndDate"].ToString() != "")
                    {
                        model.ReleaseVenuesSchedulingEndDate = DateTime.Parse(dt.Rows[n]["ReleaseVenuesSchedulingEndDate"].ToString());
                    }
                    if (dt.Rows[n]["ReleaseVenuesSchedulingCount"].ToString() != "")
                    {
                        model.ReleaseVenuesSchedulingCount = decimal.Parse(dt.Rows[n]["ReleaseVenuesSchedulingCount"].ToString());
                    }
                    //model.ReleaseVenuesID=dt.Rows[n]["ReleaseVenuesID"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.Resources.Tb_Resources_ReleaseVenuesScheduling model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public long  Add(MobileSoft.Model.Resources.Tb_Resources_ReleaseVenuesScheduling model)
 {
     return(dal.Add(model));
 }