0

How do I create a join to another table that is not on the ID of the other table such as:

public class Table1 {
   public int Table1ID { get; set; }

   public string LookupVAl1 { get; set; }

   public Table2 Table2Data { get; set; }
}


public class Table2 {
   public int Table2ID { get; set; }

   public string LookupVAl1 { get; set; }
}

I want to use LookVAl1 as the join and be able to access Table2Data from within Table1 class when I access table 1 object.

To note, LookupVAl1 may not exist in table 2.

Thanks for your time.

Dan

Danhol86
  • 1,352
  • 1
  • 11
  • 20

0 Answers0