Hi All,
Looks like i was missing the plot aboit.
the solutions is very simple.
Here is a little examle.
Thanks
using (UserEntities ctx = new UserEntities())
{
var group = (from g in ctx.Group
select g).FirstOrDefault();
User user = new User();
user.UserName = "Ian";
user.UserGroups.Add(new UserGroups { Group = group });
ctx.AddToUser(user);
ctx.SaveChanges();
}
SetiSeeker
2009-06-12 07:51:37