This commit is contained in:
jxx
2025-08-01 18:15:48 +08:00
2 changed files with 17 additions and 0 deletions

View File

@@ -451,6 +451,14 @@ namespace VOL.Core.BaseProvider
}
if (CheckResponseResult()) return Response;
List<T> list = Response.Data as List<T>;
var keyPro = typeof(T).GetKeyProperty();
if (keyPro.PropertyType == typeof(Guid))
{
foreach (var item in list)
{
keyPro.SetValue(item, Guid.NewGuid());
}
}
if (ImportOnExecuting != null)
{
Response = ImportOnExecuting.Invoke(list);

View File

@@ -477,6 +477,15 @@ namespace VOL.Core.BaseProvider
}
if (CheckResponseResult()) return Response;
List<T> list = Response.Data as List<T>;
var keyPro = typeof(T).GetKeyProperty();
if (keyPro.PropertyType == typeof(Guid) )
{
foreach (var item in list)
{
keyPro.SetValue(item, Guid.NewGuid());
}
}
if (ImportOnExecuting != null)
{
Response = ImportOnExecuting.Invoke(list);