I have a model in my Blazor app that I want to create a "transitory" attribute for. This attribute is used internally in the app, but I do not want to persist it to the database.
However, when I change my model, it seems that the build process wants to create a database migration and change the database structure, adding the new attribute.
Is there a way to add a non-persistent attribute to the model, that will be ignored for database writes, but can be populated when the model is being handled in the app?
NotMappedlooks like exactly what I was looking for-- please submit as an answer and I'll accept it. Thanks