Refactor Providing Mechanism ...
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using xCommons.Extensions;
|
||||
using xDataService.Extensions;
|
||||
using xFileService.Models.Dtos;
|
||||
using xFileService.Models.Entities;
|
||||
|
||||
@@ -31,6 +32,14 @@ namespace xFileService.Extensions
|
||||
nameof(XFile.References),
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
//
|
||||
// Preparing List ...
|
||||
if (!source.References.IsNullOrEmpty())
|
||||
{
|
||||
result.References = source.References.ParseXReferenceList<string>();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
@@ -62,8 +71,9 @@ namespace xFileService.Extensions
|
||||
);
|
||||
|
||||
//
|
||||
if (!source.References.IsNull() && source.References.HasChild()) {
|
||||
result.References = source.References.ToListString();
|
||||
if (!source.References.IsNull() && source.References.HasChild())
|
||||
{
|
||||
result.References = source.References.ToXReferenceString();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user