I have a table (TestTable) for example:
ID
Name
Parentid (FK)
and I would like to insert a new record like ID(1) Name(Test) ParentID(5) FK. How can insert a new record into TestTable with linq to entity?
var testTable = new TestTable();
testTable.ID = 1;
testTable.Name = "TestName";
testTable ...
thank you for the working example.