1
I have the following problem: I need to validate my controls (textbox, combobox, etc) that correspond to the fields of my table, for example, on my screen I have the txtBairro control, in which the data that will be entered there will be persisted in the Neighborhood field of my table in the database.
I am managing my bank via code (Code First) + Entity Framework, in which I started using reverse engineering. If in the mapping of my database I already have validations (Fluent API and Dataannotations), I should not validate the controls of my form again, because it would be rework. The question that arises to me is this: how can I use these validations that the framework itself provided me with reverse engineering to validate the controls of my form as well?
Let’s go by parts... if it was done a "reverse engineering" is DB First, who came before? What type of application is it? How is the model bind with the controls? Edit your question by presenting a [MCVE]
– Leandro Angelo