I'm facing an issue in assigning one object to another in Linq to SQL. In this example:
Func<result, result> make = q => new result
{
Id = q.Id,
lName = q.lName,
GroupId = q.GroupId,
Age = (from tags in q.age where tags.Del == null && tags.lId == q.Id select age).ToEntitySet(),
};
p = (from q in dc.results
where q.Id == Id.Value
select make(q)).First();
I am making new and assigning the object, but I don't want to do this, it will cause problem in insertion. I want to assign without making a new object, how is this possible?