I have 2 tables.
TableA :- ID, Name, Type
TableB :- ID, Name, TableAID
I want to Get the result list with the columns that includes TableA.Name, TableB.Name.
I am using Entity Framework. Currently this is how i get data from Table1A.
IEnumerable<TableAModel> tableAData = DatabaseContext.FromContext().DatabaseName.TableA.AsEnumerable().Select(tableAData => tableAData.ToModel());
I want to create the same list which also includes the TableB.Name so i can have that display in my Grid? Is it possible?
Please let me know how to do this?
Something like this:
Ref: join clause (C# Reference)