diff options
author | crupest <crupest@outlook.com> | 2020-06-14 01:03:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-14 01:03:20 +0800 |
commit | 994ebd75db1a3d4317402b0552f4a9cc41fd7349 (patch) | |
tree | 32aa5220fca7edaeb99de255bdb33e37a82dafc9 /Timeline/Startup.cs | |
parent | 1df83c67e999f7bcf606046c0c687a0be5f8d462 (diff) | |
download | timeline-994ebd75db1a3d4317402b0552f4a9cc41fd7349.tar.gz timeline-994ebd75db1a3d4317402b0552f4a9cc41fd7349.tar.bz2 timeline-994ebd75db1a3d4317402b0552f4a9cc41fd7349.zip |
feat(back): Fix #103 .
Diffstat (limited to 'Timeline/Startup.cs')
-rw-r--r-- | Timeline/Startup.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Timeline/Startup.cs b/Timeline/Startup.cs index 35c47712..76d77e8e 100644 --- a/Timeline/Startup.cs +++ b/Timeline/Startup.cs @@ -62,7 +62,10 @@ namespace Timeline services.AddScoped<IPathProvider, PathProvider>();
- services.AddAutoMapper(GetType().Assembly);
+ services.AddAutoMapper((config) =>
+ {
+ config.CreateMap<Guid, string>().ConvertUsing(guid => guid.ToString());
+ }, GetType().Assembly);
services.AddTransient<IClock, Clock>();
|