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 | 7ed5306c62262921264bf9c83e00a4c9f3ae33b1 (patch) | |
tree | 96f2c2c2ae927bf68e2e8306f6e4c90aa7508c05 /Timeline/Startup.cs | |
parent | 4cfb50d40384e5dea1805f8d6fc5ab38cd32d93b (diff) | |
download | timeline-7ed5306c62262921264bf9c83e00a4c9f3ae33b1.tar.gz timeline-7ed5306c62262921264bf9c83e00a4c9f3ae33b1.tar.bz2 timeline-7ed5306c62262921264bf9c83e00a4c9f3ae33b1.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>();
|