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

            if (rowsCount > 0)
            {
                MobileSoft.Model.Resources.Tb_Resources_ReleaseCarrental model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.Resources.Tb_Resources_ReleaseCarrental();
                    //model.ReleaseCarrentalID=dt.Rows[n]["ReleaseCarrentalID"].ToString();
                    model.ReleaseCarrentalBrand    = dt.Rows[n]["ReleaseCarrentalBrand"].ToString();
                    model.ReleaseCarrentalModels   = dt.Rows[n]["ReleaseCarrentalModels"].ToString();
                    model.ReleaseCarrentalManCount = dt.Rows[n]["ReleaseCarrentalManCount"].ToString();
                    model.ReleaseCarrentalContent  = dt.Rows[n]["ReleaseCarrentalContent"].ToString();
                    model.ReleaseCarrentalNeedKnow = dt.Rows[n]["ReleaseCarrentalNeedKnow"].ToString();
                    //model.ReleaseID=dt.Rows[n]["ReleaseID"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.Resources.Tb_Resources_ReleaseCarrental model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public long Add(MobileSoft.Model.Resources.Tb_Resources_ReleaseCarrental model)
 {
     return(dal.Add(model));
 }