From 5ab6b36c0c4bd80a31dcdd9f15cc835b7352c4e7 Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期四, 16 一月 2025 11:08:02 +0800 Subject: [PATCH] 1 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs" index 5f57b15..c22ec14 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseRepository/IRepository.cs" @@ -51,6 +51,8 @@ /// <returns>褰卞搷琛屾暟</returns> int AddData(TEntity entity); + bool AddData<TChild>(TEntity entity, Expression<Func<TEntity, List<TChild>>> expression) where TChild : class, new(); + Task<int> AddDataAsync(TEntity entity); /// <summary> @@ -71,9 +73,9 @@ Task<bool> DeleteDataByIdAsync(object id); - bool DeleteAndMoveIntoHty(TEntity entity, OperateType operateType); + bool DeleteAndMoveIntoHty(TEntity entity, OperateTypeEnum operateType); - bool DeleteAndMoveIntoHty(List<TEntity> entities, OperateType operateType); + bool DeleteAndMoveIntoHty(List<TEntity> entities, OperateTypeEnum operateType); /// <summary> /// 閫氳繃涓婚敭鏁版嵁鍒犻櫎澶氭潯鏁版嵁 -- Gitblit v1.9.3