Looks pretty straight forward. But I am getting an error. below is example I did and I got best overloaded method have invalid arguments at line empList.Foreach.
public void SaveEmp(List<EmpDTO> empList)
{
bool success = false;
EntityCollection<EmpEntity> empCollection = new EntityCollection<EmpEntity>();
empList.ForEach(dto => empCollection.Add(new EmpEntity(dto)));
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
success = adapter.SaveEntityCollection(empCollection);
}
}
I think I am doing something wrong. Since I am new to .Net and LLBLGEN I am not able to figure this out.
Thanks for the help