I am doing this below - any better way to do this? converting one list to the other without creating new object?
DataContext c = new DataContext();
List<X> x=
context.X.Where(a => a.date>Datetime.Now>).ToList();
foreach(var a in x)
{
Y y= new Y();
y.Name= a.Name;
c.Ys.InsertOnSubmit(y);
}
c.SubmitChanges();