I'm currently trying to figure out how to map current database ERD to a C# class relationship using Fluent API. I am familiar with basics of EF Core but can't wrap my head around this problem. This is an example of my ERD:
| tbl_elements |
|---------------|
| element_id |
| last_modified |
| tbl_poles |
|---------------|
| pole_id |
| color |
| height |
| tbl_towers |
|---------------|
| tower_id |
| color |
| type |
I want to map them like this: element_id : pole_id and element_id : tower_id.
However when I use this approach One-To-One I get a foreign key in both tbl_poles and tbl_towers and I don't want this. I also tried using Inheritance but then I can't use tbl_elements anymore but I need al the tables in my database. I searched the internet for solution and tried al of the provided solutions but didn't found any. I found this: solution, but like I said I need the parent class to be a separate table and not merged.
To give more context: I'm trying to read a shapefile.shp and extract al the features and put them in the corresponding tables.