I had a working page with linq to sql and now I'm currently converting it into linq to entity
My test project contain 2 tables, contact(id,name,email) and comments(id,contactid,comment)
when I want to create a new comment, I put in the view in a hidden field the contactid and it was submitting with everything else on the submit button
it was working fine with linq2sql but it doesn't work with linq2entity
how to do that with linq2entity?
edit #1
in fact the question is, how do I deal with one or many foreign key? in that case, I only got one and yes I could use the suggestion from eu-ge-ne but what if I got a second one?
edit #2
found this solution for now