Example #1
0
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public bool Update(T entity)
        {
            NET net = new NET();

            net.Entry <T>(entity).State = EntityState.Modified;
            return(net.SaveChanges() > 0);
        }