コード例 #1
0
 protected override void OnModelCreating(ModelBuilder modelBuilder)
 {
     EnumBasedEntityConfigurator <Superhero, ComicEditorCatalogue>
     .Register(modelBuilder,
               superhero => superhero.ComicEditor,
               "_comicEditorId",
               superhero => superhero.ComicEditorCatalogue);
 }