/// <summary> /// 修改 /// </summary> /// <param name="entity">数据实体</param> /// <param name="isSave">是否立即保存</param> /// <returns>受影响的记录数</returns> public int Update(T entity, bool isSave = true) { return(dal.Update(entity, isSave)); }