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

            if (rowsCount > 0)
            {
                dbamet.Model.Admin model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new dbamet.Model.Admin();
                    if (dt.Rows[n]["uid"] != null && dt.Rows[n]["uid"].ToString() != "")
                    {
                        model.uid = dt.Rows[n]["uid"].ToString();
                    }
                    if (dt.Rows[n]["upwd"] != null && dt.Rows[n]["upwd"].ToString() != "")
                    {
                        model.upwd = dt.Rows[n]["upwd"].ToString();
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(dbamet.Model.Admin model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(dbamet.Model.Admin model)
 {
     return(dal.Add(model));
 }