{ using (var stageContext = new StagingTableDataContext()) { var data = stageContext.ProjectMasters; var referenceData = stageContext.CustomerMasters; foreach (var entry in data) { //pseudo code //check if entry.Customer_Number in referenceData.Customer_Code column }