Other Views: By Month | By Category | By Tag Cloud
So far in our AutoMapper series all of the property names between the input and output objects have been the same. There are times though that the property names will not match and you will need to tell AutoMapper how to map the properties else the configuration will not be valid.
In this post, we will take a look at the AutoMapper configuration need to map between property names that do not match.
In our previous post, we used AutoMapper to convert from a entity to a view model. In our example code, it only works as expected in happy path mode where the configuration is valid and there is no way to know the configuration is not valid until we run the application.
In this post, we are going to look at how with just a few lines of code, we can write a unit test to validate our AutoMapper mapping profile.
Mapping code is boring. Testing mapping code is even more boring.
AutoMapper is a simple library built to map one object to another and takes out all of the fuss of mapping one object to another.
In this post, we will create a sample ASP.NET Core API project, install and wire up AutoMapper, and update the sample Weather Forecast Controller to return a view model that was converted from our concrete object to a view model object.
In this series, we are looking at some of my favorite VS Code extensions.
Extensions in VS Code are invaluable to speed up your work and make you more productive.
In this post, we will look at the GitHub Pull Request and Issues extension that allows you to stay where you are writing your code and manage your GitHub pull requests and issues right from VS Code
In this series, we are looking at some of my favorite VS Code extensions.
Extensions in VS Code are invaluable to speed up your work and make you more productive.
In this post, we will look at Angular2 Switcher which provides shortcuts to switch between the TypeScript, StyleSheet, Spec, and Html files for your Angular files.
In this series, we are taking a look at some of my favorite VS Code extensions.
Extension in VS Code are invaluable to speed up your work and make you more productive.
In this post, we are going to look at Markdown Lint which provides Markdown/CommonMark linting and style checking for markdown files.
Markdownlint has make my markdown output much more predictable and easier for others dev to follow.
In this series, we are taking a look at some of my favorite VS Code extensions.
Extension in VS Code are invaluable to speed up your work and make you more productive.
In this post, we are going to look at Path Intellisense which autocompletes file names.
In this series, we are taking a look at some of my favorite VS Code extensions.
Extension in VS Code are invaluable to speed up your work and make you more productive.
In this post, we are going to look at Fold Plus which enables you to quickly expand or collapse sections within a file.
Extension in VS Code are invaluable to speed up your work and make you more productive. In this series, we are taking a look at some of my favorite VS Code extensions.
In this post, we are going to look at Add Only to quickly add or remove a .Only
to your tests.
In the previous post in the series, we have implemented our health checks that return a json response and allow us to selectively run the health checks based on tags.
In this post, we are going to build on the previous post and update our endpoint mappings to use a generic endpoint builder so that we only have our filters and json response code in a single place.