Employee id, name, datejoin, deptID
and another table
Marketing id, name, deptID
What I'm trying to do is search for the deptID from the Employee table in Marketing to find out if it exists, if it does not exist, want to add the name and deptID from the Employee table to the marketing table. Basically, I think this is an outer join.
I am trying to use lambda expressions, and EF is new to this area, so I was wondering how to do this. I created the objects needed to define a lambda expression
tTlEntities sde = new tTlEntities(); sde.t_Marketing.Where(x=>x.deptID == t_Employee.deptID).
This is how far I have gone. I know some external connection is needed. Help Please
source share