"is there a secret to using linq to sql to add records when the object has relationships?" Code Answer
5
try the following. replace this in your class declaration:
public class stream
{
private entityset<streamentry> _streamentry;
private entityset<stream2fieldtypes> _stream2fieldtypes;
}
with this:
public class stream
{
private entityset<streamentry> _streamentry = new entityset<streamentry>();
private entityset<stream2fieldtypes> _stream2fieldtypes = new entityset<stream2fieldtypes>();
}
try the following. replace this in your class declaration:
with this: