Don't Use AutoMapper in C#! Do THIS Instead!

Don't Use AutoMapper in C#! Do THIS Instead!

73.913 Lượt nghe
Don't Use AutoMapper in C#! Do THIS Instead!
Don't use AutoMapper in C#. Seriously! It could affect your app's performance and looking at the way Automapper is usually configured, it doesn't really gain you any development speed. But what can we use instead? In this video I provide some alternatives to AutoMapper. Join this channel to get source code access and other perks: https://www.youtube.com/channel/UCyTPru-1gZ7-4qblcKM0TiQ/join Contents: 1. Intro: 00:00 2. An AutoMapper disaster: 00:50 3. Alternative 1: Direct class mappings: 03:34 4. Setting up benchmarks: 06:05 5. AutoMapper, bad performance: 07:20 6. Alternative 2: Implicit operators: 08:33 7. New benchmarks: 09:58 8. Alternative 2: explicit operators: 11:48 9. Conclusions: 14:04 My setup: Camera - Canon EOS M50 Mark II: https://amzn.to/3SJxS4d Lav mic - Rode Lavalier GO Professional: https://amzn.to/3mmZS1B Condenser mic - Shure SM7B: https://amzn.to/3JaqjQN Audio console - Rodecaster PRO II: https://amzn.to/3KTVMIg Laptop - Dell Latitude: https://amzn.to/3KV4SEW Monitors - Benq 27 inch: https://amzn.to/3JbM6aU Lights - 2x Godox SL-60W: https://amzn.to/3KV3qCj