Save Invalid Models

Topics: Questions
Nov 21, 2014 at 1:44 PM
As you can see I fight with the validation :-)

I want to add one more discussion point. But I don't know in wich of my discussions ore issues I have to add this point. So I create a new one.

->

I read again your articel in the docs about Validation in model or view model?

Here is one sentence I can not agree in every case:
"First of all, you don’t want invalid models in your persistence store"

-> I want so save invalid models. Models with errors !!

A little example:
You create a recipe for a Limo. The viewmodel says in Bussinesrules the recipe is not valid. But don't matther please save my recipe with errors. The validationerrors should only prevent that the recipe can not send to the machine.
Dec 8, 2014 at 11:08 AM
You can still save them, but you need to be aware of that. What is the issue with saving invalid models?