input normalisation
Converting input into one standard form before storing it, such as trimming spaces or upper-casing a code.
In more detail
It makes equal values compare as equal, so lookups and uniqueness checks work. A mapping method at the boundary is a natural place for it when the rule belongs there.
Related terms
- object mapping — Copying data from one type to another across a boundary, such as from a database entity to an API response record.
- input validation — Checking that data from a user, file or caller is acceptable before using it, and rejecting or asking again if not.
Taught in
- Manual Object Mapping — Modern .NET Core, C# & Enterprise Microservices