When i generate the LINQ model from the folowing table:
CREATE TABLE Test
(
Id INT IDENTITY,
Value VARCHAR(10) REFERENCES Value(Id),
PRIMARY KEY(Id)
)
GO
I get an auto generated class like this:
class Test
{
Id
Value
Value1
}
Anyone got any ideas on why the second Value “Value1” is added.
BR
Problem solved!
Implement the table like this and it will work (You will get Value and Value_FK).
And you will get: