IT:AD:EF/CodeFirst:HowTo:Define Models

Although DataAnnotations are easier, do not use them – they'll drag a dependency on EF to wherever you are using your Db entities (in other words everywhere) making your code highly unmaintainable.

All the following uses only the IT:AD:Code First:FluentAPI approach in order to isolate the reference to EF to a bootstrapping event in the DDD application's infrastructure layer.

  • /home/skysigal/public_html/data/pages/it/ad/code_first/howto/define_models/home.txt
  • Last modified: 2023/11/04 02:19
  • by 127.0.0.1