/// <summary>
        /// 插入多个数据到表TblUser
        /// </summary>
        /// <param name="users"></param>
        public void InsertUsers(List <User> users)
        {
            WarehouseERPDAL dB = new WarehouseERPDAL();

            dB.users.AddRange(users);
            dB.SaveChanges();
        }
        /// <summary>
        /// 插入数据到表TblUser
        /// </summary>
        /// <param name="user">插入的数据</param>
        /// <returns></returns>
        public User InsertUser(User user)
        {
            WarehouseERPDAL dB = new WarehouseERPDAL();

            dB.users.Add(user);

            //while (true)
            //{
            //    salesDal.SaveChanges();
            //    var model = salesDal.Employees.Where(c => c.LastName == "diao").FirstOrDefault();
            //    if (model == null)
            //        break;
            //     model.LastName = "cao";
            //}


            dB.SaveChanges();
            return(user);
        }