table-per-hierarchy
TPH vs TPT vs TPC and OR mappers
I\'m working on a datamodel that has a set of types that share some common fields such as Id, Name, Description. To be more concrete:[详细]
2023-04-12 23:33 分类:问答EF Table per Hierarchy (TPH) not saving because can't insert value null in Discriminator column
I have a table used for multiply type of category and it contains a Discriminator column named \'ClassName\' to specify the type of object t开发者_如何学Pythono load. The ClassName column is non nulla[详细]
2023-04-07 10:45 分类:问答Discriminator issue in inheritance mapping of Grails
I have 4 classes A, B, B1, B2 with inheritance mapping described as below: A (mapped to table A) is the top-most parent class and its inheritance mapping strategy is tablePerHierarchy=false (means eac[详细]
2023-03-27 14:42 分类:问答Getting DAOs for Table-per-Hierarchy structure
Let\'s assume I have a User class and two subclasses Employee and Customer. I implemented this hierarchy as a table-per-hierarchy in DB with a column for specifying the type of user. I need to return[详细]
2023-03-18 20:20 分类:问答Persisting one table per class hierarchy using NHibernate without discriminator?
I have an interface and a class which implements this interface. public interface IPhase { string Description { get; set; }[详细]
2023-03-05 11:22 分类:问答Entity Framework - Discriminate on multiple values
In a Table-Per-Hierachy scenario is it possible to discriminate on a list of possible values? e.g. for the types Color, DarkColor, LightColor[详细]
2023-03-02 14:40 分类:问答EF4 DB-first: TPH approach?
I know this should not be trivial, but so far couldn\'t find the resolution... Working with an EF4 DB-First model, using LINQ-to-Entities with POCOs which will be consumed by an MVC3 app.[详细]
2023-02-27 10:51 分类:问答Fluent NHibernate - mixing table-per-subclass and table-per-class-hierarchy
Give the following structure, MyBaseClass { public int Id {get; private set;} } MySubclassWithDiscriminator : MyBaseClass {[详细]
2023-02-27 04:58 分类:问答Entity Framework 4 - TPH Inheritance in Features CTP5 (code first) with "IS NULL" discriminator
Hey guys, I\'m trying to create a TPH mapping on a hierarchy where the discriminating clause is the classical \"IS NOT NULL\" / \"IS NULL\" case.[详细]
2023-02-11 02:15 分类:问答Mapping fragments exception with Table-per-Hierarchy (Entity Framework 4)
If i have SQL Server tables like this: Location ---------- LocationId int PK Field1 int Field2 int etc Score[详细]
2023-02-04 22:17 分类:问答