mirror of
https://gitee.com/x_discoverer/Vue.NetCore.git
synced 2025-12-06 07:49:23 +08:00
Merge branch 'master' of https://github.com/cq-panda/vue.netcore
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user