I have a method for inserting in database.
I have 1:n relationship between the tables Point
(n) and Line
(1). Point
has foreign key idLine
.
However, the class Point
in Entity Framework doesn't have the idLine
property.
Now, in my method I have object of type Point
, as parameter and here I have a problem because I don't know to what to assign the idSection
of the new Point
object which is inserted in the table.
How to add the idLine
property in the Point
class?