Skip to content

Dave Callan

,NET Contractor

Dave Callan

Full stack .NET Developer and Solutions Architect contractor with over 17 years experience obtained across multiple domains and organisations such as Citibank, Central Bank, AIB, ESB, United Drug and RTE.

Next available for Dublin based day rate roles in July 2022. If you’re looking for a contractor please get in touch with me via LinkedIn.

  • BACK TO BLOG HOMEPAGE !!!

Recent Posts

  • Consider using named arguments in C# to increase readability of method calls June 29, 2022
  • Poll Results : Do you have a use case for CoreWCF? June 29, 2022
  • How to track active item in Visual Studio solution explorer June 29, 2022
  • How to automatically add missing using statements when we paste code in Visual Studio June 29, 2022
  • List of popular Visual Studio keyboard shortcuts June 29, 2022
  • How to load test an App Service instance with Azure Load Testing June 28, 2022
  • Tests can have bugs too, review them like normal code and change them as little as possible June 28, 2022
  • Go to matching brace in Visual Studio with Ctrl+} shortcut June 28, 2022
  • Display lines of code in miniature on the vertical scroll bar in Visual Studio June 28, 2022
  • .NET 7 to include new ThrowIfNullOrEmpty ArgumentException guard clause June 27, 2022
  • Use bookmarks in Visual Studio to easily navigate back and forth between arbitrary code locations June 27, 2022
  • How to enable parameter and type inline hints in Visual Studio June 27, 2022
  • .NET 7 (Preview) available on Azure App Service as extension June 23, 2022
  • Chrome now supports HTTP 103 Early Hint status to enable faster loading of page resources such as CSS and JS June 22, 2022
  • Recommended AZ-900 Azure Fundamentals Study Cram video on YouTube June 19, 2022
  • Visual Studio 17.2 Preview 3+ includes a new all in one search June 19, 2022
  • System.Random is much faster in .NET 6 as Microsoft have changed underlying algorithm June 18, 2022
  • Visual Studio adds ‘What’s New?’ page to showcase new features after an upgrade June 18, 2022
  • Stage individual lines or chunks of code in Visual Studio with Git from a file with many changes June 18, 2022
  • Emojis will be supported in .NET 7 console output June 17, 2022
  • BACK TO BLOG HOMEPAGE !!!

Categories

  • .NET Core Blog (39)
  • Agile (1)
  • ASP.Net (2)
  • ASP.NET 5 (2)
  • ASP.Net MVC (12)
  • Automapper (6)
  • Azure Blog (25)
  • Blacknight Hosting (1)
  • C# (29)
  • Conversion Optimisation (1)
  • Databases (34)
    • Indexes (2)
    • SQL Server (29)
  • Deployment (9)
  • Design Patterns (24)
  • DNS Records (1)
  • Entity Framework Blog (49)
  • eShopOnWeb (17)
  • Frontend (4)
  • Google (4)
  • Google Webmaster tools (1)
  • HTML (2)
  • IIS (2)
  • Inversion of Control (2)
  • jQuery (1)
  • Log4Net (1)
  • MSBuild (1)
  • MVC 6 (1)
  • Performance Improvement (18)
  • Scrum (2)
  • Security (4)
  • Software Architecture (23)
  • Software Development (46)
  • SSIS (5)
  • Testing (5)
  • Visual Studio Blog (66)
  • VS Code (1)
  • Web Application Security (2)
  • WordPress (3)
  • BACK TO BLOG HOMEPAGE !!!

Category: Automapper

Trimming strings globally with automapper

Recently working on an application based on a legacy database with a lot of char data types I was using automapper and needed to trim all non null strings for every model->viewModel mapping. I used the below code which trims ALL strings and also converts nulls to an empty string.

Trim all non null strings

Posted on February 12, 2016February 12, 2016Categories Automapper, Software Development1 Comment on Trimming strings globally with automapper

Posts navigation

Previous page Page 1 Page 2
Proudly powered by WordPress