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