Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # IT:AD:EF/CodeFirst:HowTo:Define Models # <callout type="Navigation" class="small"> * [[../|(UP)]] {{indexmenu>.#2|nsort tsort}} </callout> ## Summary ## 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 [[IT/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:19by 127.0.0.1