You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know it's not a good practice, but I'm working on a project that contains "foreign key" referencing more than one table, the whole bank is this way, I wanted to know if the entity framework supports this type of relationship, so I studied and researched is not supported, if they have a solution, it helps a lot, I'm migrating to the entity framework. But without this feature I can not migrate, an example below:
Data Base:
Tasks
- Id
- SourceId
- TypeSource //Used to set the connection
- Description
OrderService
- Id
- Description
Schedule
- Id
- Description
Code:
ITaskSource
- Id -> int
- Description
Tasks
- Id -> int
- Source -> ITaskSource
- TypeSource -> string //Used to set the connection
- Description -> string
OrderService : ITaskSource
- Id -> int
- Description -> string
Schedule : ITaskSource
- Id -> int
- Description -> string
The text was updated successfully, but these errors were encountered:
I know it's not a good practice, but I'm working on a project that contains "foreign key" referencing more than one table, the whole bank is this way, I wanted to know if the entity framework supports this type of relationship, so I studied and researched is not supported, if they have a solution, it helps a lot, I'm migrating to the entity framework. But without this feature I can not migrate, an example below:
Data Base:
Code:
The text was updated successfully, but these errors were encountered: