mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 05:11:10 +00:00
Adopts Optional in the remaining mappings and domain events
This commit is contained in:
1 parent
c0302ecc50
commit
fc6b0538fe
5 files changed
+7
-7
No files matched your search
+1
-1
@@ -56,7 +56,7 @@ public static class LibraryEntityMapping
|
||||
repositoryEntity.Title,
|
||||
repositoryEntity.LibraryType,
|
||||
repositoryEntity.ContentLocations.Select(contentLocation => contentLocation.Path),
|
||||
repositoryEntity.CoverImage,
|
||||
Optional<string>.FromNullable(repositoryEntity.CoverImage),
|
||||
repositoryEntity.IsEnabled,
|
||||
repositoryEntity.IsLocked,
|
||||
repositoryEntity.CanDownloadMetadataFromWeb,
|
||||
|
||||
@@ -28,7 +28,7 @@ public static class LibraryScanMapping
|
||||
Library = null!,
|
||||
CreatedOnUtc = domainEntity.CreatedOnUtc,
|
||||
CreatedBy = Guid.Empty,
|
||||
UpdatedOnUtc = domainEntity.UpdatedOnUtc.HasValue ? domainEntity.UpdatedOnUtc : null,
|
||||
UpdatedOnUtc = domainEntity.UpdatedOnUtc.HasValue ? domainEntity.UpdatedOnUtc.Value : null,
|
||||
UpdatedBy = Guid.Empty
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ public static class ScheduledJobMapping
|
||||
LastCompletedOnUtc = domainEntity.LastCompletedOnUtc.HasValue ? domainEntity.LastCompletedOnUtc.Value : null,
|
||||
CreatedOnUtc = domainEntity.CreatedOnUtc,
|
||||
CreatedBy = Guid.Empty,
|
||||
UpdatedOnUtc = domainEntity.UpdatedOnUtc,
|
||||
UpdatedOnUtc = domainEntity.UpdatedOnUtc.HasValue ? domainEntity.UpdatedOnUtc.Value : null,
|
||||
UpdatedBy = Guid.Empty
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user