it:ad:code_first:howto:define_models:entities

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

modelBuilder.Entity<X>.MapSingleType().ToTable("xyxTable");

  • CONSIDER: Watch out for design flaw of making Entitities into Anemic Entities
    • Consider using Partial or Extension Methods to contain Domain Logic in Entities rather than forcing it to be included in the Application Layer outsider of the Domain Layer.
    • _graphContext.Configuration.AutoDetectChangesEnabled = false;
  • /home/skysigal/public_html/data/pages/it/ad/code_first/howto/define_models/entities.txt
  • Last modified: 2023/11/04 23:18
  • by 127.0.0.1