umair mohsin

umair mohsin

  • 1.4k
  • 387
  • 65.6k

DataAnnotations With Code First Models

Jan 20 2024 7:25 PM

is it ok to use dataannotations with code first Models  as these models cannot use as view without data annotations?

.consequently we have to jump to Viewmodels but when inserting records issues will occur as viewmodel do not know our Code first models.

how to handle this?i am new to this and trying things but don't know what approach real  wolrd applications really use


Answers (1)