From 70f22c9c06c7dfe2a2a83c0d2fcc79892dba7d8f Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期三, 18 十二月 2024 17:08:29 +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