ObjectQuery可用,没法适用于DbSet及DbQuery类; 微型ORM风格的快速查询,如数据库上执行SQL查询以及ExecuteStoreQuery ; 设计时注意事项——每个层次对应一张表(Table-per-hierarchy
继承 关于继承关系如何在数据库中呈现,目前有三种常见的模式: TPH(table-per-hierarchy):一张表存放基类和子类的所有列,使用discriminator列区分类型,目前EF Core
-- This mapping demonstrates content-based discrimination for the table-per-hierarchy mapping strategy
那么什么是TPH(table-per-hierarchy)呢?
-- This mapping demonstrates content-based discrimination for the table-per-hierarchy mapping strategy
-- This mapping demonstrates content-based discrimination for the table-per-hierarchy mapping strategy