"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>();
}
By Olexii on February 17 2022
Only authorized users can answer the Search term. Please sign in first, or register a free account.