Consider for instance my following database model.
- UserTable(Id, Username)
- TextContentTable(Id, Name, Description, CreatedByUserId, ModifiedByUserId, TextContent)
- ImageContentTable(Id, Name, Description, CreatedByUserId, ModifiedByUserId, ImageContent)
I would like to create the following object model. But is it even possible? For instance:
- BaseEntity(Id)
- DescriptiveEntity(Name, Description) : BaseEntity
- TrackedEntity(CreatedBy, ModifiedBy) : DescriptiveEntity
- User(Username) : BaseEntity
- TextContent(Text) : TrackedEntity
- ImageContent(Image) : TrackedEntity
I hope you understand my notation, but is it possible to map associations (marked in bold) to the individual tables TextContentTable & ImageContentTable?
Thanx in advance.